From cf3decd2e830b53569e8dd9c12c2469914eb9b21 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Wed, 27 Sep 2006 00:30:46 +0200 Subject: * Make some strings translatable - seems that gettext doesn't like being part of string addition. the other one was my fault and not the one of gettext. fix #62519 and #62458 * Fix the imports and calls of human_size --- UpdateManager/Common/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'UpdateManager/Common/utils.py') diff --git a/UpdateManager/Common/utils.py b/UpdateManager/Common/utils.py index 95440e44..fa73b8bd 100644 --- a/UpdateManager/Common/utils.py +++ b/UpdateManager/Common/utils.py @@ -1,4 +1,5 @@ import gtk +from gettext import gettext as _ def str_to_bool(str): if str == "0" or str.upper() == "FALSE": @@ -22,7 +23,7 @@ def error(parent, summary, message): d.destroy() return -def humanize_size(self, bytes): +def humanize_size(bytes): """ Convert a given size in bytes to a nicer better readable unit """ -- cgit v1.2.3