[ python-Bugs-1511736 ] Python gettext doesn't support libglade (again)
SourceForge.net
noreply at sourceforge.net
Sat Jun 24 15:09:47 CEST 2006
Bugs item #1511736, was opened at 2006-06-24 11:59
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1511736&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
>Group: 3rd Party
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Shmyrev Nick (nshmyrev)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python gettext doesn't support libglade (again)
Initial Comment:
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
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2006-06-24 15:09
Message:
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.
----------------------------------------------------------------------
Comment By: Shmyrev Nick (nshmyrev)
Date: 2006-06-24 14:24
Message:
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.
----------------------------------------------------------------------
Comment By: Martin v. Löwis (loewis)
Date: 2006-06-24 12:27
Message:
Logged In: YES
user_id=21627
Can you please provide precise instructions on how to
reproduce the problem? It works fine for me.
----------------------------------------------------------------------
Comment By: Shmyrev Nick (nshmyrev)
Date: 2006-06-24 12:02
Message:
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)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1511736&group_id=5470
More information about the Python-bugs-list
mailing list