diff options
author | Yuri Chornoivan <yurchor@ukr.net> | 2013-10-07 22:11:13 +0300 |
---|---|---|
committer | Yuri Chornoivan <yurchor@ukr.net> | 2013-10-07 22:11:13 +0300 |
commit | 04619017d379644961fb9ab525d372d1f9bc0eff (patch) | |
tree | c04c3415535b4bfb465ca73e8754ed2344cb69c2 | |
parent | 193d14c5c43274c5ca5419eb25ced266613208ed (diff) | |
download | net_monitor-04619017d379644961fb9ab525d372d1f9bc0eff.tar net_monitor-04619017d379644961fb9ab525d372d1f9bc0eff.tar.gz net_monitor-04619017d379644961fb9ab525d372d1f9bc0eff.tar.bz2 net_monitor-04619017d379644961fb9ab525d372d1f9bc0eff.tar.xz net_monitor-04619017d379644961fb9ab525d372d1f9bc0eff.zip |
Fix my mistakes with Python i18n
-rw-r--r-- | src/monitor.py | 2 | ||||
-rwxr-xr-x | src/net_monitor | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/monitor.py b/src/monitor.py index 726a586..8d6c909 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -396,4 +396,4 @@ class Monitor: hours = uptime / 3600 mins = (uptime - (hours * 3600)) / 60 secs = uptime % 60 - return _("%(hours)d hours, %(mins)d minutes, %(secs)d seconds") % (hours, mins, secs) + return _("%(hours)d hours, %(mins)d minutes, %(secs)d seconds") % {"hours" : hours, "mins" : mins, "secs" : secs} diff --git a/src/net_monitor b/src/net_monitor index cb3c513..9964211 100755 --- a/src/net_monitor +++ b/src/net_monitor @@ -366,7 +366,7 @@ class MonitorGui: gw_message = ", ".join(["%s (%s)" % (gw, iface) for gw, iface in default_routes]) else: gw_message = _("Not found") - tray_message = _("Default routes: %(gw_message)s; DNS: %(dns_message)s") % (gw_message, dns_message) + tray_message = _("Default routes: %(gw_message)s; DNS: %(dns_message)s") % {"gw_message" : gw_message, "dns_message" : dns_message} self.statusbar.pop(self.context_id) self.statusbar.push(self.context_id, tray_message) |