Previous: 6.25.2.3 Solaris message catalog Up: 6.25.2 Class-based API Next: 6.25.3 Internationalizing your programs

6.25.2.4 The Catalog constructor

GNOMEuses 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.


Previous: 6.25.2.3 Solaris message catalog Up: 6.25.2 Class-based API Next: 6.25.3 Internationalizing your programs
Release 2.2.3, documentation updated on 30 May 2003.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /