• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Introduction to Zope's I18n ... > Messages and Message Catalogs

Messages and Message Catalogs

Although object formatting is a more interesting task, a more common task is the markup and translation of message strings. In order to manage translations better, message strings are categorized in domains. There is currently only one domain for all of the Zope core: zope. Add-on packages use a different domain; for example, Bugtracker uses the domain bugtracker. Translatable messages are particularly marked in the code (see the section “Internationalizing Message Strings,” later in this chapter) and are translated before their final output.

All message translations for a particular language of one domain are stored in a message catalog. Therefore, you have a message catalog for each language and domain pair. You differentiate between filesystem (global) and ZODB (local) product development. Global message catalogs are standard gettext PO files. The PO files for the zope domain are located in ZOPE3/src/zope/app/locales/<REGION>/LC_MESSAGES/zope.po, where REGION can be de, en, or pt_BR.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint