lpcmanager

Parents 8e9bdf30bae2
Children 17254dc3a6d6
The string must not be translated when using GetValueByName and SetValueByName functions.
--- a/WampOptionsEditor.py Mon Mar 04 11:02:43 2019 +0100
+++ b/WampOptionsEditor.py Wed May 08 09:11:04 2019 +0200
@@ -338,19 +338,19 @@
def OnEditButtonClick(self, event):
# pop up the Duration Editor dialog
- options = [self.GetValue(), self.table.GetValueByName(self.row, _("OnChange")), self.table.GetValueByName(self.row, "Initial")]
- desc = self.table.GetValueByName(self.row, _("Description"))
+ options = [self.GetValue(), self.table.GetValueByName(self.row, "OnChange"), self.table.GetValueByName(self.row, "Initial")]
+ desc = self.table.GetValueByName(self.row, "Description")
dialog = WampOptionsEditor(self.parent, options, desc)
answer = dialog.ShowModal()
opt, OnChange, value, description, initial = dialog.GetOptions()
if answer == wx.ID_OK:
self.SetValue(opt)
if OnChange:
- self.table.SetValueByName(self.row, _("OnChange"), value)
+ self.table.SetValueByName(self.row, "OnChange", value)
else:
- self.table.SetValueByName(self.row, _("OnChange"), "")
- self.table.SetValueByName(self.row, _("Description"), description)
- self.table.SetValueByName(self.row, _("Initial"), str(initial))
+ self.table.SetValueByName(self.row, "OnChange", "")
+ self.table.SetValueByName(self.row, "Description", description)
+ self.table.SetValueByName(self.row, "Initial", str(initial))
dialog.Destroy()