Author: sichen
Date: Fri Jul 21 15:25:25 2006
New Revision: 424477
URL:
http://svn.apache.org/viewvc?rev=424477&view=revLog:
Patch from Peter Goron to fix problem with available locales not parsing correctly when locale is of format fr_FR. OFBIZ-45
Modified:
incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java
Modified: incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java?rev=424477&r1=424476&r2=424477&view=diff==============================================================================
--- incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java (original)
+++ incubator/ofbiz/trunk/framework/base/src/base/org/ofbiz/base/util/UtilMisc.java Fri Jul 21 15:25:25 2006
@@ -403,7 +403,7 @@
if (end == -1) {
end = localesString.length();
}
- Locale curLocale = new Locale(localesString.substring(start, end));
+ Locale curLocale = UtilMisc.ensureLocale(localesString.substring(start, end));
localeMap.put(curLocale.getDisplayName(), curLocale);
start = end + 1;
}