diff options
-rw-r--r-- | i18npool/source/localedata/localedata.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/i18npool/source/localedata/localedata.cxx b/i18npool/source/localedata/localedata.cxx index f453052b5219..709dc03ec78f 100644 --- a/i18npool/source/localedata/localedata.cxx +++ b/i18npool/source/localedata/localedata.cxx @@ -1520,14 +1520,7 @@ LocaleData::getAllInstalledLocaleNames() throw(RuntimeException) if (lcl_LookupTableStatic::get().getFunctionSymbolByName( name, "getLocaleItem", &pCachedItem )) { if( pCachedItem ) cachedItem.reset( pCachedItem ); - sal_Int32 index = 0; - lang::Locale tmpLocale(name.getToken(0, under, index), empStr, empStr); - if (index >= 0) { - tmpLocale.Country = name.getToken(0, under, index); - if (index >= 0) - tmpLocale.Variant = name.getToken(0, under, index); - } - seq[nInstalled++] = tmpLocale; + seq[nInstalled++] = LanguageTag::convertToLocale( name.replaceAll( "_", "-"), false); } else { |