Translation function added
This commit is contained in:
parent
0007da8630
commit
cb830c9ad3
5 changed files with 5 additions and 5 deletions
|
@ -152,7 +152,7 @@ function lostpass_generate_password($user)
|
||||||
'$newpass' => $new_password,
|
'$newpass' => $new_password,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
info("Your password has been reset.");
|
info(DI::l10n()->t("Your password has been reset."));
|
||||||
|
|
||||||
$sitename = DI::config()->get('config', 'sitename');
|
$sitename = DI::config()->get('config', 'sitename');
|
||||||
$preamble = Strings::deindent(DI::l10n()->t('
|
$preamble = Strings::deindent(DI::l10n()->t('
|
||||||
|
|
|
@ -305,7 +305,7 @@ function network_content(App $a, $update = 0, $parent = 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($o === '') {
|
if ($o === '') {
|
||||||
notice("No items found");
|
notice(DI::l10n()->t("No items found"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
|
@ -39,7 +39,7 @@ class Index extends BaseAdmin
|
||||||
switch ($_GET['action']) {
|
switch ($_GET['action']) {
|
||||||
case 'reload':
|
case 'reload':
|
||||||
Addon::reload();
|
Addon::reload();
|
||||||
info('Addons reloaded');
|
info(DI::l10n()->t('Addons reloaded'));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'toggle' :
|
case 'toggle' :
|
||||||
|
|
|
@ -122,7 +122,7 @@ class Site extends BaseAdmin
|
||||||
}
|
}
|
||||||
DBA::close($usersStmt);
|
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');
|
DI::baseUrl()->redirect('admin/site');
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,7 @@ class Index extends BaseAdmin
|
||||||
}
|
}
|
||||||
Theme::setAllowedList($allowed_themes);
|
Theme::setAllowedList($allowed_themes);
|
||||||
|
|
||||||
info('Themes reloaded');
|
info(DI::l10n()->t('Themes reloaded'));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'toggle' :
|
case 'toggle' :
|
||||||
|
|
Loading…
Reference in a new issue