rc: gettext() foo

This commit is contained in:
Franco Fichtner 2015-05-11 09:07:27 +02:00
parent c8d185a443
commit ec9fdf7862

View File

@ -44,12 +44,14 @@ printf(_('Do you want to proceed [y|n]? '));
if (strcasecmp(chop(fgets($fp)), 'y') == 0) {
if (isset($config['system']['webgui']['authmode']) &&
$config['system']['webgui']['authmode'] != "Local Database") {
echo "\n" . gettext('
The User manager authentication server is set to "' . $config['system']['webgui']['authmode'] . '".') . "\n" .
gettext('Do you want to set it back to Local Database [y|n]?');
if (strcasecmp(chop(fgets($fp)), "y") == 0)
$config['system']['webgui']['authmode'] = "Local Database";
$config['system']['webgui']['authmode'] != 'Local Database') {
printf("\n\n");
printf(_('The User manager authentication server is set to "%s".'), $config['system']['webgui']['authmode']);
printf("\n");
printf(_('Do you want to set it back to Local Database [y|n]? '));
if (strcasecmp(chop(fgets($fp)), 'y') == 0) {
$config['system']['webgui']['authmode'] = 'Local Database';
}
}
$admin_user =& getUserEntryByUID(0);
if (!$admin_user) {