Re: Glade textdomain oddness
- From: Alexander Larsson <alexl redhat com>
- To: Jason Heeris <jason heeris gmail com>
- Cc: nautilus-list gnome org
- Subject: Re: Glade textdomain oddness
- Date: Thu, 18 Mar 2010 12:55:18 +0100
On Sun, 2010-03-14 at 11:46 +0800, Jason Heeris wrote:
> Hi,
>
> (I apologise if you get this twice, but I sent a copy as a non-member
> and gave up waiting for moderator approval.)
>
> I think there's something wrong with my understanding of Glade
> mechanics, so maybe someone here can help me out. I have the property
> page test code below, (using Python bindings for Nautilus). When I run
> it, under say Debian Squeeze or Ubuntu Karmic, with a non-English
> language in use, some of Nautilus' special folders (Desktop, Network,
> File System) suddenly get labelled in English.
>
> If I comment out the line "gtk.glade.textdomain(APP_NAME)" in
> "__init__", it doesn't happen. But why? All the PyGTK docs say is
> "This gtk.glade.textdomain() function allows you to use
> internationalisation with glade."
The text domain is an process-global setting, and in nautilus it is set
to be "nautilus", unsurprisingly. If you change it in a plugin then
nautilus translations will stop working.
There are ways to get non-global translations, using dgettext() in C,
but i'm not sure how they work in python.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]