phpScheduleIt
May 23, 2013, 10:48:55 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: phpScheduleIt 2.4.2 has been released!
Home
Help
Login
Register
phpScheduleIt
>
Help and Support
>
phpScheduleIt 1.2.x
>
Problem with default language
Pages: [
1
]
« previous
next »
Print
Author
Topic: Problem with default language (Read 1979 times)
ubay25
Newbie
Karma: 0
Posts: 13
Problem with default language
«
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
Problem with default language
«
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
Problem with default language
«
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
Problem with default language
«
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
Problem with default language
«
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
Problem with default language
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Open Discussion
=> Donations
-----------------------------
Help and Support
-----------------------------
=> phpScheduleIt 2.x
=> EspaƱol
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
=> New Features and Suggestions
=> Developers
-----------------------------
Bugs
-----------------------------
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
-----------------------------
Modifications
-----------------------------
=> Post Modifications
=> Request Modification
-----------------------------
Development
-----------------------------
=> phpScheduleIt 2.0
-----------------------------
Off-Topic
-----------------------------
=> Non-phpScheduleIt Discussion
Loading...