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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Validation text language and i18n


Go to End


4 Posts   2794 Views

Avatar
baba-papa

Community Member, 279 Posts

4 October 2009 at 10:32pm

Hello,

I have a small form with one required field. Even though I have set my system language to german

i18n::enable();
i18n::set_locale('de_DE');
i18n::set_default_lang('de');

the message is always in english. is there a bug with the JS i18n?

Avatar
Martijn

Community Member, 271 Posts

5 October 2009 at 2:05am

Edited: 05/10/2009 2:05am

Which version do you use?

I tried locally changing the lang in SS 2.3.3 to nl and de and the js validation messages are translated correctly from the files in sapphire/javascript/lang/

Avatar
baba-papa

Community Member, 279 Posts

5 October 2009 at 3:36am

I use 2.3.3 too.

Avatar
baba-papa

Community Member, 279 Posts

5 October 2009 at 7:40am

I think I know where the error is. I set the default language to german after I created my pages. I will change that tomorrow and then we´ll see.