I'm just rebuilding our company web site and need to add i18n support. No problem so far: I've added
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.
i was also wondering how to achieve this.
currently i'm using the lang files to give the page classes in the cms ('create' dropdown above the sitetree) meaningful captions, but i'm quite sure that i'll forget about these changes after an update...
thanx for your help. But I'm not quite sure if I should use that "workaroud" because in the current project I am just looking for an eays way to translate some phrases of the PageCommentInterface class.
The cache-thing: This is just for develoment time and will be disabled after some test before rolling out to production. But thanx for that hint ;o)
Maybe someone else has an idea how to use their own translation tables (i.e. de_DE.php)??