[pygtk] Translation, gtk labels, and gettext
Caleb Marcus
caleb.marcus at gmail.com
Thu Dec 6 22:18:08 WST 2007
On Dec 6, 2007 3:38 AM, Ed Catmur <ed at catmur.co.uk> wrote:
>
> On Thu, 2007-12-06 at 00:49 -0500, Caleb Marcus wrote:
> > I'm planning to make my application translatable with gettext. Do I
> > have to make the text in my gtk stock buttons and things like that use
> > gettext, or will they automatically translate due to their use of gtk
> > stock things?
>
> Try it and see:
>
> LC_ALL=3D"es_ES.UTF-8" python -c 'import gtk; w =3D gtk.Window(); b =3D
> gtk.Button("gtk-open"); b.set_use_stock(True); w.add(b); w.show_all();
> gtk.main()'
>
> The answer is yes; obviously if you're registering your own stock items
> with gtk.stock_add you'll need to translate those.
>
> Ed
>
Alright, I just thought that maybe GTK included translations for stock items
like gtk-add. How would I go about making the text in the buttons
translatable? Will I have to move from stock buttons to label-based buttons?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20071206/1cc822fc/at=
tachment.htm
More information about the pygtk
mailing list