phpScheduleIt
May 23, 2013, 10:48:55 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Problem with default language  (Read 1979 times)
ubay25
Newbie
*

Karma: 0
Posts: 13


« on: June 28, 2007, 06:50:26 AM »

Hi Nick,

Just having some problem with the language, I have entered "en_GB" at the config file as the default language and also tweaked the login screen to not show the language selection, see below (excerpt from your other post):

Sure, just change line 240-254 in lib/CmnFns.class.php to this:

Code:
function print_language_pulldown() {
?>
<input type="hidden" name="language" value="en_GB"/>
<?php
}

Now when I tried going to the booking system on a computer that I haven't used before to access the booking system, the default language is "en_US" and not "en_GB". I notice it because the date format is mm/dd/yyyy instead of dd/mm/yyyy.

Please help, thanks in advance!!!
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: June 29, 2007, 05:26:14 PM »

This is the code trying to guess the language from the browser.  Try removing lines 91-93 of config/lang.php
Logged
ubay25
Newbie
*

Karma: 0
Posts: 13


« Reply #2 on: July 03, 2007, 07:18:56 AM »

Hi Nick,

Tried your suggestion but it doesn't work perfectly, it works on one computer but it doesn't on another.
Just an idea, since no one here will use the en-US, what if I copy all the content of the en_GB and paste it on the en_US overwriting all its content. Do you think that will be ok or will create an effect that would mess up the system?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #3 on: July 03, 2007, 10:04:01 AM »

That would work, but before trying that, try this on a browser that has never hit the phpScheduleIt login page.  I'm thinking a cookie is being read from that 2nd browser.
Logged
ubay25
Newbie
*

Karma: 0
Posts: 13


« Reply #4 on: July 03, 2007, 11:10:19 AM »

Yep you're absolutely right, I tried it on a computer that has never accessed it before and it worked ok. I also cleared the cache and cookies of the browsers of the other computers and they all got the right language now.
Brilliant! Thanks a lot Nick, you've done it again!!!
Logged
colmconn
Newbie
*

Karma: 0
Posts: 27


« Reply #5 on: July 06, 2007, 12:26:24 PM »

couldn't you just change the language preferences in your browser. that's what i did and it works nicely.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!