[Sugar-devel] [PATCH 2/5] sl#2815: Localization fixes.

Ajay Garg ajay at activitycentral.com
Thu Jan 19 16:35:50 EST 2012


Signed-off-by: Ajay Garg <ajay at activitycentral.com>
---
 extensions/deviceicon/battery.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/extensions/deviceicon/battery.py b/extensions/deviceicon/battery.py
index 260cb12..63530fe 100644
--- a/extensions/deviceicon/battery.py
+++ b/extensions/deviceicon/battery.py
@@ -155,8 +155,9 @@ class BatteryPalette(Palette):
                 minutes_remaining = self._time // 60
                 remaining_hourpart = minutes_remaining // 60
                 remaining_minpart = minutes_remaining % 60
-                secondary_text = _('%(hour)d:%(min).2d remaining') % \
+                time_value = '%(hour)d:%(min).2d ' % \
                         {'hour': remaining_hourpart, 'min': remaining_minpart}
+                secondary_text = time_value + _('remaining')
         else:
             secondary_text = _('Charged')
 
-- 
1.7.4.4



More information about the Sugar-devel mailing list