diff --git a/ccm-core/src/com/arsdigita/globalization/ChainedResourceBundle.java b/ccm-core/src/com/arsdigita/globalization/ChainedResourceBundle.java index 4847c6472..ad1855cf2 100755 --- a/ccm-core/src/com/arsdigita/globalization/ChainedResourceBundle.java +++ b/ccm-core/src/com/arsdigita/globalization/ChainedResourceBundle.java @@ -105,8 +105,10 @@ public class ChainedResourceBundle extends ResourceBundle { * Because this particular bundle is just a wrapper around other bundles, * this method will return null so that the ResourceBundle can then * examine the values returned by the chained parents + * @param key + * @return */ - public Object handleGetObject(String key) { + public Object handleGetObject(final String key) { Iterator iter = m_bundles.iterator(); Object object = null; while (iter.hasNext() && object == null) { diff --git a/ccm-core/src/com/arsdigita/globalization/GlobalizedMessage.java b/ccm-core/src/com/arsdigita/globalization/GlobalizedMessage.java index 3a3e98b2b..be90460f0 100755 --- a/ccm-core/src/com/arsdigita/globalization/GlobalizedMessage.java +++ b/ccm-core/src/com/arsdigita/globalization/GlobalizedMessage.java @@ -233,7 +233,7 @@ public class GlobalizedMessage { throw new IllegalArgumentException("locale cannot be null."); } - try { + try { // jensp 2013-03-16: // Previously, ResourceBundle#getBundle(String, Locale) was called here. That was causing problems under // specific circumstances: @@ -253,8 +253,8 @@ public class GlobalizedMessage { // with ResourceBundle.Control.getNoFallbackControl(List). resourceBundle = ResourceBundle.getBundle( getBundleName(), - locale, - ResourceBundle.Control.getNoFallbackControl(ResourceBundle.Control.FORMAT_PROPERTIES)); + locale, + ResourceBundle.Control.getNoFallbackControl(ResourceBundle.Control.FORMAT_DEFAULT)); } catch (MissingResourceException e) { if (LOGGER.isDebugEnabled()) { LOGGER.debug(