This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

gergo85
gergo85

There are two domain names and one webpage. I use the Rainlab Translate plugin. I tried the following code, but it didn't work:

function onStart()
{
    $domain = Request::root();

    if ($domain == 'http://exampledomain.ru') {
        $locale = 'ru';
    }

    else if ($domain == 'http://exampledomain.en') {
        $locale = 'en';
    }

    App::setLocale($locale);
}
jan-vince
gergo85
gergo85

Thank you for your answer! :)

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.