David E Jones wrote:
On Nov 26, 2007, at 3:44 PM, Adrian Crum wrote:
David E Jones wrote:
2. there is no way to configure the default locale without renaming
properties files (ie what if someone wants it_IT to be the default
locale instead of en_US so that if no locale is specified that is
what will show up, as if the properties file with no locale suffix
had the Italian labels)
Have you seen an example of this? The UtilProperties.getMessage(...)
methods throw an exception if you pass a null Locale object.
I can see how the sentence would be confusing, especially not in the
context of what was in the parenthesis.
The is not the default locale for the system, but the default locale to
use when there is no properties file for the locale specified.
-David
Understood. I would like to submit a separate patch to provide a configurable default locale -
similar to the work I did to configure a default time zone. The properties code would then fall back
to that default locale if no properties file with the specified locale is found.
-Adrian