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 bc9c323..726a586 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 _("%d hours, %d minutes, %d seconds") % (hours, mins, secs)
+ return _("%(hours)d hours, %(mins)d minutes, %(secs)d seconds") % (hours, mins, secs)
diff --git a/src/net_monitor b/src/net_monitor
index 117ddc4..cb3c513 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: %s; DNS: %s") % (gw_message, dns_message)
+ tray_message = _("Default routes: %(gw_message)s; DNS: %(dns_message)s") % (gw_message, dns_message)
self.statusbar.pop(self.context_id)
self.statusbar.push(self.context_id, tray_message)