gettext
index
/usr/lib/python2.2/gettext.py

Internationalization and localization support.
 
This module provides internationalization (I18N) and localization (L10N)
support for your Python programs by providing an interface to the GNU gettext
message catalog library.
 
I18N refers to the operation by which a program is made aware of multiple
languages.  L10N refers to the adaptation of your program, once
internationalized, to the local language and cultural habits.

 
Modules
            
os
struct
sys
 
Classes
            
NullTranslations
GNUTranslations
 
class GNUTranslations(NullTranslations)
       
   Methods defined here:
_parse(self, fp)
Override this method to support alternative .mo formats.
gettext(self, message)
ugettext(self, message)

Data and non-method functions defined here:
BE_MAGIC = -569244523
LE_MAGIC = -1794895138
__doc__ = None
__module__ = 'gettext'

Methods inherited from NullTranslations:
__init__(self, fp=None)
charset(self)
info(self)
install(self, unicode=0)
 
class NullTranslations
       
   Methods defined here:
__init__(self, fp=None)
_parse(self, fp)
charset(self)
gettext(self, message)
info(self)
install(self, unicode=0)
ugettext(self, message)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'gettext'
 
Functions
            
Catalog = translation(domain, localedir=None, languages=None, class_=None)
_expand_lang(locale)
bindtextdomain(domain, localedir=None)
dgettext(domain, message)
find(domain, localedir=None, languages=None)
# Locate a .mo file using the gettext strategy
gettext(message)
install(domain, localedir=None, unicode=0)
textdomain(domain=None)
translation(domain, localedir=None, languages=None, class_=None)
 
Data
             ENOENT = 2
__all__ = ['bindtextdomain', 'textdomain', 'gettext', 'dgettext', 'find', 'translation', 'install', 'Catalog']
__file__ = '/usr/lib/python2.2/gettext.pyc'
__name__ = 'gettext'
_current_domain = 'messages'
_default_localedir = '/usr/share/locale'
_localedirs = {}
_translations = {}