diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-02-17 12:47:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-02-17 13:51:00 +0000 |
commit | c5d11033044cb7418ba3f8a78d5598721bb2a6c1 (patch) | |
tree | cfb9b33bc9d383132978c0046e60fe6eb07a7d7e /configmgr | |
parent | 6d9091197b311321543ea0f0dac30825bf8cc2b8 (diff) |
Verify that es-419 locale works in configmgr as intended
...after a9b97301ba75a74e6671a6b9829f7044e85db6af "Do not add empty language tag
to fallback strings"
Change-Id: Ie42929c2ce6331012358f72026ae774b9dd0e369
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147207
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configmgr')
-rw-r--r-- | configmgr/qa/unit/test.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/configmgr/qa/unit/test.cxx b/configmgr/qa/unit/test.cxx index 217f386456ee..03d44a9947ee 100644 --- a/configmgr/qa/unit/test.cxx +++ b/configmgr/qa/unit/test.cxx @@ -325,6 +325,15 @@ void Test::testLocalizedProperty() { CPPUNIT_ASSERT_EQUAL(OUString("pt-PT"), v); } { + // See <https://gerrit.libreoffice.org/c/core/+/147089> "configmgr: fix no longer found + // es-419 -> es fallback", which wants to retrieve the xml:lang="es" value for the passed-in + // "es-419" locale: + OUString v; + CPPUNIT_ASSERT( + access->getByHierarchicalName("/org.libreoffice.unittest/localized/*es-419") >>= v); + CPPUNIT_ASSERT_EQUAL(OUString("es"), v); + } + { // Make sure a degenerate passed-in "-" locale is handled gracefully: OUString v; CPPUNIT_ASSERT( |