gettext
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/gettext.py
Module Docs

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
       
copy
locale
os
re
struct
sys

 
Classes
       
NullTranslations
GNUTranslations

 
class GNUTranslations(NullTranslations)
     Methods defined here:
gettext(self, message)
lgettext(self, message)
lngettext(self, msgid1, msgid2, n)
ngettext(self, msgid1, msgid2, n)
ugettext(self, message)
ungettext(self, msgid1, msgid2, n)

Data and other attributes defined here:
BE_MAGIC = 3725722773L
LE_MAGIC = 2500072158L

Methods inherited from NullTranslations:
__init__(self, fp=None)
add_fallback(self, fallback)
charset(self)
info(self)
install(self, unicode=False, names=None)
output_charset(self)
set_output_charset(self, charset)

 
class NullTranslations
     Methods defined here:
__init__(self, fp=None)
add_fallback(self, fallback)
charset(self)
gettext(self, message)
info(self)
install(self, unicode=False, names=None)
lgettext(self, message)
lngettext(self, msgid1, msgid2, n)
ngettext(self, msgid1, msgid2, n)
output_charset(self)
set_output_charset(self, charset)
ugettext(self, message)
ungettext(self, msgid1, msgid2, n)

 
Functions
       
Catalog = translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=None)
bind_textdomain_codeset(domain, codeset=None)
bindtextdomain(domain, localedir=None)
dgettext(domain, message)
dngettext(domain, msgid1, msgid2, n)
find(domain, localedir=None, languages=None, all=0)
# Locate a .mo file using the gettext strategy
gettext(message)
install(domain, localedir=None, unicode=False, codeset=None, names=None)
ldgettext(domain, message)
ldngettext(domain, msgid1, msgid2, n)
lgettext(message)
lngettext(msgid1, msgid2, n)
ngettext(msgid1, msgid2, n)
textdomain(domain=None)
translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=None)

 
Data
        __all__ = ['NullTranslations', 'GNUTranslations', 'Catalog', 'find', 'translation', 'install', 'textdomain', 'bindtextdomain', 'bind_textdomain_codeset', 'dgettext', 'dngettext', 'gettext', 'lgettext', 'ldgettext', 'ldngettext', 'lngettext', 'ngettext']