The Locale( String ) constructor was introduced in JDK1.4.
Cheers
Niclas
--
+------//-------------------+
/ http://www.bali.ac /
/ http://niclas.hedhman.org /
+------//-------------------+
Index: src/java/org/apache/cocoon/i18n/I18nUtils.java
===================================================================
--- src/java/org/apache/cocoon/i18n/I18nUtils.java (revision 51832)
+++ src/java/org/apache/cocoon/i18n/I18nUtils.java (working copy)
@@ -187,7 +187,7 @@
// 7. Blank
if (useBlankLocale) {
- locale = new Locale("");
+ locale = new Locale("", "");
if (test == null || test.test("blank", locale)) {
return locale;
}
Index: src/java/org/apache/cocoon/matching/LocaleMatcher.java
===================================================================
--- src/java/org/apache/cocoon/matching/LocaleMatcher.java (revision 51832)
+++ src/java/org/apache/cocoon/matching/LocaleMatcher.java (working copy)
@@ -289,7 +289,7 @@
}
// Test "language" locale (or empty - if language is "")
- testLocale = new Locale(locale.getLanguage());
+ testLocale = new Locale(locale.getLanguage(), locale.getCountry());
if (isValidResource(pattern, locale, testLocale, map)) {
return true;
}