diff options
| author | Sebastian Heinlein <sebi@sebi-pc> | 2006-09-27 00:30:46 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@sebi-pc> | 2006-09-27 00:30:46 +0200 |
| commit | cf3decd2e830b53569e8dd9c12c2469914eb9b21 (patch) | |
| tree | 033fe3b9ccfe9ead34caebe9226646917a04de94 /UpdateManager/Common/utils.py | |
| parent | 84593d761ff3e297753111923e621dfaf9c9ff77 (diff) | |
| download | python-apt-cf3decd2e830b53569e8dd9c12c2469914eb9b21.tar.gz | |
* 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
Diffstat (limited to 'UpdateManager/Common/utils.py')
| -rw-r--r-- | UpdateManager/Common/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 """ |
