diff options
author | Alessio Sergi <al3hex@gmail.com> | 2014-05-29 09:49:29 +0200 |
---|---|---|
committer | Alessio Sergi <al3hex@gmail.com> | 2014-05-29 12:22:18 +0200 |
commit | d3a36c58b845259233f30737b900826412624a81 (patch) | |
tree | 05f55c16c29e72009e44dca815031dc600a04991 | |
parent | 861f99e26dce06b0a240e2f3ce5498d3ad79a160 (diff) |
Remove useless strings from translation
-rw-r--r-- | glances/plugins/glances_now.py | 2 | ||||
-rw-r--r-- | glances/plugins/glances_system.py | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/glances/plugins/glances_now.py b/glances/plugins/glances_now.py index b5f4e4f6..a8707646 100644 --- a/glances/plugins/glances_now.py +++ b/glances/plugins/glances_now.py @@ -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 diff --git a/glances/plugins/glances_system.py b/glances/plugins/glances_system.py index ce6f3c83..9ecbc3ae 100644 --- a/glances/plugins/glances_system.py +++ b/glances/plugins/glances_system.py @@ -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 |