From 302a22cd19e6f6963fc8eb0b9a581c7eff5e5430 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 17 Feb 2023 12:55:19 +0100 Subject: Verify that zh-Hant-TW locale works in configmgr as intended ...after b52117c0be97c45824d2897657084f8ac7e9bf42 "Try an override locale as first fallback" Change-Id: I23d8459fff4d76fd9d542d098953bf97cf5397a1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147219 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- configmgr/qa/unit/test.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configmgr') diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index 03d44a9947ee..60d19be8472c 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -333,6 +333,14 @@ void Test::testLocalizedProperty() { access->getByHierarchicalName("/org.libreoffice.unittest/localized/*es-419") >>= v); CPPUNIT_ASSERT_EQUAL(OUString("es"), v); } + { + // See + // "configmgr: Use a proper LanguageTag-based locale fallback mechanism": + OUString v; + CPPUNIT_ASSERT( + access->getByHierarchicalName("/org.libreoffice.unittest/localized/*zh-Hant-TW") >>= v); + CPPUNIT_ASSERT_EQUAL(OUString("zh-TW"), v); + } { // Make sure a degenerate passed-in "-" locale is handled gracefully: OUString v; -- cgit