translate battery alerts (fixes #119)

This commit is contained in:
Daniel Pavel 2013-08-25 23:03:25 +03:00
parent a9ebac264f
commit c3fdbfb643
1 changed files with 2 additions and 2 deletions

View File

@ -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