GTK Stock Buttons Translations

Pedro Algarvio, aka, s0undt3ch ufs at ufsoft.org
Sun Jul 22 23:45:56 BST 2007


Hello there!
I'm using PyGTK 2 on a custom application I'm coding.

According to a user on #pygtk(freenode) there's something wrong with my gtk install.
Here's some example code if one has pygtk installed

---8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----
import gtk

w = gtk.Window ()
w.add (gtk.Button (stock=gtk.STOCK_CANCEL))

w.connect ('destroy', lambda window: gtk.main_quit ())
w.show_all ()
gtk.main ()
---8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----

If one on shell runs:
LC_ALL=pt_PT test.py
I get a warning and it fallsback to C

If I run
LC_ALL=pt_PT.UTF8 test.py

that gtk.STOCK_CANCEL button does not get translated to pt_PT.

So, is this a bug because you don't include the catalog files for gtk+2?

Or am I missing a package here?

Notice that I've installed language-pack-pt and I generated the pt_PT.UTF8 locale.

I'm also running Kubuntu Feisty.

Best Regards,
-- 
Pedro Algarvio
   __ ___  ___ _______        ___ __
|   Y   .'  _|   _   .-----.'  _|  |_   .-----.----.-----.
|.  |   |   _|   1___|  _  |   _|   _|__|  _  |   _|  _  |
|.  |   |__| |____   |_____|__| |____|__|_____|__| |___  |
|:  1   |    |:  1   |                             |_____|
|::.. . |    |::.. . |  ufs [AT] ufsoft [DOT] org
`-------'    `-------'    ufs [AT] sapo [DOT] pt




More information about the ubuntu-desktop mailing list