This commit is contained in:
Joel Dice
2007-09-13 21:59:39 -06:00
parent 2ca75d50e6
commit bb520e4ef9
4 changed files with 31 additions and 10 deletions

View File

@ -53,15 +53,21 @@ public abstract class ResourceBundle {
{
try {
ResourceBundle b = find(name, loader, null);
if (locale.getLanguage() != null) {
name = name + "_" + locale.getLanguage();
b = find(name, loader, b);
ResourceBundle b2 = find(name, loader, b);
if (b2 != null) b = b2;
if (locale.getCountry() != null) {
name = name + "_" + locale.getCountry();
b = find(name, loader, b);
b2 = find(name, loader, b);
if (b2 != null) b = b2;
if (locale.getVariant() != null) {
name = name + "_" + locale.getVariant();
b = find(name, loader, b);
b2 = find(name, loader, b);
if (b2 != null) b = b2;
}
}
}