How to set the language of the validation messages ?
Posted: Wed Aug 09, 2023 3:10 pm
Hello,
In Web Author, we want to display valdation message using the language specified by the URL parameter lang.
But this parameter has no effect.
Note that, now, we set the language setting the default locale for JVM :
Do you have another better solution ?
Regards,
Vincent
In Web Author, we want to display valdation message using the language specified by the URL parameter lang.
But this parameter has no effect.
Note that, now, we set the language setting the default locale for JVM :
Code: Select all
public class MyBundle extends ExtensionsBundle {
static {
try {
Locale.setDefault(new Locale("fr", "FR"));
} catch (Exception e) {
LOGGER.warn("Could not set locale : ", e);
}
}
Regards,
Vincent