International APPs / pygettext
Martin v. Löwis
loewis at informatik.hu-berlin.de
Fri Oct 18 07:07:57 EDT 2002
Ingo Linkweiler <i.linkweiler at web.de> writes:
> I now use this way to set languages:
>
> import gettext
> lang = gettext.translation("messages",".",languages=['en'])
> lang.install()
>
> But how can I install the internal language (=no translation) ?
> Defining
>
> def _(x): return x
>
> is not a good solution, because this does not change ALL used modules.
I think using "C" as a language should work.
Regards,
Martin
More information about the Python-list
mailing list