This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Python gettext doesn't support libglade (again)
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: loewis, nshmyrev
Priority: normal Keywords:

Created on 2006-06-24 09:59 by nshmyrev, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
msg28883 - (view) Author: Shmyrev Nick (nshmyrev) Date: 2006-06-24 09:59
It looks like bug 516412 is returned back. I have glade
interface untranslated in meld application from
meld.sourceforge.net

Python 2.4.2 (#1, Feb 12 2006, 03:59:46)
[GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2

pygtk2-devel-2.8.4-1.1

Opening a new one according to comments of loewis

http://sourceforge.net/tracker/?func=detail&atid=105470&aid=516412&group_id=5470
msg28884 - (view) Author: Shmyrev Nick (nshmyrev) Date: 2006-06-24 10:02
Logged In: YES 
user_id=598622

This code cures the problem, but of course it's just a
workaround

gtk.glade.bindtextdomain(APP, DIR)
gtk.glade.textdomain(APP)

msg28885 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-06-24 10:27
Logged In: YES 
user_id=21627

Can you please provide precise instructions on how to
reproduce the problem? It works fine for me.
msg28886 - (view) Author: Shmyrev Nick (nshmyrev) Date: 2006-06-24 12:24
Logged In: YES 
user_id=598622

You have to download meld from meld.sourceforge.net. Then
build it and run under some locale, say ru_RU.utf8. You'll
see untranslated UI under Fedora Core 5. If you'll add a
call to gtk.glade.bindtextdomain to meld, you'll see
interface translated. Thus I suppose that gettext isn't
initialized properly as in original bug.
msg28887 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-06-24 13:09
Logged In: YES 
user_id=21627

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.
History
Date User Action Args
2022-04-11 14:56:18adminsetgithub: 43543
2006-06-24 09:59:23nshmyrevcreate