summaryrefslogtreecommitdiffstats
path: root/lingucomponent/source/lingutil/lingutil.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source/lingutil/lingutil.cxx')
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index ca5f34b66b06..5edd78a49ed8 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -203,7 +203,7 @@ void MergeNewStyleDicsAndOldStyleDics(
sal_Int32 nLocaleNames = aLocaleNames.getLength();
for (sal_Int32 k = 0; k < nLocaleNames; ++k)
{
- LanguageType nLang = MsLangId::convertIsoStringToLanguage( aLocaleNames[k] );
+ LanguageType nLang = LanguageTag( aLocaleNames[k] ).getLanguageType();
aNewStyleLanguages.insert( nLang );
}
}
@@ -219,7 +219,7 @@ void MergeNewStyleDicsAndOldStyleDics(
DBG_ASSERT( nOldStyleDics, "old style dictionary with more then one language found!");
if (nOldStyleDics > 0)
{
- LanguageType nLang = MsLangId::convertIsoStringToLanguage( aIt2->aLocaleNames[0] );
+ LanguageType nLang = LanguageTag( aIt2->aLocaleNames[0] ).getLanguageType();
if (nLang == LANGUAGE_DONTKNOW || nLang == LANGUAGE_NONE)
{