]> git.mxchange.org Git - friendica-addons.git/commitdiff
Move L10n::tt() calls to DI::l10n()->tt() calls
authornupplaPhil <admin@philipp.info>
Sat, 18 Jan 2020 19:53:00 +0000 (20:53 +0100)
committernupplaPhil <admin@philipp.info>
Sun, 19 Jan 2020 15:31:46 +0000 (16:31 +0100)
widgets/widget_like.php

index 1fcc96b997116f9e6c70f80216e4c9ddd789f74b..b9bf3df56ba31ebf241a4b9020e07d22191af3df 100644 (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;