diff options
author | Alessandro Cosentino <cosenal@gmail.com> | 2012-11-13 19:32:26 -0500 |
---|---|---|
committer | Alessandro Cosentino <cosenal@gmail.com> | 2012-11-13 19:32:26 -0500 |
commit | 7d01342babcd3ce699d05bcceac2690ced110562 (patch) | |
tree | 1e2dd74619ec8b39c7e0ae5d92ea55558d6a2614 /lib/template.php | |
parent | aa917cfb1872e77970ffed5571b5a96dc1387525 (diff) | |
download | nextcloud-server-7d01342babcd3ce699d05bcceac2690ced110562.tar.gz nextcloud-server-7d01342babcd3ce699d05bcceac2690ced110562.zip |
fix translation issues with previous commit
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/template.php b/lib/template.php index 48224130fa8..a10cabf5931 100644 --- a/lib/template.php +++ b/lib/template.php @@ -103,13 +103,13 @@ function relative_modified_date($timestamp) { if($timediff < 60) { return $l->t('seconds ago'); } else if($timediff < 120) { return $l->t('1 minute ago'); } else if($timediff < 3600) { return $l->t('%d minutes ago', $diffminutes); } - else if($timediff < 7200) { return '1 hour ago'; } - else if($timediff < 86400) { return $diffhours.' hours ago'; } + else if($timediff < 7200) { return $l->t('1 hour ago'); } + else if($timediff < 86400) { return $l->t('%d hours ago', $diffhours); } else if((date('G')-$diffhours) > 0) { return $l->t('today'); } else if((date('G')-$diffhours) > -24) { return $l->t('yesterday'); } else if($timediff < 2678400) { return $l->t('%d days ago', $diffdays); } else if($timediff < 5184000) { return $l->t('last month'); } - else if((date('n')-$diffmonths) > 0) { return $l->t('months ago'); } + else if((date('n')-$diffmonths) > 0) { return $l->t('%d months ago', $diffmonths); } else if($timediff < 63113852) { return $l->t('last year'); } else { return $l->t('years ago'); } } |