[pygtk] Translating Treeview column headers with gettext + gtkBuilder
Timo
timomlists at gmail.com
Tue May 17 00:18:56 WST 2011
On 16-05-11 16:09, Andreas Heinlein wrote:
> Hello,
>
> I have a pyGtk App which uses gtkBuilder for its interface and gettext
> (Python Module) for translation. Translating works *except* for column
> headers on several Treeviewcolumns. The UI definition looks like this:
>
> ...
> <child>
> <object class="GtkScrolledWindows" id="scroll">
> ....
> <child>
> <object class="GtkTreeView" id="view1">
> <child>
> <object class="GtkTreeViewColumn" id="column0">
> <property name="title">Key ID</property>
This property needs a translatable="yes" for the string to be translated.
Cheers,
Timo
> ...
> </object>
> </child>
> </object>
> </child>
> </object>
> </child>
>
> Here "Key ID" is not translated. I have no idea why; the msgstrings
> exist in the *.mo file, and 'gettext "Key ID"' returns the correct value.
>
> Any help appreciated.
>
> Andreas
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
More information about the pygtk
mailing list