X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/2dc4984ad57dfcb0ded829bfc9d45493484fe6e3..48f14e7b05a452683cf059b767ea6b071a300edd:/lib/functions.js.php 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);