[TransWarp] internationalization

Phillip J. Eby pje at telecommunity.com
Fri Jun 27 15:28:55 EDT 2003


At 11:58 AM 6/26/03 -0400, Phillip J. Eby wrote:

>Although Python doesn't (currently) support it, the underlying gettext 
>format *does* support these extended plural forms, using a 'Plural-Forms' 
>header, and a function that takes a number.  See:
>
>http://www.gnu.org/manual/gettext/html_chapter/gettext_10.html#SEC150
>
>For the way this is used in the catalog format, see:
>
>http://www.gnu.org/manual/gettext/html_chapter/gettext_2.html#SEC9
>
>Again, I'm not sure that Python or Zope's gettext tools support any of this.

It turns out I spoke too soon.  Python 2.3 gettext (and the gettext 
distributed with Zope 3) *does* support GNU plural forms, with ngettext() 
and ungettext() methods.  Zope 3 doesn't expose this facility via zope.i18n 
yet, though.

Anyway, if you need a solution right away, the Python 2.3 gettext module 
will apparently work with 2.2.





More information about the PEAK mailing list