summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-09-03 19:50:25 +0200
committerEike Rathke <erack@redhat.com>2013-09-03 20:35:42 +0200
commit39c9c7420a5464b4b52cd73622e991ebee30e4a0 (patch)
treef68d3f13ec1cb309303ca59388a2a848c3f47b4d /lingucomponent
parent3945267d677fc311205ac23ed0aa1ba2eef21097 (diff)
was convertIsoStringToLanguage(), use convertToLanguageTypeWithFallback()
Change-Id: Ieea44614271c79beb7a9a3fce35acf921ccb478f
Diffstat (limited to 'lingucomponent')
-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 f8ae521c2919..b6db0b9fca66 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -198,7 +198,7 @@ void MergeNewStyleDicsAndOldStyleDics(
sal_Int32 nLocaleNames = aLocaleNames.getLength();
for (sal_Int32 k = 0; k < nLocaleNames; ++k)
{
- LanguageType nLang = LanguageTag::convertToLanguageType( aLocaleNames[k] );
+ LanguageType nLang = LanguageTag::convertToLanguageTypeWithFallback( aLocaleNames[k] );
aNewStyleLanguages.insert( nLang );
}
}
@@ -214,7 +214,7 @@ void MergeNewStyleDicsAndOldStyleDics(
DBG_ASSERT( nOldStyleDics, "old style dictionary with more then one language found!");
if (nOldStyleDics > 0)
{
- LanguageType nLang = LanguageTag::convertToLanguageType( aIt2->aLocaleNames[0] );
+ LanguageType nLang = LanguageTag::convertToLanguageTypeWithFallback( aIt2->aLocaleNames[0] );
if (nLang == LANGUAGE_DONTKNOW || linguistic::LinguIsUnspecified( nLang))
{