Hi, The i18n taglibs doesn't seem to work properly with some languages. In fact, the MessageTag removes all apostrophes("'"). Code 1 : <% java.util.Locale locale = new java.util.Locale("fr", "CH"); %> <i18n:bundle baseName="org.apache.taglibs.i18n.Bookmark" id="text_bundle" locale="<%= locale%>"/> <i18n:message key="BodyText1" bundle="<%=text_bundle%>"/> It writes : "Vous trouverez dautres informations sur le sujet à " Code 2: ResourceBundle rb = ResourceBundle.getBundle ("org.apache.taglibs.i18n.Bookmark", new java.util.Locale("fr", "CH")); rb.getString(myString); It writes : "Vous trouverez d'autres informations sur le sujet à " Any idea?
I found this also, but it is not a bug. It is function of the java.util.MessageFormatter used in the tag. The MessageFormatter requires all single quotes to be escaped by a single quote to show up. Therefore to show the single quote you need '' in your message. I did this and everything worked fine Trevor
Created attachment 4080 [details] Change to documentation to make this behaviour clear
I have created a patch to the documentation web page, to make this clear.
Updated docs for the messageArg tag, also made sure that the MessageFormat was only used when there really were arguments. It was being used in all cases. Bug fix should be available in next nightly build.