Commit ec9fdf78 authored by Franco Fichtner's avatar Franco Fichtner

rc: gettext() foo

parent c8d185a4
...@@ -44,12 +44,14 @@ printf(_('Do you want to proceed [y|n]? ')); ...@@ -44,12 +44,14 @@ printf(_('Do you want to proceed [y|n]? '));
if (strcasecmp(chop(fgets($fp)), 'y') == 0) { if (strcasecmp(chop(fgets($fp)), 'y') == 0) {
if (isset($config['system']['webgui']['authmode']) && if (isset($config['system']['webgui']['authmode']) &&
$config['system']['webgui']['authmode'] != "Local Database") { $config['system']['webgui']['authmode'] != 'Local Database') {
echo "\n" . gettext(' printf("\n\n");
The User manager authentication server is set to "' . $config['system']['webgui']['authmode'] . '".') . "\n" . printf(_('The User manager authentication server is set to "%s".'), $config['system']['webgui']['authmode']);
gettext('Do you want to set it back to Local Database [y|n]?'); printf("\n");
if (strcasecmp(chop(fgets($fp)), "y") == 0) printf(_('Do you want to set it back to Local Database [y|n]? '));
$config['system']['webgui']['authmode'] = "Local Database"; if (strcasecmp(chop(fgets($fp)), 'y') == 0) {
$config['system']['webgui']['authmode'] = 'Local Database';
}
} }
$admin_user =& getUserEntryByUID(0); $admin_user =& getUserEntryByUID(0);
if (!$admin_user) { if (!$admin_user) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment