From 7d01342babcd3ce699d05bcceac2690ced110562 Mon Sep 17 00:00:00 2001 From: Alessandro Cosentino Date: Tue, 13 Nov 2012 19:32:26 -0500 Subject: fix translation issues with previous commit --- core/js/js.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/js/js.js') 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'); } -- cgit v1.2.3