fix i18n string selection for combobox generated from XSD
authorSurkov Sergey <surkovsv93@gmail.com>
Mon, 26 Jun 2017 19:38:51 +0300
changeset 1707 92537edeb205
parent 1706 b5c0a10145f1
child 1708 24416137cda7
child 1712 c1987ef148e4
fix i18n string selection for combobox generated from XSD
editors/ConfTreeNodeEditor.py
--- a/editors/ConfTreeNodeEditor.py	Thu Jun 22 16:43:38 2017 +0300
+++ b/editors/ConfTreeNodeEditor.py	Mon Jun 26 19:38:51 2017 +0300
@@ -413,7 +413,7 @@
                         if element_infos["value"] is None:
                             combobox.SetStringSelection("")
                         else:
-                            combobox.SetStringSelection(element_infos["value"])
+                            combobox.SetStringSelection(_(element_infos["value"]))
                         combobox.Bind(wx.EVT_COMBOBOX, callback, combobox)
 
                 elif isinstance(element_infos["type"], types.DictType):