added help to gettext strings
This commit is contained in:
parent
a7572c4352
commit
e8cd8ace7a
1 changed files with 7 additions and 3 deletions
|
@ -40,13 +40,17 @@ def convert_bytes(string):
|
||||||
bytes = round(bytes/1024.,1)
|
bytes = round(bytes/1024.,1)
|
||||||
if bytes >= 1024:
|
if bytes >= 1024:
|
||||||
bytes = round(bytes/1024.,1)
|
bytes = round(bytes/1024.,1)
|
||||||
|
#Mb means giga bytes
|
||||||
suffix = _('%s Gb')
|
suffix = _('%s Gb')
|
||||||
else:
|
else:
|
||||||
suffix = _('%s Mb')
|
#Mb means mega bytes
|
||||||
|
suffix = _('%s Mb')
|
||||||
else:
|
else:
|
||||||
suffix = _('%s Kb')
|
#Kb means kilo bytes
|
||||||
|
suffix = _('%s Kb')
|
||||||
else:
|
else:
|
||||||
suffix = _('%s b')
|
#b means bytes
|
||||||
|
suffix = _('%s b')
|
||||||
return suffix % str(bytes)
|
return suffix % str(bytes)
|
||||||
|
|
||||||
def escape_for_pango_markup(string):
|
def escape_for_pango_markup(string):
|
||||||
|
|
Loading…
Add table
Reference in a new issue