Language (translation) switcher

Braulio Carreno 24.Aug.2010 8:22pm
I created a second language under “Website Configuration”.

Then I duplicated one of existing pages in “EN” and translated a couple of paragraphs using the page editor. I also translated the “Title” and “Menu Title” properties.

I couldn’t find a way to provide the mechanism to switch between the 2 languages. I’d like to do it in a couple of places, using <a> tags.

Any help will be greatly appreciated.


Pascal Rettig 24.Aug.2010 9:08pm
There’s not a paragraph to handle that currently, but the system will take a ?set_language=LANG parameter on any page to change the language, so if you add a <a href='?set_language=es'>Spanish</a> tag for example the page will be reloaded in spanish.

Braulio Carreno 25.Aug.2010 12:02pm
Very easy, thanks!
Who said Spanish? :-)