(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/node148.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/node145.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/node150.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/genindex.html| ]]
|
Previous: 6.23.2.3 Solaris message catalog Up: 6.23.2 Class-based API Next: 6.23.3 Internationalizing your programs
6.23.2.4 The Catalog constructor
GNOME uses a version of the gettext module by James Henstridge, but this version has a slightly different API. Its documented usage was:
import gettext
cat = gettext.Catalog(domain, localedir)
_ = cat.gettext
print _('hello world')
For compatibility with this older module, the function Catalog() is an alias for the the translation() function described above.
One difference between this module and Henstridge's: his catalog objects supported access through a mapping API, but this appears to be unused and so is not currently supported.
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/node148.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/node145.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/node150.html| ]]
|
Python Library Reference
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/contents.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/modindex.html| ]]
|
[[yurttas/PL/SL/python/docs/core-python-programming/doc/20/lib/genindex.html| ]]
|
Previous: 6.23.2.3 Solaris message catalog Up: 6.23.2 Class-based API Next: 6.23.3 Internationalizing your programs
See About this document... for information on suggesting changes.