Hi together,
I'm just rebuilding our company web site and need to add i18n support. No problem so far: I've added
HTTP::set_cache_age(0);
i18n::enable();
i18n::set_default_lang('de');
i18n::set_locale('de_DE');
to the _config.php and the result is as expected. The token are translated to the related language as given in the de_DE.php file.
Now the question:
How ist it possible to use an own de_DE.php file stored in an project related folder (i.e. mysite/code/lang)? It's because in case of an Silverstripe Update the changes/addition in the "original" cms/lang folder will be lost.
Your community help is very appreciated.
Best regards,
Gizmo0811