chiark / gitweb /
Add initial support for i18n.
[cura.git] / Cura / gui / simpleMode.py
index e2f5a2b07303aa63aaf78fcf5c3af19e9e6dcdc2..c5552230d3364fab433004d368d3b47b6607615c 100644 (file)
@@ -17,10 +17,10 @@ class simpleModePanel(wx.Panel):
                #self.menubar.Insert(1, toolsMenu, 'Normal mode')
 
                printTypePanel = wx.Panel(self)
-               self.printTypeHigh = wx.RadioButton(printTypePanel, -1, 'High quality print', style=wx.RB_GROUP)
-               self.printTypeNormal = wx.RadioButton(printTypePanel, -1, 'Normal quality print')
-               self.printTypeLow = wx.RadioButton(printTypePanel, -1, 'Fast low quality print')
-               self.printTypeJoris = wx.RadioButton(printTypePanel, -1, 'Thin walled cup or vase')
+               self.printTypeHigh = wx.RadioButton(printTypePanel, -1, _("High quality print"), style=wx.RB_GROUP)
+               self.printTypeNormal = wx.RadioButton(printTypePanel, -1, _("Normal quality print"))
+               self.printTypeLow = wx.RadioButton(printTypePanel, -1, _("Fast low quality print"))
+               self.printTypeJoris = wx.RadioButton(printTypePanel, -1, _("Thin walled cup or vase"))
                self.printTypeJoris.Hide()
 
                printMaterialPanel = wx.Panel(self)
@@ -28,12 +28,12 @@ class simpleModePanel(wx.Panel):
                self.printMaterialABS = wx.RadioButton(printMaterialPanel, -1, 'ABS')
                self.printMaterialDiameter = wx.TextCtrl(printMaterialPanel, -1, profile.getProfileSetting('filament_diameter'))
                
-               self.printSupport = wx.CheckBox(self, -1, 'Print support structure')
+               self.printSupport = wx.CheckBox(self, -1, _("Print support structure"))
 
                sizer = wx.GridBagSizer()
                self.SetSizer(sizer)
 
-               sb = wx.StaticBox(printTypePanel, label="Select a print type:")
+               sb = wx.StaticBox(printTypePanel, label=_("Select a print type:"))
                boxsizer = wx.StaticBoxSizer(sb, wx.VERTICAL)
                boxsizer.Add(self.printTypeHigh)
                boxsizer.Add(self.printTypeNormal)
@@ -43,17 +43,17 @@ class simpleModePanel(wx.Panel):
                printTypePanel.GetSizer().Add(boxsizer, flag=wx.EXPAND)
                sizer.Add(printTypePanel, (0,0), flag=wx.EXPAND)
 
-               sb = wx.StaticBox(printMaterialPanel, label="Material:")
+               sb = wx.StaticBox(printMaterialPanel, label=_("Material:"))
                boxsizer = wx.StaticBoxSizer(sb, wx.VERTICAL)
                boxsizer.Add(self.printMaterialPLA)
                boxsizer.Add(self.printMaterialABS)
-               boxsizer.Add(wx.StaticText(printMaterialPanel, -1, 'Diameter:'))
+               boxsizer.Add(wx.StaticText(printMaterialPanel, -1, _("Diameter:")))
                boxsizer.Add(self.printMaterialDiameter)
                printMaterialPanel.SetSizer(wx.BoxSizer(wx.VERTICAL))
                printMaterialPanel.GetSizer().Add(boxsizer, flag=wx.EXPAND)
                sizer.Add(printMaterialPanel, (1,0), flag=wx.EXPAND)
 
-               sb = wx.StaticBox(self, label="Other:")
+               sb = wx.StaticBox(self, label=_("Other:"))
                boxsizer = wx.StaticBoxSizer(sb, wx.VERTICAL)
                boxsizer.Add(self.printSupport)
                sizer.Add(boxsizer, (2,0), flag=wx.EXPAND)
@@ -114,7 +114,7 @@ class simpleModePanel(wx.Panel):
                put('bottom_thickness', '0.3')
 
                if self.printSupport.GetValue():
-                       put('support', 'Exterior Only')
+                       put('support', _("Exterior Only"))
 
                nozzle_size = float(get('nozzle_size'))
                if self.printTypeNormal.GetValue():