Translation function added

This commit is contained in:
Michael 2020-07-23 06:32:31 +00:00
parent 0007da8630
commit cb830c9ad3
5 changed files with 5 additions and 5 deletions

View file

@ -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('

View file

@ -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;

View file

@ -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' :

View file

@ -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');
}

View file

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