Please find below my Java script method in which i call a java method to fetch a locale specific error message
I can get the locale through this in my script
I need to send this 'locale' value along with the alert message
For eg it should read as below for locale germany
or
I am unable to send the locale variable as a third parameter or append it to the MessageResource s string directly. Could someone please help?
Code:
alert(<%=Msgs.getMessages("MessageResources", "errors.textNotLatin");
Code:
var locale = document.UserForm.preferredLanguage.value;
For eg it should read as below for locale germany
Code:
alert(<%=Msgs.getMessages("MessageResources_de", "errors.textNotLatin");
Code:
alert(<%=Msgs.getMessages("MessageResources", "errors.textNotLatin", <%=locale%>);
Comment