* fix rename build error

This commit is contained in:
Reinhard Pointner 2012-03-05 14:51:55 +00:00
parent 365c43f635
commit 655830ddb9
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ public class Language {
try {
return new Language(code, bundle.getString(code + ".name"));
} catch (Exception e) {
if (code == null || code.isEmpty()) {
return null;
}
return new Language(code, new Locale(code).getDisplayLanguage(Locale.ROOT));
}
}