[Sugar-devel] [PATCH] Fix format string to the factor conversion label
Rafael Ortiz
rafael at activitycentral.com
Fri Sep 2 15:22:34 EDT 2011
On Fri, Sep 2, 2011 at 1:31 PM, <godiard at sugarlabs.org> wrote:
> From: Gonzalo Odiard <godiard at gmail.com>
>
> Signed-off-by: Gonzalo Odiard <gonzalo at laptop.org>
> ---
> smoot_toolbar.py | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/smoot_toolbar.py b/smoot_toolbar.py
> index 5e77566..91bc85a 100644
> --- a/smoot_toolbar.py
> +++ b/smoot_toolbar.py
> @@ -101,7 +101,7 @@ class SmootToolbar(gtk.Toolbar):
> if name == _('meters'):
> self._factor_label.set_label(' ')
> else:
> - self._factor_label.set_label(_('%2$0.2f %1$s per meter') % (
> + self._factor_label.set_label(_('%20.2f %1s per meter') % (
> self._unit_scale, name))
>
> def get_scale(self):
> --
> 1.7.4.4
>
> Thanks applied as:
http://git.sugarlabs.org/distance/distance/commit/107933469fcacd818ae527877781e1c7a2449c15
> _______________________________________________
> 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/20110902/08c40fb5/attachment.html>
More information about the Sugar-devel
mailing list