How can I use a parameter in URL to Forum to control frontend language?

Started by bongobongo, February 13, 2009, 06:48:22 PM

Previous topic - Next topic

bongobongo

Hi

Is it possible to use a parameter in URL to Forum to control frontend language?

I have a site in two languages.

So I have one MenuItem for each language that takes visitor to this URL:
http://www.mydomain.com/forum

If I could use a link similar to this I would be very happy:

http://www.mydomain.com/forum/index.php?lang=en-GB

Is that possible ... if so, please show me an example URL to use....

Hmmm. Thinking a bit more about this, then I see it is quite impractical to
mix different languages (posts in different languages) in the same forum.

So maybe it is better for me to just install SMF into two different directories, one for English and one for Norwegian. And the just use a link related to each language...
Is that the correct approach for this or is there a way to make this work with one installation... but each langauge working against different tables in the db?

Regards

karlbenson

For smf you can use
?language=norwegian
?language=english
Providing that the language is installed it should work.

bongobongo

Hi.

I tried it and could not make it work.

I tried this:
http://localhost/joomla/forum/index.php?language=english

Still the frontend language was norwegian.

Any clue what I can use??

SlammedDime

Do you have it enabled that users can select their own language?
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

bongobongo

Hmmm

I tried to access SMF to check that and now I suddenly get this message:

**************************
Connection Problems
Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.
**************************

Never seen that before, and the Joomla site works as well as the VirtueMart...
Only the SMF that does not work (SMF is in same database as the two above...)

Any clue why I get that message... or even better... how I can make SMF start working again?

Regards

greyknight17

bongobongo, is this issue resolved now? If the database server for your webhost is working properly, then check your Settings.php file to make sure the database information there is correct. Or rename Settings_bak.php to Settings.php to see if it helps.

Advertisement: