> 2017-06-25 16:14 GMT+02:00 i...@flyingfischer.ch <i...@flyingfischer.ch>: >> Another issue, since 2.5.11: >> >> Javascript boxed messages display, if the language is the default >> language (en). As soon as switching the application to another locale >> (e.g. de), js-box messages do not display anymore... >> >> ...this IS NOT related to retrieving the values from the corresponding >> language-properties files: in debug mode I can see, the correct values >> being retrieved. >> >> Even with hardcoded, simple values without i18n: messages will not be >> displayed, if the application is not running on the default locale. >> >> >> <script type="text/javascript"> >> notif({ >> msg: "<s:property value="jsmsg.msg" escapeHtml="false" >> />", >> type: "<s:property value="jsmsg.type" />", >> position: "<s:property value="jsmsg.position" />", >> opacity: <s:property value="jsmsg.opacity" />, >> timeout: <s:property value="jsmsg.timeout" />, >> multiline: <s:property value="jsmsg.multiline" />, >> autohide: <s:property value="jsmsg.autohide" />, >> clickable: <s:property value="jsmsg.clickable" /> >> }); >> </script> >> >> I am puzzled, because again: it is hard to imagine, this to be struts >> related. But there is no such issue in 2.5.10.1. > How do you switch the locale? What default locale you are running on? > How did you name your properties files? > > > Regards
At the moment testing locally and not online: Browser send en-US,en;q=0.5 on default OS linux on german locale changing locale in application by ?request_locale=it in struts.properties: struts.custom.i18n.resources=global-messages properties files: global-messages_de.properties global-messages_en.properties global-messages_fr.properties global-messages_it.properties global-messages.properties The later being a duplicate of global-messages_en.properties, since the fallback to en for other languages never worked without it. Thanks for your feedback. Markus --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org