1

Topic: 3 languages for one forum??

I want to use your forum in the website. I installed it without any problems and it works great.

However, I am having problems with the following:

When the user is in the English version and they click on the link to open up the forum, the language should be in English.

When the user is in the German version I want the forum to be in German.

When the user is in the spanish verison I want the fourm to be in Spanish.

All 3 forums can be connected to the same database.  I just want to have a different language depending on which version the user is on.

I THOUGHT I could just have 3 different locations of the forum code with a different config.php.  However, the problem is the BASE URL only wants one location.

I am certain there is a simple solution.  Any suggestions would be greatly appreciated.

Thank you!

Simon

Re: 3 languages for one forum??

just upload different language packs, then when someone wants to use a diff language, they can change it in there Profile

unless you really want 3 different forums connected to the same DB, then it would be much harder to do. im not even sure if you can.

Indocron
$theQuestion = (2*b) || !(2*b);

Re: 3 languages for one forum??

The simple solution is to wait for 1.2 where people can change languages in their profile.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

4

Re: 3 languages for one forum??

Thanks for the quick reply.

I know you are in the "testing" phase for 1.2.  When do you think it will be ready to download?

By the way, what would the "hard" way be to solve this problem?

Just curious.

Simon

Re: 3 languages for one forum??

probally mod PunBB to accept referals from all 3 urls. this would be hard, im not even sure how the URL referer works..

Indocron
$theQuestion = (2*b) || !(2*b);

Re: 3 languages for one forum??

Well, since the referrer check only applies to admins and moderators, the easy way out would be to force your admins and moderators to use one of the locations (the one you have in your base URL).

"Programming is like sex: one mistake and you have to support it for the rest of your life."

7

Re: 3 languages for one forum??

I thought that too but if for instance I am user and forget my password.
I ask punBB to send me an email with my password.  When I click on the link to re-enter my password if it is not the "right" forum then there is an error trying to find the specified php file.

Otherwise, your solution is fine.

Looks like I will just wait until 1.2 and just use English for now.

Take care,

Simon

Re: 3 languages for one forum??

what if you modded it so i picked up the base url from config.php instead of the database

Re: 3 languages for one forum??

Try this. Open up include/common.php and look for:

$cookie = check_cookie($cur_user);

After it, add:

$cur_user['o_base_url'] = 'your base URL';

Do that to the three different installs and setup different base URL's for them

"Programming is like sex: one mistake and you have to support it for the rest of your life."

10

Re: 3 languages for one forum??

You guys are too quick!

I decided to just install three different forums using 3 different databases.

Though if my boss tells me on Monday to have the forum connected to the same database then I will try your solution.

I look forward to 1.2.. Thanks!

Simon