From e8cd8ace7a5c66eb0d22d3e5faf65954f84f57a0 Mon Sep 17 00:00:00 2001 From: Dimitur Kirov Date: Sun, 7 Aug 2005 21:44:12 +0000 Subject: [PATCH] added help to gettext strings --- src/gtkgui_helpers.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gtkgui_helpers.py b/src/gtkgui_helpers.py index 87c5cd8d5..4690c311a 100644 --- a/src/gtkgui_helpers.py +++ b/src/gtkgui_helpers.py @@ -40,13 +40,17 @@ def convert_bytes(string): bytes = round(bytes/1024.,1) if bytes >= 1024: bytes = round(bytes/1024.,1) + #Mb means giga bytes suffix = _('%s Gb') else: - suffix = _('%s Mb') + #Mb means mega bytes + suffix = _('%s Mb') else: - suffix = _('%s Kb') + #Kb means kilo bytes + suffix = _('%s Kb') else: - suffix = _('%s b') + #b means bytes + suffix = _('%s b') return suffix % str(bytes) def escape_for_pango_markup(string):