diff options
-rw-r--r-- | configmgr/qa/unit/test.cxx | 8 | ||||
-rw-r--r-- | test/user-template/registry-common/modifications.xcd | 2 |
2 files changed, 10 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( diff --git a/test/user-template/registry-common/modifications.xcd b/test/user-template/registry-common/modifications.xcd index fff0045b08ee..a212242785ea 100644 --- a/test/user-template/registry-common/modifications.xcd +++ b/test/user-template/registry-common/modifications.xcd @@ -22,6 +22,8 @@ <value xml:lang="en-US">en-US</value> <value xml:lang="es">es</value> <value xml:lang="pt-PT">pt-PT</value> + <value xml:lang="zh-CN">zh-CN</value> + <value xml:lang="zh-TW">zh-TW</value> </prop> <prop oor:name="noDefaultLang"> <value xml:lang="en-US">en-US</value> |