Package elisa :: Package core :: Package utils :: Module locale_helper
[hide private]
[frames] | no frames]

Module locale_helper

source code

Contains locale helper functions

Functions [hide private]
string or None
get_from_system_locale()
Get the system locale and look it up as a elisa-locale.
source code
string
system_encoding()
Get the encoding used by the system
source code
Variables [hide private]
  __maintainer__ = 'Benjamin Kampmann <benjamin@fluendo.com>'
  locales_to_iso = {'ca': 'cat', 'de': 'deu', 'es': 'spa', 'fr':...
Function Details [hide private]

get_from_system_locale()

source code 
Get the system locale and look it up as a elisa-locale. If the locale could not be wrapped, nothing is returned
Returns: string or None
a three letter language code

system_encoding()

source code 
Get the encoding used by the system
Returns: string
the encoding used by the system

Variables Details [hide private]

locales_to_iso

Value:
{'ca': 'cat',
 'de': 'deu',
 'es': 'spa',
 'fr': 'fra',
 'it': 'ita',
 'pl': 'pol'}