From: <ebe...@us...> - 2003-10-31 20:26:05
|
Update of /cvsroot/jpox/JPOX/src/java/org/jpox/util In directory sc8-pr-cvs1:/tmp/cvs-serv27019/src/java/org/jpox/util Modified Files: I18nUtils.java Log Message: fixed getLocaleFromString when having as localeString only the language Index: I18nUtils.java =================================================================== RCS file: /cvsroot/jpox/JPOX/src/java/org/jpox/util/I18nUtils.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** I18nUtils.java 29 Oct 2003 12:44:51 -0000 1.1 --- I18nUtils.java 31 Oct 2003 20:26:02 -0000 1.2 *************** *** 45,49 **** if (languageIndex == -1) { ! return null; } int countryIndex = localeString.indexOf('_', languageIndex + 1); --- 45,49 ---- if (languageIndex == -1) { ! return new Locale(localeString, ""); } int countryIndex = localeString.indexOf('_', languageIndex + 1); |