Internationalization

Nov 19, 2015 at 12:54 PM
Edited Nov 19, 2015 at 12:54 PM
Hi Sacha,

I have a problem to get the error messages in german when using Openform. I tried to set
"locale": "de_AT" in the "View Layout"
as mentioned in Alpaca Documentation but that does not change anything. Any idea who to achieve this ?
Coordinator
Nov 19, 2015 at 2:42 PM
Edited Nov 19, 2015 at 9:02 PM
Hi,

This feature is not implemented in the used version of alpaca in openform/opencontent

the workaround is to add this to the javascript in Edit Template files of openform
 $(document).on("postRender.openform", function (event, control, moduleid, sf ) {
              $.alpaca.setDefaultLocale("de_AT");
    });
Normally this will be done automatically depending on the current dnn locale.
But this is buggy, for your case of de_At.
I will correct that in next release
Nov 23, 2015 at 2:24 PM
Thanks for the tip Sacha!

5 minutes before your answer I hacked alpaca.js and changed "de_AT" to "de_DE" but your solution is really better!
Coordinator
Nov 23, 2015 at 3:49 PM
In OpenForm 2.0 is DefaultLocale of Alpaca form automatically set depending of dnn culture.

1) based on 5 letters culture code.
2) if not found based on first 2 letters of culture code