[pygtk] Translation, gtk labels, and gettext
ed at catmur.co.uk
Thu Dec 6 17:38:49 WST 2007
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="es_ES.UTF-8" python -c 'import gtk; w = gtk.Window(); b =
gtk.Button("gtk-open"); b.set_use_stock(True); w.add(b); w.show_all();
The answer is yes; obviously if you're registering your own stock items
with gtk.stock_add you'll need to translate those.
More information about the pygtk