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

Gonzalo Odiard gonzalo at laptop.org
Thu Jan 19 22:07:20 EST 2012


This patch does not solve the bug and introduce a new l10n problem.
You put the 'remaining' string at the end, and can exist languages where
should be in different order.

Gonzalo

On Thu, Jan 19, 2012 at 6:35 PM, Ajay Garg <ajay at activitycentral.com> wrote:

> 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
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20120120/9bea64b0/attachment.html>


More information about the Sugar-devel mailing list