summaryrefslogtreecommitdiffstats
path: root/i18npool
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool')
-rw-r--r--i18npool/source/isolang/mslangid.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/i18npool/source/isolang/mslangid.cxx b/i18npool/source/isolang/mslangid.cxx
index dfc7742dec46..d0df42e1401b 100644
--- a/i18npool/source/isolang/mslangid.cxx
+++ b/i18npool/source/isolang/mslangid.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: mslangid.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: kz $ $Date: 2006-10-06 09:09:26 $
+ * last change: $Author: hr $ $Date: 2006-10-24 13:09:34 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -154,7 +154,10 @@ void MsLangId::convertLanguageToLocale( LanguageType nLang,
; // nothing => empty locale
else
{
- nLang = MsLangId::getRealLanguage( nLang);
+ // Still resolve LANGUAGE_DONTKNOW if resolving is not requested,
+ // but not LANGUAGE_NONE or others.
+ if (bResolveSystem || nLang == LANGUAGE_DONTKNOW)
+ nLang = MsLangId::getRealLanguage( nLang);
convertLanguageToLocale( nLang, aLocale);
}
return aLocale;