From c3fdbfb643ff70636d2f8e26c224669f89eab72f Mon Sep 17 00:00:00 2001 From: Daniel Pavel Date: Sun, 25 Aug 2013 23:03:25 +0300 Subject: [PATCH] translate battery alerts (fixes #119) --- lib/logitech_receiver/status.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/logitech_receiver/status.py b/lib/logitech_receiver/status.py index 57d8505a..4fb59113 100644 --- a/lib/logitech_receiver/status.py +++ b/lib/logitech_receiver/status.py @@ -200,9 +200,9 @@ class DeviceStatus(dict): # only show the notification once alert = ALERT.NOTIFICATION | ALERT.ATTENTION if isinstance(level, _NamedInt): - reason = 'battery: %s (%s)' % (level, status) + reason = '%s: %s (%s)' % (_("Battery"), _(str(level)), _(str(status))) else: - reason = 'battery: %d%% (%s)' % (level, status) + reason = '%s: %d%% (%s)' % (_("Battery"), level, _(str(status))) if changed or reason: # update the leds on the device, if any