commit | 24f580331a95befc9a950a04707e42fbdc3d91e6 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Fri Feb 19 10:22:22 2010 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Fri Feb 19 10:22:22 2010 +0000 |
tree | f33990dc9126426c38e17cce5d88a01b53131d13 | |
parent | d219cc7d6d6e6a265a183a318e52e05d0b17f977 [diff] |
FELIX-1988 Ensure the default local file "xyz.properties" is assigned to the DEFAULT_LOCALE to have the default translations git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@911773 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 f6721fe..054fb02 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
@@ -141,9 +141,9 @@ entryPath = entryPath.substring( start, end ); // the default language is "name.properties" thus the entry - // path is empty and must default to "_" + // path is empty and must default to "_"+DEFAULT_LOCALE if (entryPath.length() == 0) { - entryPath = "_"; + entryPath = "_" + DEFAULT_LOCALE; } // only add this entry, if the "language" is not provided