diff options
author | Eike Rathke <erack@redhat.com> | 2012-11-17 00:27:33 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2012-11-17 00:27:45 +0100 |
commit | 42455e14477b0923b7f0388c3c8672b0fbf8dfd5 (patch) | |
tree | 132ada532d1cf1cd91283d1153771c538539d716 /lingucomponent/source/lingutil/lingutil.cxx | |
parent | use LanguageTag (diff) | |
download | core-42455e14477b0923b7f0388c3c8672b0fbf8dfd5.tar.gz core-42455e14477b0923b7f0388c3c8672b0fbf8dfd5.zip |
use LanguageTag
Change-Id: I800638b4e4493988c30470359a78850c4149500b
Diffstat (limited to 'lingucomponent/source/lingutil/lingutil.cxx')
-rw-r--r-- | lingucomponent/source/lingutil/lingutil.cxx | 4 |
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) { |