Commit 8e9a09a7 authored by Guillaume Seguin's avatar Guillaume Seguin

i18n fix to pronterface.py

parent ea3ea4e9
...@@ -325,7 +325,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -325,7 +325,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
else: else:
print _("You cannot set negative temperatures. To turn the hotend off entirely, set its temperature to 0.") print _("You cannot set negative temperatures. To turn the hotend off entirely, set its temperature to 0.")
except Exception, x: except Exception, x:
print _("You must enter a temperature. (%s)" % (repr(x),)) print _("You must enter a temperature. (%s)") % (repr(x),)
if self.webInterface: if self.webInterface:
self.webInterface.AddLog("You must enter a temperature. (%s)" % (repr(x),)) self.webInterface.AddLog("You must enter a temperature. (%s)" % (repr(x),))
...@@ -350,8 +350,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -350,8 +350,8 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
print _("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.") print _("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.")
if self.webInterface: if self.webInterface:
self.webInterface.AddLog("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.") self.webInterface.AddLog("You cannot set negative temperatures. To turn the bed off entirely, set its temperature to 0.")
except: except Exception, x:
print _("You must enter a temperature.") print _("You must enter a temperature. (%s)") % (repr(x),)
if self.webInterface: if self.webInterface:
self.webInterface.AddLog("You must enter a temperature.") self.webInterface.AddLog("You must enter a temperature.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment