commit | b8545ed79da83d8cc1510cf6b4fa6d1ef68f4047 | [log] [tgz] |
---|---|---|
author | Valentin Pavlov Valchev <vvalchev@apache.org> | Tue Sep 21 15:06:12 2010 +0000 |
committer | Valentin Pavlov Valchev <vvalchev@apache.org> | Tue Sep 21 15:06:12 2010 +0000 |
tree | 7d5e9fb33b7e727f6feee7ee9aee5fd65b71851a | |
parent | c299f7a782fe5782d44c9c35f78b9f26d29ea16c [diff] |
Fixed FELIX-2609 /WebConsole doesn't work with JDK 1.3.1_06 because of Locale/ https://issues.apache.org/jira/browse/FELIX-2609 git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@999455 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/i18n/ResourceBundleCache.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/i18n/ResourceBundleCache.java index 054fb02..d30a83f 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/i18n/ResourceBundleCache.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/i18n/ResourceBundleCache.java
@@ -169,7 +169,7 @@ } else if ( locale.getCountry().length() != 0 ) { - return new Locale( locale.getLanguage() ); + return new Locale( locale.getLanguage(), "" ); //$NON-NLS-1$ } else if ( !locale.getLanguage().equals( DEFAULT_LOCALE.getLanguage() ) ) {
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java index a41fa6f..cfd0eca 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/servlet/OsgiManager.java
@@ -965,7 +965,7 @@ final String name = FilenameUtils.getBaseName(img.getFile()); try { - final String locale = new Locale(name).getDisplayLanguage(); + final String locale = new Locale(name, "").getDisplayLanguage(); //$NON-NLS-1$ map.put(name, null != locale ? locale : name); } catch (Throwable t)