diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2020-02-24 08:07:12 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2020-05-28 09:19:17 +0100 |
commit | 1d0bee586523cb90fcf4546cc4b3960019888a69 (patch) | |
tree | b8c48015900219a02281fb5fa25e229be5c4d359 /unotools | |
parent | de308f52d7288da667d6b8e5fac357c468cdff3f (diff) |
Fix currency symbol selection in Calc on mobile
In LOK we use one language identifier for both - UI language and
the locale used. This is a problem when we determine that we a
language for UI is not available and fall-back to the default
"en-US" langauge, which also changes the locale. This introduces
a separate variable that stores the language tag for the locale
independently to the language.
Another problem is that in some cases we don't reset the staticly
initialized data, when the new document is loaded, which is on
the other hand used to define which currency symbol is used as
SYSTEM locale. That can in some cases select the wrong currency
symbol even when we changed the locale to something else. This fix
introduces a reset function, which is triggered on every document
load.
Change-Id: I55c7f467600a832895f94346f8bf11a6ef6a1e49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89320
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89343
Tested-by: Jenkins
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/misc/syslocale.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/misc/syslocale.cxx b/unotools/source/misc/syslocale.cxx index cad884f71d1f..cfb84ffe81f0 100644 --- a/unotools/source/misc/syslocale.cxx +++ b/unotools/source/misc/syslocale.cxx @@ -171,7 +171,7 @@ SvtSysLocaleOptions& SvtSysLocale::GetOptions() const const LanguageTag& SvtSysLocale::GetLanguageTag() const { if (comphelper::LibreOfficeKit::isActive()) - return comphelper::LibreOfficeKit::getLanguageTag(); + return comphelper::LibreOfficeKit::getLocale(); return pImpl->aSysLocaleOptions.GetRealLanguageTag(); } |