gettext
index
/usr/lib/python2.1/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)
       
  
__init__(self, fp=None) from NullTranslations
_parse(self, fp)
Override this method to support alternative .mo formats.
charset(self) from NullTranslations
gettext(self, message)
info(self) from NullTranslations
install(self, unicode=0) from NullTranslations
ugettext(self, message)

 
class NullTranslations
       
  
__init__(self, fp=None)
_parse(self, fp)
charset(self)
gettext(self, message)
info(self)
install(self, unicode=0)
ugettext(self, message)

 
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.1/gettext.pyc'
__name__ = 'gettext'
_current_domain = 'messages'
_default_localedir = '/usr/share/locale'
_localedirs = {}
_translations = {}