hi again,
so i have another problem, this time with i18 translations. My default locale is lt_LT(setted in _config.php).
so then i add <% _t('veks_login', 'Prisijungti') %> to template it returns an error -
---------------------------------------------------------------
FATAL ERROR: - Locale file /lang/en_US.php should exist
At line 1252 in /home/veks/domains/veks....lt/public_html/sapphire/core/i18n.php
---------------------------------------------------------------
i added a line(1245) to i i18n.php :
if(empty($module)) $module = Director::baseFolder(); now it finds the locale file, then i added another file with Lithuanian locale - lt_LT.php with source:
---------------------------------------------------------------
<?php
i18n::include_locale_file('veks', 'lt_LT'); //my site code dir is veks
global $lang;
$lang['lt_LT'] = $lang['lt_LT'];
$lang['lt_LT']['veks_login'] = 'Prisijungti';
?>
---------------------------------------------------------------
and putted it into site root in folder lang. same to en_EN.php, but nothing happens then switching languages.
Please help.