[pygtk] Translation: Different locales directories

Cornelius Kölbel cornelius.koelbel at lsexperts.de
Mon May 31 00:04:36 WST 2010


Hello List,

i got an application with translation.

I am doing this...

    gettext.bindtextdomain(APP_NAME, LOCALE_DIR)
    gettext.textdomain(APP_NAME)

But my problem is, that I do different packaging types like source, deb
and rpm. In these different cases, the location of the mo file is not
the same for the different packages.

What is the recommended way to handle this?
Can I provide more than one locale dirs?
Should I change the code, for each packaging type?
Should I set an environment variable that contains the correct locales dir?

Thanks a lot and kind regards
Cornelius



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20100530/52b1a412/attachment.pgp 


More information about the pygtk mailing list