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
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
For those who is looking for this - this works: https://github.com/rainlab/translate-plugin/issues/356
1-3 of 3