[Python-3000] translation support feature, via extended % operators

Martin Geisler mg at daimi.au.dk
Wed Aug 13 10:38:08 CEST 2008


Glenn Linderman <v+python at g.nevcal.com> writes:

> In this message I'll discuss a scheme for handling complex
> translations with multiple numeric parameters.

Have you had a look at the ngettext function?

  http://docs.python.org/dev/library/gettext.html#gettext.ngettext

I think it does most of what you propose, including letting the
translators write the little code snippets that will determine if it
should be '1 file' or 'n files'.

The gettext manual has more to say here:

  http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multi-Party Computation) to Python. See: http://viff.dk/.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-3000/attachments/20080813/3c54d945/attachment.pgp>


More information about the Python-3000 mailing list