GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org — 6.23.2.4 The Catalog constructor

Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
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.


Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.