aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/monitor.py2
-rwxr-xr-xsrc/net_monitor2
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)