GNOME Bugzilla – Bug 344926
Meld UI is not translated
Last modified: 2009-08-15 18:40:50 UTC
If installed into a custom directory. The reason for that is a known problem http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq22.003.htp Although FAQ entry states it's already fixed, it's still here with Python 2.4.2 and pygtk 2.8
I know very little about i18n, but it looks like I'm doing everything as recommended. Not sure what I can do about this. Is it a meld or pygtk/glade/python bug?
Actually it's a python/pygtk bug, but as FAQ advises, you need to add a call to the meld: gtk.glade.bindtextdomain(APP, DIR) gtk.glade.textdomain(APP) to get a translatable UI
Comment on this from python bugzilla: http://sourceforge.net/tracker/?func=detail&atid=105470&aid=1511736&group_id=5470 Ah, that's a bug in meld. It shouldn't do gettext.bindtextdomain, but locale.bindtextdomain (although gtk.glade.bindtextdomain has the same effect). It is intentional that the Python gettext implementation and the C library's gettext implementation are separate. If you want to use the C library's gettext, you should use the locale.* functions; if you want the pure-Python implementation, use gettext.*. Closing as a third-party bug.
The Meld 1.3 UI appears correctly (translated, that is). Marking fixed.
This problem is still valid in current HEAD
Created attachment 76027 [details] [review] Patch to fix the problem
Thanks Nickolay, this has been applied to svn.
amazing, thanks a lot