namespace Friendica\Content\Widget;
use Friendica\Content\Feature;
-use Friendica\Core\L10n;
use Friendica\Core\Renderer;
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
$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
]);