I’m trying to use locale translations for the first time, but I seem to be missing a few things.
This is what i’m doing:
• I add this to cms/_config.php
i18n::enable();
i18n::set_default_lang('nl');
• I add a folder called lang in mysite. Inside this folder I add a file called nl_NL.php
• In this file I add:
<?php
global $lang;
$lang['nl_NL']['Page']['TEST'] = 'Test';
?>
• In the template (Page.ss) I add
<% _t('TEST') %>