if ($this->language_id == 0)
{
$locale = locale_accept_from_http($_SERVER['HTTP_ACCEPT_LANGUAGE']);
if(empty($locale)){
$registr = mb_strtoupper($locale);
$result = $locale.'-'.$registr;
return $result;
} else {
return $this->getLanguageRepo()->getMasterLanguage();
}
}