diff options
author | kondou <kondou@ts.unde.re> | 2013-08-09 20:37:18 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-08-09 20:37:18 +0200 |
commit | 9549bd3e68aa32bb9fa1a9a54bda84fa5070966f (patch) | |
tree | e8464e5679053e1b75e358682ece102ea959836a /core/js | |
parent | 4c0ec974b9a8b97625695edd136e1f805af0bf31 (diff) | |
download | nextcloud-server-9549bd3e68aa32bb9fa1a9a54bda84fa5070966f.tar.gz nextcloud-server-9549bd3e68aa32bb9fa1a9a54bda84fa5070966f.zip |
Use plural translations
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/js/js.js b/core/js/js.js index 1d1711383f7..0fc4bab80a7 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -812,15 +812,13 @@ function relative_modified_date(timestamp) { var diffdays = Math.round(diffhours/24); var diffmonths = Math.round(diffdays/31); if(timediff < 60) { return t('core','seconds ago'); } - else if(timediff < 120) { return t('core','1 minute ago'); } - else if(timediff < 3600) { return t('core','{minutes} minutes ago',{minutes: diffminutes}); } - else if(timediff < 7200) { return t('core','1 hour ago'); } - else if(timediff < 86400) { return t('core','{hours} hours ago',{hours: diffhours}); } + else if(timediff < 3600) { return n('core','%n minute ago', '%n minutes ago', diffminutes); } + else if(timediff < 86400) { return n('core', '%n hour ago', '%n hours ago', diffhours); } else if(timediff < 86400) { return t('core','today'); } else if(timediff < 172800) { return t('core','yesterday'); } - else if(timediff < 2678400) { return t('core','{days} days ago',{days: diffdays}); } + else if(timediff < 2678400) { return n('core', '%n day ago', '%n days ago', diffdays); } else if(timediff < 5184000) { return t('core','last month'); } - else if(timediff < 31556926) { return t('core','{months} months ago',{months: diffmonths}); } + else if(timediff < 31556926) { return n('core', '%n month ago', '%n months ago', diffmonths); } //else if(timediff < 31556926) { return t('core','months ago'); } else if(timediff < 63113852) { return t('core','last year'); } else { return t('core','years ago'); } |