]
Norman Richards closed JBSEAM-3753.
-----------------------------------
Resolution: Won't Fix
See previous comment. If you want a new method to perform this action, I can add one.
SeamResourceBundle.getBundle(String baseName) fails to return correct
message based on Locale
---------------------------------------------------------------------------------------------
Key: JBSEAM-3753
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3753
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.2.SP1, 2.0.3.CR1, 2.1.1.CR1
Reporter: Samuel Mendenhall
Assignee: Norman Richards
Fix For: 2.1.2.CR1
When specifying the Locale directly, everything works as expected, when not, the default
locale is used, which is incorrect. Ex.
log.info("SeamResourceBundle.getBundle w/o passing Local: " +
SeamResourceBundle.getBundle("ECISConfig").getString("ecis.hello"));
log.info("SeamResourceBundle.getBundle w passing Local: " +
SeamResourceBundle.getBundle("ECISConfig",
LocaleSelector.instance().getLocale()).getString("ecis.hello"));
Produces:
15:08:45,438 INFO [TestAction] SeamResourceBundle.getBundle w/o passing Local: Hello
from ECISConfig_en.properties
15:08:45,439 INFO [TestAction] SeamResourceBundle.getBundle w passing Local: Hello from
ECISConfig_en_US_tmwa.properties
When both should be saying "Hello from ECISConfig_en_US_tmwa.properties"
because the locale and resource bundle are defined in components.xml as:
<international:locale-selector locale-string="en_US_tmwa" />
<core:resource-loader>
<core:bundle-names>
<value>messages</value>
<value>ECISConfig</value>
</core:bundle-names>
</core:resource-loader>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: