Current

This document is valid for the current version of Plone.

zope.i18n package

by Plone Documentation Team last modified Dec 12, 2009 10:33 PM
Contributors: Mikko Ohtamma, Martin Aspeli, Kamon Ayeva, Israel Saeta Pérez
The basics of zope.i18n and locales/ folders

zope.i18n package is Zope 3 way of doing gettext

  • Follows gettext best practices
  • Translations are stored in locales folder of your application. Example: i18n/LC_MESSAGES/fi/your.app.po
  • Has zope.i18nmessageid package which is string-like class allowing storing translation domain with translatable text strings easily
  • .po files must be manually converted to .mo binary files every time the translations are updated. See more about this on i18ndude page.

Plone uses only file path and name to search the translation files. Information about translation domain and language in the .po file headers is ignored.