office-gobmx/desktop/CppunitTest_desktop_lib.mk
Tomaž Vajngerl 3810f28d78 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
2020-02-25 09:25:33 +01:00

81 lines
1.9 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#*************************************************************************
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,desktop_lib))
$(eval $(call gb_CppunitTest_add_exception_objects,desktop_lib, \
desktop/qa/desktop_lib/test_desktop_lib \
))
$(eval $(call gb_CppunitTest_use_libraries,desktop_lib, \
comphelper \
cppu \
cppuhelper \
i18nlangtag \
sal \
sc \
scfilt \
sfx \
sofficeapp \
subsequenttest \
sw \
test \
unotest \
utl \
tl \
vcl \
))
$(eval $(call gb_CppunitTest_use_externals,desktop_lib, \
boost_headers \
cairo \
))
$(eval $(call gb_CppunitTest_set_include,desktop_lib,\
-I$(SRCDIR)/desktop/inc \
$$(INCLUDE) \
))
$(eval $(call gb_CppunitTest_use_sdk_api,desktop_lib))
$(eval $(call gb_CppunitTest_use_ure,desktop_lib))
$(eval $(call gb_CppunitTest_use_vcl,desktop_lib))
$(eval $(call gb_CppunitTest_use_rdb,desktop_lib,services))
$(eval $(call gb_CppunitTest_use_configuration,desktop_lib))
$(eval $(call gb_CppunitTest_use_more_fonts,desktop_lib))
$(eval $(call gb_CppunitTest_use_packages,desktop_lib, \
scripting_scriptbindinglib \
wizards_basicshare \
wizards_basicsrvaccess2base \
wizards_basicsrvdepot \
wizards_basicsrveuro \
wizards_basicsrvform \
wizards_basicsrvgimmicks \
wizards_basicsrvimport \
wizards_basicsrvtemplate \
wizards_basicsrvtools \
))
$(eval $(call gb_CppunitTest_use_uiconfigs,desktop_lib, \
cui \
modules/swriter \
))
$(eval $(call gb_CppunitTest_use_packages,desktop_lib, \
postprocess_images \
))
# vim: set noet sw=4 ts=4: