Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I have problems creating a custom language File for my module. i followed the instruction from the i18n docs, but my translation file doesn't get loaded.
my module is called event and has a Layout called Event.ss. In there i call for example <% _t('INFORMATION','__TEST__') %>. in my language file i wrote:
$lang['en_US']['Event.ss']['INFORMATION'] = 'Event information';
but it does not appear when i view my page. Also i can make syntax errors or var_dumps in the lang file without getting them displayed. Can anyone help me here?
i run silverstripe 2.4.1
Removing ['Event.ss'] in the lang string should solve this.
Thanks for the answer.
sadly it didn't worked. it seems like the language file from the module doesn't get loaded. but i don't know why...
[EDIT] here my config settings for the i18n and translatable
i18n::$common_locales['fr_CH'] = array('French (Switzerland)', 'français (Suisse)');