MyBB Community Forums

Full Version: Language Select via IP and/or GET_Variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there any plugin out there, that does allow me to include the language in a link and thereby selecting the appropriate language settings? If not, is someone capable and willing to write it?

We are running a forum with english speaking and german speaking users. Our page has, depending on their language, a link to the category of the german forums or english forums.

Now, what we need is to make sure, that every guest using the english site has english language settings and vice versa with the german guests.

It would be perfect to have the IP as a select-criteria, if a guest is visiting the main forum. In short:

1) If a guest is using the english forum link = english language
2) If a guest is using the german forum link = german language
3) If a member is using either link or visits the main forum directly = language depending on the user profile settings

Would be perfect, but not necessary:
4) If a guest is visiting the main forum directly = language depending on their IP
Language is already set by core. You can simple put your language variables in the global.lang.php file inside each language directory and use that in your templates.
He knows that. He requested something completely different:

1. Page with links
2. If 1st link is clicked -> go to forum and set language to X
If 2nd link is clicked -> go to forum and set language to X
...
So basically a possiblity to include lang request in url OR even better detect language by ip. I think it's a nice concept, except that someone may live in a foreign country and not really know the language used there.
Due to some technical issues I was busy and forgot to answer here. I thought I already did - sorry for that.

I know that it might be difficult or problematic using the IP, because someone from one part of the world still might prefer another language.

Our main focus is to include the language in the url anyway. I have a test mybb forum with english and german languages installed. If I visit that forum and change the language from german to english you get the following url:

http://www.stormis-home.de/dsa_board/ind...ge=english

Now, the first thing to pop into my mind was "cool, just include the language via the url and it works". Unfortunately, it doesnt. If you just use

http://www.stormis-home.de/dsa_board/ind...eutsch_sie
http://www.stormis-home.de/dsa_board/ind...ge=english

it won´t change the language. You have to include the "my_post_key"-information and I cannot find the place, where this variable is filled with data.

Anyone got an idea?