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

This commit is contained in:
Philipp Holzer 2020-01-18 20:52:34 +01:00
commit 5dfee31108
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
175 changed files with 2841 additions and 2841 deletions

View file

@ -51,13 +51,13 @@ function theme_admin_post(App $a)
function clean_form(App $a, &$colorset, $user)
{
$colorset = [
'default' => L10n::t('default'),
'greenzero' => L10n::t('greenzero'),
'purplezero' => L10n::t('purplezero'),
'easterbunny' => L10n::t('easterbunny'),
'darkzero' => L10n::t('darkzero'),
'comix' => L10n::t('comix'),
'slackr' => L10n::t('slackr'),
'default' => DI::l10n()->t('default'),
'greenzero' => DI::l10n()->t('greenzero'),
'purplezero' => DI::l10n()->t('purplezero'),
'easterbunny' => DI::l10n()->t('easterbunny'),
'darkzero' => DI::l10n()->t('darkzero'),
'comix' => DI::l10n()->t('comix'),
'slackr' => DI::l10n()->t('slackr'),
];
if ($user) {
@ -68,9 +68,9 @@ function clean_form(App $a, &$colorset, $user)
$t = Renderer::getMarkupTemplate("theme_settings.tpl");
$o = Renderer::replaceMacros($t, [
'$submit' => L10n::t('Submit'),
'$title' => L10n::t("Theme settings"),
'$colorset' => ['duepuntozero_colorset', L10n::t('Variations'), $color, '', $colorset],
'$submit' => DI::l10n()->t('Submit'),
'$title' => DI::l10n()->t("Theme settings"),
'$colorset' => ['duepuntozero_colorset', DI::l10n()->t('Variations'), $color, '', $colorset],
]);
return $o;