summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcos Pinto <markybob@dipconsultants.com>2008-12-09 03:28:30 +0000
committerMarcos Pinto <markybob@dipconsultants.com>2008-12-09 03:28:30 +0000
commit9c2db325321419a870ec7671c05f9cf456db72e2 (patch)
treeb1c3bdcd57ddc8d8d81f7756d6145ba0a78e1fa8
parent4b58aa10ea50b2656b598f69e2f897082624de08 (diff)
downloaddeluge-9c2db325321419a870ec7671c05f9cf456db72e2.tar.gz
deluge-9c2db325321419a870ec7671c05f9cf456db72e2.tar.bz2
deluge-9c2db325321419a870ec7671c05f9cf456db72e2.zip
partial fix to #640. more work needed
-rw-r--r--deluge/ui/gtkui/statistics_tab.py2
-rw-r--r--deluge/ui/gtkui/systemtray.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/deluge/ui/gtkui/statistics_tab.py b/deluge/ui/gtkui/statistics_tab.py
index 767c9a1ff..5379b6ebb 100644
--- a/deluge/ui/gtkui/statistics_tab.py
+++ b/deluge/ui/gtkui/statistics_tab.py
@@ -48,7 +48,7 @@ def fpcnt(value):
def fspeed(value, max_value=-1):
if max_value > -1:
- return "%s [%s KiB/s]" % (deluge.common.fspeed(value), max_value)
+ return "%s [%s _(KiB/s)]" % (deluge.common.fspeed(value), max_value)
else:
return deluge.common.fspeed(value)
diff --git a/deluge/ui/gtkui/systemtray.py b/deluge/ui/gtkui/systemtray.py
index b46a1ed63..b75acadc1 100644
--- a/deluge/ui/gtkui/systemtray.py
+++ b/deluge/ui/gtkui/systemtray.py
@@ -178,11 +178,11 @@ class SystemTray(component.Component):
if max_download_speed == -1:
max_download_speed = _("Unlimited")
else:
- max_download_speed = "%s KiB/s" % (max_download_speed)
+ max_download_speed = "%s %s" % (max_download_speed, _("KiB/s"))
if max_upload_speed == -1:
max_upload_speed = _("Unlimited")
else:
- max_upload_speed = "%s KiB/s" % (max_upload_speed)
+ max_upload_speed = "%s %s" % (max_upload_speed, _("KiB/s"))
msg = '%s\n%s: %s (%s)\n%s: %s (%s)' % (\
_("Deluge"), _("Down"), self.download_rate, \
@@ -316,7 +316,7 @@ class SystemTray(component.Component):
if value == _("Other..."):
value = deluge.common.show_other_dialog(
- string + " Speed (KiB/s):", default)
+ string + _(" Speed (KiB/s):"), default)
if value == None:
return