summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--i18npool/source/isolang/inunx.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/i18npool/source/isolang/inunx.cxx b/i18npool/source/isolang/inunx.cxx
index eb61f0bd54e4..778446a505f3 100644
--- a/i18npool/source/isolang/inunx.cxx
+++ b/i18npool/source/isolang/inunx.cxx
@@ -30,6 +30,7 @@
#endif // MACOSX
#include <rtl/instance.hxx>
+#include "i18npool/languagetag.hxx"
#include "i18npool/mslangid.hxx"
// =======================================================================
@@ -101,7 +102,7 @@ static void getPlatformSystemLanguageImpl( LanguageType& rSystemLanguage,
rtl::OUString rLang( procLocale->Language );
rtl::OUString rCountry( procLocale->Country );
- nLang = MsLangId::convertIsoNamesToLanguage( rLang, rCountry );
+ nLang = LanguageTag( rLang, rCountry ).getLanguageType();
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
rSystemLanguage = nLang;
#ifdef DEBUG