Code to guess a guest browser HTTP_ACCEPT_LANGUAGE was commented out, was looking at doing just that for my board, so my question is will this be implemented for gold? or is it to be used in the following version.
Since i was looking at just doing that, can i uncomment the code and what was the problem with the code?
guest HTTP_ACCEPT_LANGUAGE code in session.php
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Re: guest HTTP_ACCEPT_LANGUAGE code in session.php
It was disabled because it only checks if the language pack is on the filesystem... But the pack can be installed, and not activated in the ACP. In this case, the guest user will receive an error. But I think that if all your language packs are activated, you should have no problems uncomment that code...
If I understand correctly, they could reactivate this code in a later version, but they haven't taken a decision yet.
Code: Select all
/**
* If a guest user is surfing, we try to guess his/her language first by obtaining the browser language
* If re-enabled we need to make sure only those languages installed are checked
* Commented out so we do not loose the code.
Re: guest HTTP_ACCEPT_LANGUAGE code in session.php
Thansk for the info, i could not see a flaw, but i forgot a language pack has to be installed, thanks.
-
- Posts: 69
- Joined: Sat Aug 26, 2006 7:08 am
Re: guest HTTP_ACCEPT_LANGUAGE code in session.php
sectionw wrote:Thansk for the info, i could not see a flaw, but i forgot a language pack has to be installed, thanks.
I have installed 2 language pack,but still not working .
TEST URL:http://www.textilebbs.com
Re: guest HTTP_ACCEPT_LANGUAGE code in session.php
Tested it, it works beautifully, be sure to refreesh the cache.
-
- Posts: 69
- Joined: Sat Aug 26, 2006 7:08 am
Re: guest HTTP_ACCEPT_LANGUAGE code in session.php
are you using IE?sectionw wrote:Tested it, it works beautifully, be sure to refreesh the cache.
My IE7.0 explorer failed.
The defoult language of my forum is English.
Re: guest HTTP_ACCEPT_LANGUAGE code in session.php
Sorry i meant tested it on my board it works good, what are the 2 languages you set on your board? without it i cannot set explorer to see it.textilebbs wrote:are you using IE?sectionw wrote:Tested it, it works beautifully, be sure to refreesh the cache.
My IE7.0 explorer failed.
The defoult language of my forum is English.
-
- Posts: 69
- Joined: Sat Aug 26, 2006 7:08 am
Re: guest HTTP_ACCEPT_LANGUAGE code in session.php
English & Chinese.
What's your URL.
I want to test it.
What's your URL.
I want to test it.
Re: guest HTTP_ACCEPT_LANGUAGE code in session.php
The url is http://www.goalsgo.com/phpBB3/ the board will be down tomorrow, this is currently the test board, about to go live, the last bit i needed was the HTTP_LANG tweak.
Re: guest HTTP_ACCEPT_LANGUAGE code in session.php
Hmm i may have a bug, it changes the display language but no the buttons, they remain in english.