Translation function added

pull/8919/head
Michael 2020-07-23 06:32:31 +00:00
rodzic 0007da8630
commit cb830c9ad3
5 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -152,7 +152,7 @@ function lostpass_generate_password($user)
'$newpass' => $new_password,
]);
info("Your password has been reset.");
info(DI::l10n()->t("Your password has been reset."));
$sitename = DI::config()->get('config', 'sitename');
$preamble = Strings::deindent(DI::l10n()->t('

Wyświetl plik

@ -305,7 +305,7 @@ function network_content(App $a, $update = 0, $parent = 0)
}
if ($o === '') {
notice("No items found");
notice(DI::l10n()->t("No items found"));
}
return $o;

Wyświetl plik

@ -39,7 +39,7 @@ class Index extends BaseAdmin
switch ($_GET['action']) {
case 'reload':
Addon::reload();
info('Addons reloaded');
info(DI::l10n()->t('Addons reloaded'));
break;
case 'toggle' :

Wyświetl plik

@ -122,7 +122,7 @@ class Site extends BaseAdmin
}
DBA::close($usersStmt);
info("Relocation started. Could take a while to complete.");
info(DI::l10n()->t("Relocation started. Could take a while to complete."));
DI::baseUrl()->redirect('admin/site');
}

Wyświetl plik

@ -48,7 +48,7 @@ class Index extends BaseAdmin
}
Theme::setAllowedList($allowed_themes);
info('Themes reloaded');
info(DI::l10n()->t('Themes reloaded'));
break;
case 'toggle' :