← Back to team overview

nssbackup-team team mailing list archive

[Bug 284013] Re: i18n does not work due to wrong place of *.mo files (on Ubuntu)

 

Another solution to this should be the explicit setting of the path to
the locales.

The Python documentation suggests:

import gettext
gettext.bindtextdomain('myapplication', '/path/to/my/language/directory')
gettext.textdomain('myapplication')
_ = gettext.gettext
# ...
print _('This is a translatable string.')


However, this is not enough additional initialization if a programm uses Glade. The textdomain needs to be set up for Glade too.

See the modified file 'nssbackup-config-gui' that is attached. Of
course, this is only an example. The literals need to be removed etc.

This works with 'pure' Python and Glade. Now the localization files were
used from any given directory.


Greets. 

** Attachment added: "Full replacement of 'nssbackup-config-gui'."
   http://launchpadlibrarian.net/18606714/nssbackup-config-gui

-- 
i18n does not work due to wrong place of *.mo files (on Ubuntu)
https://bugs.launchpad.net/bugs/284013
You received this bug notification because you are a member of NSsbackup
team, which is subscribed to NSsbackup.



References