提交 d3a36c58 编写于 作者: A Alessio Sergi

Remove useless strings from translation

上级 861f99e2
......@@ -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
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册