Yep, we fixed this in Ubuntu back in November.  Here's the merge proposal at
the time:

https://code.launchpad.net/~barry/update-manager/673297-py27/+merge/40510

And the patch we applied (omitting debian/changelog):

=== modified file 'UpdateManager/Core/utils.py'
--- UpdateManager/Core/utils.py 2010-08-12 09:54:02 +0000
+++ UpdateManager/Core/utils.py 2010-11-10 10:04:04 +0000
@@ -349,10 +349,10 @@
         return _("1 KB")
     elif bytes < 1024 * 1024:
         # TRANSLATORS: download size of small updates, e.g. "250 KB"
-        return locale.format(_("%.0f KB"), bytes/1024)
+        return locale.format_string(_("%.0f KB"), bytes/1024)
     else:
         # TRANSLATORS: download size of updates, e.g. "2.3 MB"
-        return locale.format(_("%.1f MB"), bytes / 1024 / 1024)
+        return locale.format_string(_("%.1f MB"), bytes / 1024 / 1024)
 
 if __name__ == "__main__":
   #print mirror_from_sources_list()


Looks like the code's different now, but it confirms your patch is the right
way to go.  This was applied in:

update-manager (1:0.145.1) natty; urgency=low

Attachment: signature.asc
Description: PGP signature

Reply via email to