Move L10n::tt() calls to DI::l10n()->tt() calls

This commit is contained in:
nupplaPhil 2020-01-18 20:53:00 +01:00
parent 48fecb9a40
commit 88f0835fae
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90

View file

@ -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;