Skip to content
Snippets Groups Projects
Commit 6a10743c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

add strings to translate in advanced configuration editor

parent d479973e
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,11 @@ import gobject
from common import gajim
_ = i18n._
APP = i18n.APP
gtk.glade.bindtextdomain(APP, i18n.DIR)
gtk.glade.textdomain(APP)
OPT_TYPE = 0
OPT_VAL = 1
......@@ -98,21 +103,21 @@ class Advanced_configuration_window:
self.modelfilter.set_visible_func(self.visible_func)
renderer_text = gtk.CellRendererText()
col = treeview.insert_column_with_attributes(-1, 'Preference Name',
col = treeview.insert_column_with_attributes(-1, _('Preference Name'),
renderer_text, text = 0)
col.set_resizable(True)
renderer_text = gtk.CellRendererText()
renderer_text.set_property('editable', 1)
renderer_text.connect('edited', self.on_config_edited)
col = treeview.insert_column_with_attributes(-1, 'Value',
col = treeview.insert_column_with_attributes(-1, _('Value'),
renderer_text, text = 1)
#col.set_resizable(True) seems like a GTK+ bug DO NOT REMOVE
col.set_max_width(250)
renderer_text = gtk.CellRendererText()
treeview.insert_column_with_attributes(-1, 'Type',
treeview.insert_column_with_attributes(-1, _('Type'),
renderer_text, text = 2)
# add data to model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment