[pygtk] Translating Treeview column headers with gettext + gtkBuilder
Andreas Heinlein
aheinlein at gmx.com
Thu May 19 22:06:56 WST 2011
Am 16.05.2011 18:18, schrieb Timo:
> 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.
>
You were right. Seems it is actually a bug in my Glade Interface
Builder, which is supposed to set that automatically, but obviously
doesn't in that case.
Thanks,
Andreas
More information about the pygtk
mailing list