summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-02-17 12:55:19 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-02-17 18:56:56 +0000
commit302a22cd19e6f6963fc8eb0b9a581c7eff5e5430 (patch)
treeaf38c3515866a136fa1fab97ae9a268453832a6f /configmgr
parenta7fd1e067eb2af0ef329719c4c7dbb32cc5926b2 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/qa/unit/test.cxx8
1 files changed, 8 insertions, 0 deletions
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
@@ -334,6 +334,14 @@ void Test::testLocalizedProperty() {
CPPUNIT_ASSERT_EQUAL(OUString("es"), v);
}
{
+ // See <https://git.libreoffice.org/core/+/dfc28be2487c13be36a90efd778b8d8f179c589d%5E%21>
+ // "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;
CPPUNIT_ASSERT(