[Sugar-devel] [PATCH] Fix format string to the factor conversion label

godiard at sugarlabs.org godiard at sugarlabs.org
Fri Sep 2 14:31:26 EDT 2011


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



More information about the Sugar-devel mailing list