Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: 1111 on July 31, 2004, 01:23:02 PM

Title: Default values on IMP login page
Post by: 1111 on July 31, 2004, 01:23:02 PM
The Horde site is a little vague and there don't seem to be any threads here addressing this minor issue:

I want to change the default language displayed on the webmail login page language pull down menu from English(US) to English(GB). I can't seem to find the appropriate spot to edit within the templates to do this.

I'm not referring to a user's ability to select a language in the options area after they login and save that. I'm merely referring to the default language displayed on the main login page.

Any clues?
Title: Default values on IMP login page
Post by: mrjhb3 on July 31, 2004, 10:29:44 PM
How about changing the lang.php file in this directory, /home/httpd/html/horde/config.  I just tested this with IE 6 and here is what I am seeing.
No matter what default language I set, I always see it in english.  But, here is why, in IE under tools, general, languages, my default is set to en_US.  If I remove this, then go back to webmail, then the default language that I set in the lang.php file shows up as expected.  Once I re-add my defaults back to IE, then english is displayed.

Here is an snippet from the lang.php file

<snip>
/* The langauge to fall back on if we cannot determine one any other
   way (user choice, preferences, HTTP_ACCEPT_LANGUAGE). */
$nls['defaults']['language'] = 'en_US';  
</snip>

Good Luck,

JB