summaryrefslogtreecommitdiff
path: root/i18npool/source/isolang/mslangid.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/isolang/mslangid.cxx')
-rw-r--r--i18npool/source/isolang/mslangid.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/i18npool/source/isolang/mslangid.cxx b/i18npool/source/isolang/mslangid.cxx
index 06941b62d10a..e5661dab2d9d 100644
--- a/i18npool/source/isolang/mslangid.cxx
+++ b/i18npool/source/isolang/mslangid.cxx
@@ -379,7 +379,7 @@ sal_Int16 MsLangId::getScriptType( LanguageType nLang )
// static
-LanguageType MsLangId::getReplacementForObsoleteLanguage( LanguageType nLang )
+LanguageType MsLangId::getReplacementForObsoleteLanguage( LanguageType nLang, bool bUserInterfaceSelection )
{
switch (nLang)
{
@@ -433,7 +433,8 @@ LanguageType MsLangId::getReplacementForObsoleteLanguage( LanguageType nLang )
// Do not use ca-XV for document content.
/* TODO: remove in case we implement BCP47 language tags. */
case LANGUAGE_USER_CATALAN_VALENCIAN:
- nLang = LANGUAGE_CATALAN;
+ if (!bUserInterfaceSelection)
+ nLang = LANGUAGE_CATALAN;
break;
}
return nLang;