diff options
author | friendica <info@friendica.com> | 2012-02-12 17:15:09 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-12 17:15:09 -0800 |
commit | 3e85c1d3304c51489249ce2a284910885a1a3c73 (patch) | |
tree | af9474bae3d9d058b1102c47350bf779de0dd680 /include/datetime.php | |
parent | 330a876d819c640d759776b12c79b46751c4754a (diff) | |
download | volse-hubzilla-3e85c1d3304c51489249ce2a284910885a1a3c73.tar.gz volse-hubzilla-3e85c1d3304c51489249ce2a284910885a1a3c73.tar.bz2 volse-hubzilla-3e85c1d3304c51489249ce2a284910885a1a3c73.zip |
make 'x minutes ago' fully translateable with argument ordering. string update.
Diffstat (limited to 'include/datetime.php')
-rwxr-xr-x | include/datetime.php | 9 |
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])); } } }} |