The first request to a web application sets the default locale which is then used to answer all further requests. (ignoring the browser locales) System information: - Tomcat 4.1.12 - I18N nightly build from Feb. 10, 2003 - jdk 1.4.0_01-b03 - Browser: Mozilla 1.2b / Opera 6.1 To reproduce the bug: 1. Install the i18n-taglib example application. 2. Use a browser with an German language setting (de) and click in index.jsp on the link "Browser Default". 3. Click on "Message Tags Example Page" 4. Use a different browser with an Englich language setting (en) and click on "Browser Default" and "Messages Tags Example Page" Now both browsers show the same page. Changing the locales with the links on index.jsp has no effect in "Message Tags Example Page".
The following code fragment seems to be a work-around for this bug: <i18n:bundle baseName="myBundle" locale="<%= request.getLocale() %>" /> However, this considers only the first language of the web browser.
Created attachment 5157 [details] This patch fixes the problem for us ie. browser language setting works as expected.
Johann and Ari, This issue seems similiar to bug 18525, which I just fix. Could you please check if the next nightly build fix it? Thanks, Felipe PS: looks like there is a problem on the nightly builds generation (last one was on 05/31), so you may need to wait a couple of days until you can check it (you need a nightly build more recent then 06/04), so please keep an eye on http://cvs.apache.org/builds/jakarta-taglibs/nightly/projects/i18n/
The nightly builds are back. Please try to reproduce the issue using the following link: http://cvs.apache.org/builds/jakarta-taglibs/nightly/projects/i18n/jakarta-taglibs-i18n-20040613.zip And let me know the result. Felipe
I'm assuming bug 18525 fixed this issue. *** This bug has been marked as a duplicate of 18525 ***