diff options
author | Eike Rathke <erack@redhat.com> | 2013-09-05 11:51:22 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-09-05 14:57:26 +0200 |
commit | a6c73c2007cae29755d51c10f85cb684760ae84b (patch) | |
tree | d3aad3b9e8c3620504035718758ddf30f4e1627e /i18npool | |
parent | f7002026d91bde71c4baceb3ff0bd318a45bf72d (diff) |
use LanguageTag::convertToLocale()
Change-Id: Id2cf7f550883f291d181d68d9dd91a7173b55310
Diffstat (limited to 'i18npool')
-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 { |