Logo Search packages:      
Sourcecode: rapid-photo-downloader version File versions  Download package

rapid::common::Configi18n Class Reference

List of all members.

Detailed Description

Setup translation

Adapated from code example of Mark Mruss http://www.learningpython.com.
Unlike his example, this code uses a local locale directory only if the environment
variable LOCALEDIR has been set to some or other value.

Definition at line 36 of file common.py.

Static Public Attributes

tuple lang = gettext.translation(config.APP_NAME, locale_path, languages=langs, fallback = True)
list langs = []
tuple language = os.environ.get('LANGUAGE', None)
tuple locale_path = os.environ.get('LOCALEDIR', None)

Static Private Attributes

 _ = lang.gettext

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index