Hi everyone,
I've got some problem with using _t() function in my multilanguage site.
In my template i put:
<% _t('DESIGN', 'some text') %>
I have 2 lang files under mysite/lang folder: en_US.php and pl_PL.php where I enter:
$lang['en_US']['Page.ss']['DESIGN'] = 'some text';
- for en_US.php
and
$lang['pl_PL']['Page.ss']['DESIGN'] = 'polish text';
- for pl_PL.php
Whatever language I choose in my site it always give me back 'polish text'. Its seems to work ok, but it never wants to load english text (unless I delete pl_PL.php).
In my _config.php I have:
i18n::enable();
Translatable::set_default_locale('pl_PL');
Object::add_extension('SiteTree', 'Translatable');
I dont have a clue what is wrong... General content translations done in CMS admin work fine.
Any help I will be grateful.
Regards,
Gordon