Did I find the right examples for you? yes no

All Samples(4)  |  Call(0)  |  Derive(0)  |  Import(4)
pygettext -- Python equivalent of xgettext(1)

Many systems (Solaris, Linux, Gnu) provide extensive tools that ease the
internationalization of C programs. Most of these tools are independent of
the programming language and can be used from within Python programs.
Martin von Loewis' work[1] helps considerably in this regard.

There's one problem though; xgettext is the program that scans source code
looking for message strings, but it groks only C (or C++). Python
introduces a few wrinkles, such as dual quoting characters, triple quoted(more...)

src/t/u/TurboGears-1.5.1/turbogears/i18n/pygettext/catalog.py   TurboGears(Download)
import sys
import os
import codecs
import pygettext
 

src/g/a/gaphor-0.17.2/utils/command/build_pot.py   gaphor(Download)
from commands import getstatus
import sys, os.path
import pygettext
 
# from pygettext.main():

src/g/a/gaphor-HEAD/utils/command/build_pot.py   gaphor(Download)
from commands import getstatus
import sys, os.path
import pygettext
 
# from pygettext.main():

src/w/r/wrye-bash-HEAD/Mopy/bash/bolt.py   wrye-bash(Download)
    args.extend(files)
    if hasattr(sys,'frozen'):
        import pygettext
        old_argv = sys.argv[:]
        sys.argv = args