From 2c3f5b20712f3c11950550625288bac15bd7fef7 Mon Sep 17 00:00:00 2001 From: Yannick Date: Thu, 15 Oct 2015 12:09:01 +0200 Subject: [PATCH] #1404 Fix System info errorr --- include/functions.php | 2 +- lang/English/luna.po | 32 +++++++++++++++++++++++++++++++- 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/include/functions.php b/include/functions.php index 440533122..3b3cf66c3 100755 --- a/include/functions.php +++ b/include/functions.php @@ -1591,7 +1591,7 @@ function file_size($size) { for ($i = 0; $size > 1024; $i++) $size /= 1024; - return sprintf(__('Size unit %s', 'luna'), $units[ round($size, 2) ]); + return sprintf(__('%s '.$units[$i], 'luna'), round($size, 2)); } diff --git a/lang/English/luna.po b/lang/English/luna.po index e62878da4..5f635fcf7 100644 --- a/lang/English/luna.po +++ b/lang/English/luna.po @@ -3469,7 +3469,37 @@ msgstr "" #: include/functions.php:1566 #, php-format -msgid "Size unit %s" +msgid "%s B" +msgstr "" + +#: include/functions.php:1566 +#, php-format +msgid "%s KiB" +msgstr "" + +#: include/functions.php:1566 +#, php-format +msgid "%s MiB" +msgstr "" + +#: include/functions.php:1566 +#, php-format +msgid "%s GiB" +msgstr "" + +#: include/functions.php:1566 +#, php-format +msgid "%s TiB" +msgstr "" + +#: include/functions.php:1566 +#, php-format +msgid "%s PiB" +msgstr "" + +#: include/functions.php:1566 +#, php-format +msgid "%s EiB" msgstr "" #: include/functions.php:1964