chiark / gitweb /
Make new version dialog translatable and rename Ok into OK
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 12 Aug 2015 17:48:16 +0000 (13:48 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Fri, 14 Aug 2015 18:38:11 +0000 (14:38 -0400)
Cura/gui/newVersionDialog.py

index 9c9767f8384055c338e21489f55f55d21ce396b5..e6d9936b4cea3f671600ec29eb342b76b89fbff3 100644 (file)
@@ -27,15 +27,15 @@ class newVersionDialog(wx.Dialog):
                dc.SetFont(font)
                title.SetMinSize(dc.GetTextExtent(title_text))
                s.Add(title, flag=wx.ALIGN_CENTRE|wx.EXPAND|wx.BOTTOM, border=5)
-               s.Add(wx.StaticText(p, -1, 'Welcome to the new release of Cura LulzBot Edition!'))
-               s.Add(wx.StaticText(p, -1, '(This dialog is only shown once)'))
+               s.Add(wx.StaticText(p, -1, _('Welcome to the new release of Cura LulzBot Edition!')))
+               s.Add(wx.StaticText(p, -1, _('(This dialog is only shown once)')))
                s.Add(wx.StaticLine(p), flag=wx.EXPAND|wx.TOP|wx.BOTTOM, border=10)
-               s.Add(wx.StaticText(p, -1, 'Want to know what is new and cool in this version?'))
-               s.Add(wx.StaticText(p, -1, 'Click here for a list of changes:'))
+               s.Add(wx.StaticText(p, -1, _('Want to know what is new and cool in this version?')))
+               s.Add(wx.StaticText(p, -1, _('Click here for a list of changes:')))
                s.Add(wx.HyperlinkCtrl(p, -1, newVersionDialog.url))
 
                s.Add(wx.StaticLine(p), flag=wx.EXPAND|wx.TOP|wx.BOTTOM, border=10)
-               button = wx.Button(p, -1, 'Ok')
+               button = wx.Button(p, -1, _('OK'))
                self.Bind(wx.EVT_BUTTON, self.OnOk, button)
                s.Add(button, flag=wx.TOP|wx.ALIGN_RIGHT, border=5)