From 05dd9ab08283ed4a1e8e3d35aae3bc4284857c2a Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Mon, 7 Oct 2013 18:40:22 +0300 Subject: Add argument markers as requested by Gettext Python standard, update translation catalog --- src/monitor.py | 2 +- src/net_monitor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) -- cgit v1.2.1