Package entropy :: Module i18n

Module i18n

source code


Author: Fabio Erculiani <[email protected]>

Contact: [email protected]

Copyright: Fabio Erculiani

License: GPL-2

Entropy Framework internationalization module

This module contains Entropy Framework i18n functions and variables.

Functions
 
change_language(lang)
Change gettext language on the fly.
source code
Variables
  envdir = None
hash(x)
  localedir = '/usr/share/locale'
  kwargs = {'localedir': '/usr/share/locale', 'names': ['ngettex...
  ENCODING = 'UTF-8'
  RAW_ENCODING = 'raw_unicode_escape'
  default_locale = 'en_US.UTF-8'
  __package__ = 'entropy'
Function Details

change_language(lang)

source code 

Change gettext language on the fly.

Parameters:
  • lang (string) - new language string (see `locale -a` for a list of supported ones)

Variables Details

kwargs

Value:
{'localedir': '/usr/share/locale',
 'names': ['ngettext'],
 'unicode': True}