From a4bfa2348c5e572c9c519dbbf2f60f04504bf66d Mon Sep 17 00:00:00 2001 From: Florian Fricke Date: Thu, 14 Dec 2017 15:37:18 +0100 Subject: [PATCH 1/1] [FEATURE] change labels --- lib/functions.js.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/functions.js.php b/lib/functions.js.php index d552cd8..7177b85 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -607,17 +607,17 @@ function upload_time_estimation_speed_string() if (s <= 1000) { res = s.toString(); - scale = "o/s"; + scale = "Bit/s"; } else if (s < 1000000) { res = Math.floor(s/100) / 10; - scale = "Ko/s"; + scale = "KBit/s"; } else { res = Math.floor(s/100000) / 10; - scale = "Mo/s"; + scale = "Mbit/s"; } if (res == 0) return ''; @@ -627,7 +627,14 @@ function upload_time_estimation_speed_string() function milliseconds_to_time_string (milliseconds) { function numberEnding (number) { + var currentLanguage = ''; + + if(currentLanguage == 'de') { + return (number > 1) ? 'n' : ''; + } + else { return (number > 1) ? 's' : ''; + } } var temp = Math.floor(milliseconds / 1000); -- 2.34.1