On 8/30/07, <b class="gmail_sendername">Jeff Schallenberg</b> &lt;<a href="mailto:schallenberg.jeff@gmail.com">schallenberg.jeff@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to install the auth server under Ubuntu 7.04</blockquote><div><br>Still trying... and got it almost perfect...<br>My login to postgres required the command &quot;sudo su - postgres&quot;, followed by my normal password.
<br><br>All went well, up to the languages page, which shows the warning:<br>&quot;Will allow selecting language to use.
<em>Error message example</em> : <br>
<div style="">Warning: language.php: Unable to setlocale() to fr, return value: , current locale: LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C; [...]</div>
<p><em>I repeat</em> : This is an example of message you can see in the
top of your working auth-server if language are not set correctly. To
change these values please edit <em>config.php</em> in auth-server install directory. Look for &quot;Available locales&quot; and &quot;Default language&quot; header in config.php.&quot;</p><p>So, I edited my config.php to look like this:
<br></p>from config.php ===========================================<br>/**<br>&nbsp;* Available locales (languages)<br>&nbsp;* =============================<br>&nbsp;*<br>&nbsp;* Define the list of locales you want to support.<br>&nbsp;* English, French and German are supported.
<br>&nbsp;*<br>&nbsp;* See below examples<br>&nbsp;*/<br>global $AVAIL_LOCALE_ARRAY;<br><br><br>/**<br>&nbsp;* Array of available languages for the user.&nbsp; Each entry must have:<br>&nbsp;* -The language code (the part before the _) be present in wifidog/locales
<br>&nbsp;* -Have the entire locale available in your system locale<br>&nbsp;* OR<br>&nbsp;* -Have a system locale available with only the language (ex: an en locale).<br>&nbsp;* Note that if you specify en_UK and en_US, and have only en available the
<br>&nbsp;* system will NOT warn you that both will have identical results.<br>&nbsp;* Note that even if your system uses locales like fr_CA.UTF8, you do not need<br>&nbsp;* to change this, ifidog will translate for you.<br>&nbsp;*<br>&nbsp;* @todo Setting an array of only one entry should disable the language select
<br>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; box.<br>&n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&#39;);
<br><br>/**<br><br>&nbsp;* Default language<br>&nbsp;* ================<br>&nbsp;*<br>&nbsp;* Define the default language of the WiFiDOG auth server.&nbsp; The language code<br>&nbsp;* (the part before the _) must be part of the array above (the country
<br>&nbsp;* subcode may differ, and should be set to your country subcode)<br>&nbsp;*/<br>define(&#39;DEFAULT_LANG&#39;, &#39;fr_CA&#39;);<br>&nbsp;=============================================================<br></div>But, even though the file looks good, and after re-starting Ubuntu Server, I still get this error message:
<br><br>&quot;Warning in /classes/Locale.php setCurentLocale: Unable to setlocale()
to parameter: fr_CA. I tried fr_CA.UTF-8, fr_CA, fr.UTF-8, fr, and got
return value: , current locale is: C&quot;<br><br>Vas hier gibst?<br></div>-- <br>- Jeff