Package entropy :: Module i18n

Module i18n

source code


Author: Fabio Erculiani <lxnay@sabayonlinux.org>

Contact: lxnay@sabayonlinux.org

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
  localedir = '/usr/share/locale'
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)