configmgr/qa/unit/test.cxx                           |    9 +++++++++
 test/user-template/registry-common/modifications.xcd |    1 +
 2 files changed, 10 insertions(+)

New commits:
commit c5d11033044cb7418ba3f8a78d5598721bb2a6c1
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Fri Feb 17 12:47:34 2023 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Fri Feb 17 13:51:00 2023 +0000

    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 <sberg...@redhat.com>

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
@@ -324,6 +324,15 @@ void Test::testLocalizedProperty() {
             
access->getByHierarchicalName("/org.libreoffice.unittest/localized/*pt") >>= v);
         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;
diff --git a/test/user-template/registry-common/modifications.xcd 
b/test/user-template/registry-common/modifications.xcd
index f4698116b932..fff0045b08ee 100644
--- a/test/user-template/registry-common/modifications.xcd
+++ b/test/user-template/registry-common/modifications.xcd
@@ -20,6 +20,7 @@
   <prop oor:name="localized">
     <value>default</value>
     <value xml:lang="en-US">en-US</value>
+    <value xml:lang="es">es</value>
     <value xml:lang="pt-PT">pt-PT</value>
   </prop>
   <prop oor:name="noDefaultLang">

Reply via email to