aboutsummaryrefslogtreecommitdiffstats
path: root/include/datetime.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-02-13 09:46:42 +0100
committerFabio Comuni <fabrix.xm@gmail.com>2012-02-13 09:46:42 +0100
commit850560519a4bbe9949368933e115f767aeb90b73 (patch)
tree6f162b4b0130a5f829d40f7ebd9d18442ad18921 /include/datetime.php
parent16d3bc9deb5cb80f438a53f1bf483c79351674af (diff)
parent85c831bcbf6f4cc2793d91e4e3fb3da5828a3f60 (diff)
downloadvolse-hubzilla-850560519a4bbe9949368933e115f767aeb90b73.tar.gz
volse-hubzilla-850560519a4bbe9949368933e115f767aeb90b73.tar.bz2
volse-hubzilla-850560519a4bbe9949368933e115f767aeb90b73.zip
Merge remote-tracking branch 'friendica/master' into mobile
Diffstat (limited to 'include/datetime.php')
-rwxr-xr-xinclude/datetime.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/datetime.php b/include/datetime.php
index d44e995cf..6d395fe3f 100755
--- a/include/datetime.php
+++ b/include/datetime.php
@@ -260,10 +260,11 @@ function relative_date($posted_date) {
);
foreach ($a as $secs => $str) {
- $d = $etime / $secs;
- if ($d >= 1) {
- $r = round($d);
- return $r . ' ' . (($r == 1) ? $str[0] : $str[1]) . t(' ago');
+ $d = $etime / $secs;
+ if ($d >= 1) {
+ $r = round($d);
+ // translators - e.g. 22 hours ago, 1 minute ago
+ return sprintf( t('%1$d %2$s ago'),$r, (($r == 1) ? $str[0] : $str[1]));
}
}
}}