I made such:
In helpers i added functions:
function SetLang() {
if (isset($_SESSION['lg']) && !empty($_SESSION['lg'])) {
return $_SESSION['lg'];
} else {
return 1;
}
}
function GetLang($word) {
$lang['title'] = array(1=>'Простой поиск');
$lang['want'] = array(1=>'Я хочу');
return $lang[$word][SetLang()];
}
?>
And in my View i request word simply:
<?=GetLang("title")?>