diff --git a/deluge/ui/gtkui/statistics_tab.py b/deluge/ui/gtkui/statistics_tab.py index ad0b7f33d..0e4c4da73 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/statusbar.py b/deluge/ui/gtkui/statusbar.py index 58ce81e54..616116382 100644 --- a/deluge/ui/gtkui/statusbar.py +++ b/deluge/ui/gtkui/statusbar.py @@ -344,7 +344,7 @@ class StatusBar(component.Component): self.upload_item.set_text(label_string) def update_traffic_label(self): - label_string = "%.2f/%.2f KiB/s" % (self.download_protocol_rate, self.upload_protocol_rate) + label_string = "%.2f/%.2f %s" % (self.download_protocol_rate, self.upload_protocol_rate, _("KiB/s")) self.traffic_item.set_text(label_string) def update(self): @@ -367,7 +367,7 @@ class StatusBar(component.Component): value = -1 elif widget.get_name() == _("Other..."): value = common.show_other_dialog( - _("Set Maximum Download Speed"), "KiB/s", None, "downloading.svg", self.max_download_speed) + _("Set Maximum Download Speed"), _("KiB/s"), None, "downloading.svg", self.max_download_speed) if value == None: return else: @@ -395,7 +395,7 @@ class StatusBar(component.Component): value = -1 elif widget.get_name() == _("Other..."): value = common.show_other_dialog( - _("Set Maximum Upload Speed"), "KiB/s", None, "seeding.svg", self.max_upload_speed) + _("Set Maximum Upload Speed"), _("KiB/s"), None, "seeding.svg", self.max_upload_speed) if value == None: return else: diff --git a/deluge/ui/gtkui/systemtray.py b/deluge/ui/gtkui/systemtray.py index 1de5fd980..a37452f44 100644 --- a/deluge/ui/gtkui/systemtray.py +++ b/deluge/ui/gtkui/systemtray.py @@ -187,11 +187,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, \ @@ -336,7 +336,7 @@ class SystemTray(component.Component): value = -1 if value == _("Other..."): - value = common.show_other_dialog(string, "KiB/s", None, image, default) + value = common.show_other_dialog(string, _("KiB/s"), None, image, default) if value == None: return