etherlab/EtherCATManagementEditor.py
changeset 2382 e783c6beacf1
parent 2381 1c40e3976cc2
child 2383 6cc3460be285
--- a/etherlab/EtherCATManagementEditor.py	Sat Sep 29 15:16:21 2018 +0300
+++ b/etherlab/EtherCATManagementEditor.py	Sat Sep 29 15:21:06 2018 +0300
@@ -643,7 +643,7 @@
         self.Controler.CommonMethod.Check_SAFEOP = False
         self.Controler.CommonMethod.Check_OP = False
 
-    def SDOModifyDialog (self, event):
+    def SDOModifyDialog(self, event):
         """
         Create dialog for SDO value modify
         if user enter data, perform command "ethercat download"
@@ -653,8 +653,11 @@
 
         # CheckSDODataAccess is checking that OD(Object Dictionary) has "w"
         if event.GetCol() == 7 and self.CheckSDODataAccess(event.GetRow()):
-            dlg = wx.TextEntryDialog (self, "Enter hex or dec value (if enter dec value, it automatically conversed hex value)",
-                                      "SDOModifyDialog", style=wx.OK | wx.CANCEL)
+            dlg = wx.TextEntryDialog(
+                self,
+                _("Enter hex or dec value (if enter dec value, it automatically conversed hex value)"),
+                "SDOModifyDialog",
+                style=wx.OK | wx.CANCEL)
 
             start_value = self.GetCellValue(event.GetRow(), event.GetCol())
             dlg.SetValue(start_value)