<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#000000 size=2>
<DIV><FONT face=Arial color=#000000 size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can someone who knows PHP and wifidog please help me to get this working? it is part of the install script, I am trying to get the system locale setting to work... can anyone with knowledge please complete and or correct any mistakes...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Robin Jones.</FONT></DIV>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>#################################################</FONT></DIV>
<DIV><FONT face=Arial size=2> case 'languages' :<BR>#require_once('config_available_locales.php');<BR>require_once('classes/LocaleList.php');<BR>$CURRENT_LOCALE = $configArray['DEFAULT_LANG'];<BR>$AVAIL_LOCALE_ARRAY = LocaleList::getAvailableLanguageArray();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR> print "<h1>Languages Configuration</h1>";</DIV>
<DIV> </DIV>
<DIV><BR> print<<< EndHTML<BR> <p>your current locale is $CURRENT_LOCALE</p></DIV>
<DIV> <p>Please select your Authentication Servers default language and locale</p><BR> <BR> <div class="language"><BR> <form class="language" name="lang_form" method="post" action="$formAction"><BR> <div>Server Locale:<BR> <select name="wifidog_language" onchange="javascript: document.lang_form.submit();"><BR> EndHTML;</DIV>
<DIV> foreach ($AVAIL_LOCALE_ARRAY as $_langIds => $_langNames) {<BR> $langName = $_langNames[0];<BR> $_languageChooser[] = '<option value="' . $_langIds . '"' . $_selected . '>' . $langName . '</option>';<BR> }</DIV>
<DIV><BR> print<<< EndHTML <BR> </select><BR> </div><BR> </form><BR> </div></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR><em>Error message example</em> : <BR></DIV>
<DIV><DIV style="border:solid black;">Warning: language.php: Unable to setlocale() to fr, return value: , current locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C; [...]</DIV></DIV>
<DIV><p><em>I repeat</em> : This is an example of message you can see in the top of your working auth-server if the language is not set correctly. To change these values please edit <em>config.php</em> in auth-servers installation directory labled <em>wifidog</em>. search for "Available locales" and "Default language" header in config.php.</DIV>
<DIV>EndHTML;</DIV>
<DIV> // Dependency::execVerbose("locale -a 2>&1", $output, $return);</DIV>
<DIV> </DIV>
<DIV> navigation(array (</DIV>
<DIV> array (</DIV>
<DIV> "title" => "Back",</DIV>
<DIV> "page" => "options"</DIV>
<DIV> ),</DIV>
<DIV> array (</DIV>
<DIV> "title" => "Next",</DIV>
<DIV> "page" => "admin"</DIV>
<DIV> )</DIV>
<DIV> ));</DIV>
<DIV> break;</FONT></DIV>
<DIV><FONT face=Arial size=2>#####################################################</FONT></DIV></FONT></DIV></BODY></HTML>