ICU-7136 Modify ICUResourceBundle implementation to honor %%ParentIsRoot resources in locales with multiple scripts

X-SVN-Rev: 26685
This commit is contained in:
John Emmons 2009-09-24 17:28:39 +00:00
parent 56afa88bdf
commit e4e4513690

View file

@ -783,7 +783,15 @@ public class ICUResourceBundle extends UResourceBundle {
b = (ICUResourceBundle)addToCache(root, fullName, defaultLocale, b);
if (i != -1) {
boolean ParentIsRoot;
try {
b.get("%%ParentIsRoot");
ParentIsRoot = true;
} catch (MissingResourceException ex) {
ParentIsRoot = false;
}
if (i != -1 && !ParentIsRoot) {
parent = instantiateBundle(baseName, localeName.substring(0, i), root, disableFallback);
}else if(!localeName.equals(rootLocale)){
parent = instantiateBundle(baseName, rootLocale, root, true);