From c933e6c614ad11d3b6616587dd3325840b78fc9d Mon Sep 17 00:00:00 2001 From: thomasv Date: Wed, 16 Jan 2013 13:30:53 +0100 Subject: [PATCH] use print_error; transalte New version string --- lib/gui_qt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gui_qt.py b/lib/gui_qt.py index f5278190f..3d91e437f 100644 --- a/lib/gui_qt.py +++ b/lib/gui_qt.py @@ -69,7 +69,7 @@ class UpdateLabel(QtGui.QLabel): con.request("GET", "/version") res = con.getresponse() except socket.error as msg: - print "Could not retrieve version information" + print_error("Could not retrieve version information") return if res.status == 200: @@ -83,7 +83,7 @@ class UpdateLabel(QtGui.QLabel): if(self.compare_versions(self.latest_version, self.current_version) == 1): latest_seen = self.config.get("last_seen_version") if(self.compare_versions(self.latest_version, latest_seen) == 1): - self.setText("New version available: " + self.latest_version) + self.setText(_("New version available") + ": " + self.latest_version) def compare_versions(self, version1, version2):