summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-01 12:18:16 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-01 12:18:16 +0000
commit8dc4b457317588f6779c3adb4322fab403d6f8c5 (patch)
tree8cd2ecf3b1b57bcf8cd51575357b360b3ca1fa3e /roundcubemail/program/include
parent37d409bde13d8a601e9a816083ae6677b3ee1a8a (diff)
- Localized filesize units (#1485340) + small labels capitalization change in en.* (#1485407)
git-svn-id: https://svn.roundcube.net/trunk@1907 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_shared.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/roundcubemail/program/include/rcube_shared.inc b/roundcubemail/program/include/rcube_shared.inc
index 4d35a4d9b..a9ade36db 100644
--- a/roundcubemail/program/include/rcube_shared.inc
+++ b/roundcubemail/program/include/rcube_shared.inc
@@ -249,17 +249,17 @@ function show_bytes($bytes)
if ($bytes > 1073741824)
{
$gb = $bytes/1073741824;
- $str = sprintf($gb>=10 ? "%d GB" : "%.1f GB", $gb);
+ $str = sprintf($gb>=10 ? "%d " : "%.1f ", $gb) . rcube_label('GB');
}
else if ($bytes > 1048576)
{
$mb = $bytes/1048576;
- $str = sprintf($mb>=10 ? "%d MB" : "%.1f MB", $mb);
+ $str = sprintf($mb>=10 ? "%d " : "%.1f ", $mb) . rcube_label('MB');
}
else if ($bytes > 1024)
- $str = sprintf("%d KB", round($bytes/1024));
+ $str = sprintf("%d ", round($bytes/1024)) . rcube_label('KB');
else
- $str = sprintf('%d B', $bytes);
+ $str = sprintf('%d ', $bytes) . rcube_label('B');
return $str;
}