summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-11-13 19:32:26 -0500
committerAlessandro Cosentino <cosenal@gmail.com>2012-11-13 19:32:26 -0500
commit7d01342babcd3ce699d05bcceac2690ced110562 (patch)
tree1e2dd74619ec8b39c7e0ae5d92ea55558d6a2614 /core/js
parentaa917cfb1872e77970ffed5571b5a96dc1387525 (diff)
downloadnextcloud-server-7d01342babcd3ce699d05bcceac2690ced110562.tar.gz
nextcloud-server-7d01342babcd3ce699d05bcceac2690ced110562.zip
fix translation issues with previous commit
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/js.js b/core/js/js.js
index cb6b48b095e..164fab80ed4 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -688,13 +688,13 @@ function relative_modified_date(timestamp) {
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 '1 hour ago'; }
- else if($timediff < 86400) { return $diffhours.' hours ago'; }
+ 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 < 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 < 5184000) { return t('core','last month'); }
- else if($timediff < 31556926) { return $diffmonths.' months ago'; }
+ else if(timediff < 31556926) { return t('core','{months} months ago',{months: 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'); }