Move L10n::tt() calls to DI::l10n()->tt() calls
This commit is contained in:
parent
48fecb9a40
commit
88f0835fae
1 changed files with 2 additions and 2 deletions
|
@ -58,10 +58,10 @@ function like_widget_content(&$a, $conf){
|
||||||
$t = Renderer::getMarkupTemplate("widget_like.tpl", "addon/widgets/");
|
$t = Renderer::getMarkupTemplate("widget_like.tpl", "addon/widgets/");
|
||||||
$o .= Renderer::replaceMacros($t, [
|
$o .= Renderer::replaceMacros($t, [
|
||||||
'$like' => $likes,
|
'$like' => $likes,
|
||||||
'$strlike' => L10n::tt("%d person likes this", "%d people like this", $likes),
|
'$strlike' => DI::l10n()->tt("%d person likes this", "%d people like this", $likes),
|
||||||
|
|
||||||
'$dislike' => $dislikes,
|
'$dislike' => $dislikes,
|
||||||
'$strdislike'=> L10n::tt("%d person doesn't like this", "%d people don't like this", $dislikes),
|
'$strdislike'=> DI::l10n()->tt("%d person doesn't like this", "%d people don't like this", $dislikes),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
Loading…
Reference in a new issue