maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <>
Subject [jira] Updated: (MPIR-79) Add explicit resource bundle for English
Date Tue, 15 Jan 2008 21:27:57 GMT


Benjamin Bentmann updated MPIR-79:


bq. It sets the default locale to the first command line parameter.
No, it doesn't ;-) You simply assign a variable called "defaultLocale" but the default locale
is maintained by the java.util.Locale class. One needs to call setDefault() in order to effectively
change it.

I attached a slightly modified version of your test project. The modified code also prints
out the effective locale of the bundle that has been retrieved (bundleLocale). Here's my log
M:\MPIR-79>java -jar target\MPIR-79-1.0-SNAPSHOT.jar de
Willkommen bei

Can I convice you this way?

> Add explicit resource bundle for English
> ----------------------------------------
>                 Key: MPIR-79
>                 URL:
>             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,,
> 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|]
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:
For more information on JIRA, see:


View raw message