Module: deluge
Branch: master
Commit: addda6cfcc5878df50b39dbd03383baaa2c197ba

Author: Andrew Resch <[email protected]>
Date:   Thu Apr  8 17:43:57 2010 -0700

Fix #640 make file size suffixes translatable

---

 deluge/common.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/deluge/common.py b/deluge/common.py
index fce4052..ae42208 100644
--- a/deluge/common.py
+++ b/deluge/common.py
@@ -234,12 +234,12 @@ def fsize(fsize_b):
     """
     fsize_kb = fsize_b / 1024.0
     if fsize_kb < 1024:
-        return "%.1f KiB" % fsize_kb
+        return "%.1f %s" % (fsize_kb, _("KiB"))
     fsize_mb = fsize_kb / 1024.0
     if fsize_mb < 1024:
-        return "%.1f MiB" % fsize_mb
+        return "%.1f %s" % (fsize_mb, _("MiB"))
     fsize_gb = fsize_mb / 1024.0
-    return "%.1f GiB" % fsize_gb
+    return "%.1f %s" % (fsize_gb, _("GiB"))
 
 def fpcnt(dec):
     """

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to