X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/blobdiff_plain/811b7429110924a8a186dd8454f8e466de80ab06..48f14e7b05a452683cf059b767ea6b071a300edd:/lib/functions.js.php?ds=sidebyside 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);