diff options
-rw-r--r-- | configmgr/source/access.cxx | 2 | ||||
-rw-r--r-- | sd/source/core/CustomAnimationPreset.cxx | 4 | ||||
-rw-r--r-- | sd/source/core/TransitionPreset.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx index 9fe7f31cc00f..e07fc8446f51 100644 --- a/configmgr/source/access.cxx +++ b/configmgr/source/access.cxx @@ -1382,7 +1382,7 @@ rtl::Reference< ChildAccess > Access::getChild(OUString const & name) { // here we override it with the actual current-user's language to // support per-view localization in LOK. if (comphelper::LibreOfficeKit::isActive()) - locale = comphelper::LibreOfficeKit::getLanguageTag().getLanguage(); + locale = comphelper::LibreOfficeKit::getLanguageTag().getBcp47(); if (!locale.isEmpty()) { // Find best match using an adaptation of RFC 4647 lookup matching diff --git a/sd/source/core/CustomAnimationPreset.cxx b/sd/source/core/CustomAnimationPreset.cxx index 3be4e76941f8..cf15dc490622 100644 --- a/sd/source/core/CustomAnimationPreset.cxx +++ b/sd/source/core/CustomAnimationPreset.cxx @@ -478,8 +478,8 @@ const CustomAnimationPresets& CustomAnimationPresets::getCustomAnimationPresets( // Support localization per-view. Currently not useful for Desktop // but very much critical for LOK. The cache now is per-language. const OUString aLang = comphelper::LibreOfficeKit::isActive() - ? comphelper::LibreOfficeKit::getLanguageTag().getLanguage() - : SvtSysLocaleOptions().GetLanguageTag().getLanguage(); + ? comphelper::LibreOfficeKit::getLanguageTag().getBcp47() + : SvtSysLocaleOptions().GetLanguageTag().getBcp47(); SolarMutexGuard aGuard; const auto it = mPresetsMap.find(aLang); diff --git a/sd/source/core/TransitionPreset.cxx b/sd/source/core/TransitionPreset.cxx index 951959cdb69a..1a8f55b90aed 100644 --- a/sd/source/core/TransitionPreset.cxx +++ b/sd/source/core/TransitionPreset.cxx @@ -367,8 +367,8 @@ const TransitionPresetList& TransitionPreset::getTransitionPresetList() // Support localization per-view. Currently not useful for Desktop // but very much critical for LOK. The cache now is per-language. const OUString aLang = comphelper::LibreOfficeKit::isActive() - ? comphelper::LibreOfficeKit::getLanguageTag().getLanguage() - : SvtSysLocaleOptions().GetLanguageTag().getLanguage(); + ? comphelper::LibreOfficeKit::getLanguageTag().getBcp47() + : SvtSysLocaleOptions().GetLanguageTag().getBcp47(); SolarMutexGuard aGuard; const auto it = mPresetsMap.find(aLang); |