chiark / gitweb /
Refactoring so there is a single source for the version.
[cura.git] / Cura / gui / aboutWindow.py
index 72f76a21253f9ad94409459287918001a7c26236..4ec9e2ff38b5e9de4a3a8bb7ca13191731bf50ea 100644 (file)
@@ -2,10 +2,11 @@ __copyright__ = "Copyright (C) 2013 David Braam - Released under terms of the AG
 
 import wx
 import platform
+from Cura.util import version
 
 class aboutWindow(wx.Frame):
        def __init__(self, parent):
-               super(aboutWindow, self).__init__(parent, title="About", style = wx.DEFAULT_DIALOG_STYLE)
+               super(aboutWindow, self).__init__(parent, title=_("About"), style = wx.DEFAULT_DIALOG_STYLE)
 
                wx.EVT_CLOSE(self, self.OnClose)
 
@@ -21,7 +22,8 @@ class aboutWindow(wx.Frame):
                title.SetFont(wx.Font(18, wx.SWISS, wx.NORMAL, wx.BOLD))
                s.Add(title, flag=wx.ALIGN_CENTRE|wx.EXPAND|wx.BOTTOM, border=5)
 
-               s.Add(wx.StaticText(p, -1, 'Version 14.09-1.18'))
+               version_num = version.getVersion()
+               s.Add(wx.StaticText(p, -1, 'Version {}'.format(version_num)))
                s.Add(wx.StaticText(p, -1, 'End solution for Open Source Fused Filament Fabrication 3D printing.'), flag=wx.TOP, border=5)
                s.Add(wx.StaticText(p, -1, 'Cura is currently developed and maintained by David Braam and Ultimaker.'), flag=wx.TOP, border=5)
                s.Add(wx.StaticText(p, -1, 'Cura LulzBot Edition has been modified and maintained by Aleph Objects, Inc.'))