[Glade-users] Glade3 gettext

not more reliable, dgettext is used to specify the domain, gtk+ translations
for example are in the gtk+ domain, usually its used for libraries only.

I think if you are having problems you must just maybe make a call
to setlocale() and make sure you are installing your .mo files in
the appropriate place.


On Dec 13, 2007 6:59 PM, martti pitkanen <martti.pitkanen at aplcomp.fi> wrote:

Hi Tristan,

Thanks for info, what you say consoles me a lot.
And sorry fo bypassig the newsgrp, but I don't know yet how to respond
to thread.
I managed to translate _("strings") for a while by php gettext
/php-gtk2, but even it  ceased
work. The domain is set correctly anyway.
What difference does dgettext() make? Is it possibly more reliable than
Is it somehow possible to trace (in php) what d)gettext()  is trying to

Tristan Van Berkom wrote:
On Dec 12, 2007 8:50 PM, martti <martti.pitkanen at aplcomp.fi
<mailto:martti.pitkanen at aplcomp.fi>> wrote:

    Can gettext make use of Glade3 -files? I have failed to make *.mo
    extracted from Glade3
    appear onscreen. I am using php-gtk2.
    Manual page examples appear to be from Glade2, anyway.

    I'd appreciate yes/no answer very much

Yes the files are the same in that respect, the functionality
is in libglade - just install the .mo files and any strings
that are translatable will be passed through gettext() by
libglade before usage.

If you provide the "domain" argument to glade_xml_new()
then dgettext() will be used instead.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/glade-users/attachments/20071213/94f88092/attachment-0001.html 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]