From e8c1e2624f05e23be932bd5297f4198ff29c9ce9 Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Wed, 12 Aug 2015 13:48:16 -0400 Subject: [PATCH] Make new version dialog translatable and rename Ok into OK --- Cura/gui/newVersionDialog.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Cura/gui/newVersionDialog.py b/Cura/gui/newVersionDialog.py index 9c9767f8..e6d9936b 100644 --- a/Cura/gui/newVersionDialog.py +++ b/Cura/gui/newVersionDialog.py @@ -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) -- 2.30.2