[code.view]

[top] / python / PyMOTW / gettext / gettext_module_global.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2009 Doug Hellmann All rights reserved.
     #
     """
     """
     #end_pymotw_header
     
     import gettext
     t = gettext.translation('gettext_example', 'locale', fallback=True)
     _ = t.ugettext
     ngettext = t.ungettext
     
     print _('This message is in the script.')
     

[top] / python / PyMOTW / gettext / gettext_module_global.py

contact | logmethods.com