aeidon.locales

Source: aeidon/locales.py

Names and codes for locales and conversions between them.

Locale codes are of form aa[_BB][@Cccc], where aa is a language code, BB a country code and Cccc a script. See aeidon.languages, aeidon.countries and aeidon.scripts for the details.

Functions

aeidon.locales.code_to_country(code)

Convert locale code to localized country name or None.

Raise LookupError if code not found.

aeidon.locales.code_to_language(code)

Convert locale code to localized language name.

Raise LookupError if code not found.

aeidon.locales.code_to_name(code)

Convert locale code to localized name.

Raise LookupError if code not found. Return localized LANGUAGE (COUNTRY).

aeidon.locales.get_system_code()

Return the locale code preferred by system or None.

aeidon.locales.get_system_modifier()

Return the script modifier of system or None.