Remove useless strings from translation

This commit is contained in:
Alessio Sergi 2014-05-29 09:49:29 +02:00
parent 861f99e26d
commit d3a36c58b8
2 changed files with 10 additions and 10 deletions

View File

@ -63,7 +63,7 @@ class Plugin(GlancesPlugin):
# Build the string message
# 23 is the padding for the process list
msg = _("{0:23}").format(self.stats)
msg = '{0:23}'.format(self.stats)
ret.append(self.curse_add_line(msg))
return ret

View File

@ -118,21 +118,21 @@ class Plugin(GlancesPlugin):
ret.append(self.curse_add_line(msg, 'CRITICAL'))
# Hostname is mandatory
msg = _("{0}").format(self.stats['hostname'])
msg = self.stats['hostname']
ret.append(self.curse_add_line(msg, "TITLE"))
# System info
if self.stats['os_name'] == "Linux":
msg = _(" ({0} {1} / {2} {3})").format(self.stats['linux_distro'],
self.stats['platform'],
self.stats['os_name'],
self.stats['os_version'])
msg = " ({0} {1} / {2} {3})".format(self.stats['linux_distro'],
self.stats['platform'],
self.stats['os_name'],
self.stats['os_version'])
else:
try:
msg = _(" ({0} {1} {2})").format(self.stats['os_name'],
self.stats['os_version'],
self.stats['platform'])
msg = " ({0} {1} {2})".format(self.stats['os_name'],
self.stats['os_version'],
self.stats['platform'])
except:
msg = _(" ({0})").format(self.stats['os_name'])
msg = " ({0})".format(self.stats['os_name'])
ret.append(self.curse_add_line(msg, optional=True))
# Return the message with decoration