function milliseconds_to_time_string (milliseconds)
{
function numberEnding (number) {
- var currentLanguage = '<?php echo $cfg['lang']; ?>';
-
- if(currentLanguage == 'de') {
- return (number > 1) ? 'n' : '';
- }
- else {
- return (number > 1) ? 's' : '';
- }
+ return (number > 1) ? translate ('PLURAL_ENDING') : '';
}
var temp = Math.floor(milliseconds / 1000);