guest HTTP_ACCEPT_LANGUAGE code in session.php

Discussion of general topics related to the new version 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!
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!
sectionw
Registered User
Posts: 24
Joined: Mon Feb 07, 2005 7:49 pm

guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by sectionw »

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?

User avatar
VinDuv
Registered User
Posts: 73
Joined: Wed May 03, 2006 8:10 pm
Location: France
Contact:

Re: guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by VinDuv »

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...

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.
If I understand correctly, they could reactivate this code in a later version, but they haven't taken a decision yet.

sectionw
Registered User
Posts: 24
Joined: Mon Feb 07, 2005 7:49 pm

Re: guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by sectionw »

Thansk for the info, i could not see a flaw, but i forgot a language pack has to be installed, thanks.

textilebbs
Posts: 69
Joined: Sat Aug 26, 2006 7:08 am

Re: guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by textilebbs »

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

sectionw
Registered User
Posts: 24
Joined: Mon Feb 07, 2005 7:49 pm

Re: guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by sectionw »

Tested it, it works beautifully, be sure to refreesh the cache.

textilebbs
Posts: 69
Joined: Sat Aug 26, 2006 7:08 am

Re: guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by textilebbs »

sectionw wrote:Tested it, it works beautifully, be sure to refreesh the cache.
are you using IE?
My IE7.0 explorer failed.
The defoult language of my forum is English.

sectionw
Registered User
Posts: 24
Joined: Mon Feb 07, 2005 7:49 pm

Re: guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by sectionw »

textilebbs wrote:
sectionw wrote:Tested it, it works beautifully, be sure to refreesh the cache.
are you using IE?
My IE7.0 explorer failed.
The defoult language of my forum is English.
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
Posts: 69
Joined: Sat Aug 26, 2006 7:08 am

Re: guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by textilebbs »

English & Chinese.
What's your URL.
I want to test it.

sectionw
Registered User
Posts: 24
Joined: Mon Feb 07, 2005 7:49 pm

Re: guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by sectionw »

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.

sectionw
Registered User
Posts: 24
Joined: Mon Feb 07, 2005 7:49 pm

Re: guest HTTP_ACCEPT_LANGUAGE code in session.php

Post by sectionw »

Hmm i may have a bug, it changes the display language but no the buttons, they remain in english.

Post Reply