[Python-3000] i18n prefix

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 17 08:44:56 CEST 2007

Humberto Diogenes wrote:

>    * _ = gettext.gettext; print _("my string") isn't very nice

If you don't like _, you're free to use something
else, e.g.

   from gettext import gettext as i

   i("This is a an i18m string")

which is not very far from an i prefix.


More information about the Python-3000 mailing list