[ http://jira.codehaus.org/browse/MPIR-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dennis Lundberg updated MPIR-79: -------------------------------- Attachment: MPIR-79.zip Here's a very small project that borrows the resource files from MPIR. It sets the default locale to the first command line parameter. Then it retrieves a resouce bundle for the English locale. Finally it gets a string from the resouce bundle and prints it. Run it using these commands: {code} mvn package java -jar target\MPIR-79-1.0-SNAPSHOT.jar <defaultLocale> {code} I have not been able to get it to output anything else that the English text "About", no matter what I throw at it as the default locale. There must be something that I simply do not understand. > Add explicit resource bundle for English > ---------------------------------------- > > Key: MPIR-79 > URL: http://jira.codehaus.org/browse/MPIR-79 > Project: Maven 2.x Project Info Reports Plugin > Issue Type: Bug > Affects Versions: 2.0.1 > Reporter: Benjamin Bentmann > Priority: Minor > Attachments: i18n-en.patch, MPIR-79.zip > > > The lookup strategy performed by ResourceBundle.getBundle() to find a bundle > for a requested locale will prefer the bundle for the JVM's default locale > over the base bundle of a family. For this reason, one MUST always provide an > empty bundle for the language that is provided by the base bundle. See [Sun > Bug 6606475|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6606475] for a > prominent example of this bug. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira