make 'x minutes ago' fully translateable with argument ordering. string update.
This commit is contained in:
parent
330a876d81
commit
3e85c1d330
|
@ -11,7 +11,7 @@ function stripcode_br_cb($s) {
|
||||||
|
|
||||||
function tryoembed($match){
|
function tryoembed($match){
|
||||||
$url = ((count($match)==2)?$match[1]:$match[2]);
|
$url = ((count($match)==2)?$match[1]:$match[2]);
|
||||||
logger("tryoembed: $url");
|
// logger("tryoembed: $url");
|
||||||
|
|
||||||
$o = oembed_fetch_url($url);
|
$o = oembed_fetch_url($url);
|
||||||
|
|
||||||
|
|
|
@ -263,7 +263,8 @@ function relative_date($posted_date) {
|
||||||
$d = $etime / $secs;
|
$d = $etime / $secs;
|
||||||
if ($d >= 1) {
|
if ($d >= 1) {
|
||||||
$r = round($d);
|
$r = round($d);
|
||||||
return $r . ' ' . (($r == 1) ? $str[0] : $str[1]) . t(' ago');
|
// translators - e.g. 22 hours ago, 1 minute ago
|
||||||
|
return sprintf( t('%1$d %2$s ago'),$r, (($r == 1) ? $str[0] : $str[1]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
8114
util/messages.po
8114
util/messages.po
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user