How to force language to a specific language?

Hi,

I am creating a different version of join.php and in this php I want to skip language detection and force user to only one language, which I choose.

The only way I found was to use the method tryToGetLang($languageCode,true); but this takes in effect when the page is loaded twice because on the first load it sets the language cookie and only in the second load it detects it.

I know I can call my page with ?lang=$languageCode parameter and it would render the page correctly but thats not what I want. I could be able to load this page in the language I want without any parameters.

Anybody have any idea how to do this?

Thanks.

Quote · 22 Jun 2014
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.