[pygtk] Language translation not working in Windows
F Wolff
friedel at translate.org.za
Wed Sep 23 01:11:34 WST 2009
Op Sa, 2009-09-19 om 13:58 +0530 skryf muhamed niyas:
> Hi All,
>
> I am trying to translate my application to the language en_CA,
> For translating, the following comands i used
>
> intltool-extract --type=gettext/glade myapp.glade
>
> xgettext --language=Python --keyword=_ --keyword=N_ --output=myapp.pot
> myapp.py myapp.glade.h
>
> msginit --input=myapp.pot --locale=en_CA
>
> mkdir -p en_CA/LC_MESSAGES
>
> msgfmt --output-file=en_CA/LC_MESSAGES/myapp.mo en_CA.po
>
>
> Its perfectly translating in Debian and Ubuntu.
> But its not translating the labels in the glade in Windows. But if i
> am
> setting label values using python code, then its translating correctly
> in Windows also.
>
> Thanks in Advance
>
> Regards,
> Niyas
Hallo Niyas
We experienced the exact same problem in Virtaal. If I remember
correctly, the issue was _partly_ solved with a call to
glade.bindtextdomain(). The other part of it is solved by the code in
this file:
http://translate.svn.sourceforge.net/viewvc/translate/src/trunk/virtaal/virtaal/support/libi18n/locale.py?view=log
(I am partly guessing the URL, so you might need to look around if I got
it wrong.)
Unfortunately I don't have web access right now, so I can't get to our
original bug and discussions about the topic, but hopefully this helps
you in the meanwhile.
You might also be able to get a developer for Virtaal in #pootle on
irc.freenode.net - be on the lookout for "walterl" who is probably your
best source of information if my advice above does not help.
Keep well
Friedel
--
Recently on my blog:
http://translate.org.za/blogs/friedel/en/content/support-afrikaans-google-translate
More information about the pygtk
mailing list