Minor change for release in information page

This commit is contained in:
Silvan Calarco 2011-07-09 17:40:31 +02:00
parent 81e09a4d56
commit 0159b89194

View File

@ -97,7 +97,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
v = open(path, 'r')
version = v.read()
a = self.FormattaInfo()
version = "<ul><li>"+_("<font color=\"green\">open</font>mamba version:")+" <i>"+a[0]+"</i><li>"+_("Platform: ")+"<i>"+a[1]+"</i></ul>"
version = "<ul><li>"+_("<font color=\"green\">open</font>mamba release:")+" <i>"+a[0]+"</i><li>"+_("Platform: ")+"<i>"+a[1]+"</i></ul>"
v.close()
else:
version = "Error: Unable to find /etc/openmamba-release"
@ -112,7 +112,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
result = []
v = version
#result[0]=versione
result.append(v[ v.find("openmamba ")+10 : v.find(" for") ] + " " + v[ v.find("(") : v.find(")")+1 ])
result.append(v[ v.find("openmamba release ")+18 : v.find(" for") ] + " " + v[ v.find("(") : v.find(")")+1 ])
#result[1] = piattaforma
result.append(v[ v.find("for")+4 : v.find("(") ])
return result