mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-29 00:11:36 +00:00
use print_error; transalte New version string
This commit is contained in:
parent
9009fba35c
commit
c933e6c614
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ class UpdateLabel(QtGui.QLabel):
|
||||||
con.request("GET", "/version")
|
con.request("GET", "/version")
|
||||||
res = con.getresponse()
|
res = con.getresponse()
|
||||||
except socket.error as msg:
|
except socket.error as msg:
|
||||||
print "Could not retrieve version information"
|
print_error("Could not retrieve version information")
|
||||||
return
|
return
|
||||||
|
|
||||||
if res.status == 200:
|
if res.status == 200:
|
||||||
|
@ -83,7 +83,7 @@ class UpdateLabel(QtGui.QLabel):
|
||||||
if(self.compare_versions(self.latest_version, self.current_version) == 1):
|
if(self.compare_versions(self.latest_version, self.current_version) == 1):
|
||||||
latest_seen = self.config.get("last_seen_version")
|
latest_seen = self.config.get("last_seen_version")
|
||||||
if(self.compare_versions(self.latest_version, latest_seen) == 1):
|
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):
|
def compare_versions(self, version1, version2):
|
||||||
|
|
Loading…
Add table
Reference in a new issue