International APPs / pygettext

Ingo Linkweiler i.linkweiler at web.de
Fri Oct 18 12:51:56 CEST 2002


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.

Ingo




More information about the Python-list mailing list