Move L10n::tt() calls to DI::l10n()->tt() calls
This commit is contained in:
parent
48fecb9a40
commit
88f0835fae
|
@ -58,10 +58,10 @@ function like_widget_content(&$a, $conf){
|
|||
$t = Renderer::getMarkupTemplate("widget_like.tpl", "addon/widgets/");
|
||||
$o .= Renderer::replaceMacros($t, [
|
||||
'$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,
|
||||
'$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;
|
||||
|
|
Loading…
Reference in a new issue