mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-7136 Modify ICUResourceBundle implementation to honor %%ParentIsRoot resources in locales with multiple scripts
X-SVN-Rev: 26685
This commit is contained in:
parent
56afa88bdf
commit
e4e4513690
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue