Re: Help with getText lib

[email protected] (Martin v. Löwis)
Newsgroups gmane.comp.python.internationalization
Message-ID <[email protected]>
Michel Martin <[email protected]> writes:

> I have difficulty using getText. In fact, I'm able to create my .po
> files and my .mo files. But I'm not able to read/retrieve them using
> either "gettext.install(...)" or "gettext.find(...)".

Did you set the LANG= environment variable? If not, you should
explicitly specify the target language, e.g. by defining

def _(msg):
    return gettext.translation('dev',r'c:\foo\bar','en').ugettext(msg)

HTH,
Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.