1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » Template i18n
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 2124 Views |
-
Template i18n

30 March 2009 at 2:34am Last edited: 30 March 2009 10:53am
Somehow the translation of the blog templates doesn't work. I do have the files in blog/lang/*.php, and they contain the right references to the templates. But everybody sees the blog controls in English. Our CMS is still translated, so it doesn't seem to be a global problem.
Anybody knows what's going on?
-
Re: Template i18n

30 March 2009 at 10:57am
Or is there some sort of override to always use nl_NL i18n? Basically all my traffic is Dutch anyways.
-
Re: Template i18n

31 March 2009 at 1:07am
How I fixed it..
Part 1:
Old tutorials apparenly only wrote about enable(), set_default_lang() and using 'nl'. Full code for in mysite/_config.php// Enable Translations
i18n::enable();
i18n::set_locale('nl_NL');
i18n::set_default_lang('nl_NL');Part 2:
http://open.silverstripe.com/ticket/2102#comment:2
This also needs a lot of extra language files and strings for your widgets. -
Re: Template i18n

31 March 2009 at 3:17am Last edited: 31 March 2009 3:35am
Part 3:
A patch that fixes included (<% include .. %>) templates source, so their i18n translation strings are sourced from the right namespace:
http://open.silverstripe.com/ticket/3400 -
Re: Template i18n

1 May 2009 at 6:08pm Last edited: 1 May 2009 6:11pm
Thanks Henk, I should have seen that before I patched all the templates concerned and added the "identifier>.ss." to the "_t(<i18n-name>, <string>)" calls.
Testing and including your patch as fast as possible in the released version is a must for SS if they care about the International - non English speaking country - users. Most normal users will not be able to fix this, or workaround, and then it is a showstopper.
| 2124 Views | ||
|
Page:
1
|
Go to Top |


