X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/2dc4984ad57dfcb0ded829bfc9d45493484fe6e3..a10025361e3ebff819f713a703019950efc2688a:/lib/functions.js.php?ds=inline diff --git a/lib/functions.js.php b/lib/functions.js.php index 5455d78..983736f 100644 --- a/lib/functions.js.php +++ b/lib/functions.js.php @@ -641,14 +641,7 @@ 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' : ''; - } + return (number > 1) ? translate ('PLURAL_ENDING') : ''; } var temp = Math.floor(milliseconds / 1000);