]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget/CalendarExport.php
Merge pull request #8134 from nupplaphil/task/di_l10n
[friendica.git] / src / Content / Widget / CalendarExport.php
index a6fea1e8a18f10eecfe6dec11c9cf1511763a313..693be2d6f033c127c1a748cdcf4f05883cac3fd0 100644 (file)
@@ -7,7 +7,6 @@
 namespace Friendica\Content\Widget;
 
 use Friendica\Content\Feature;
-use Friendica\Core\L10n;
 use Friendica\Core\Renderer;
 use Friendica\DI;
 
@@ -19,7 +18,7 @@ use Friendica\DI;
 class CalendarExport
 {
        /**
-        * @brief Get the events widget.
+        * Get the events widget.
         *
         * @return string Formated HTML of the calendar widget.
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
@@ -62,9 +61,9 @@ class CalendarExport
 
                $tpl = Renderer::getMarkupTemplate("widget/events.tpl");
                $return = Renderer::replaceMacros($tpl, [
-                       '$etitle'      => L10n::t("Export"),
-                       '$export_ical' => L10n::t("Export calendar as ical"),
-                       '$export_csv'  => L10n::t("Export calendar as csv"),
+                       '$etitle'      => DI::l10n()->t("Export"),
+                       '$export_ical' => DI::l10n()->t("Export calendar as ical"),
+                       '$export_csv'  => DI::l10n()->t("Export calendar as csv"),
                        '$user'        => $user
                ]);