bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66620] Regression in 0.23: msgfmt procedures invalid metainfo XML


From: Balló György
Subject: [bug #66620] Regression in 0.23: msgfmt procedures invalid metainfo XML
Date: Mon, 30 Dec 2024 18:11:53 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?66620>

                 Summary: Regression in 0.23: msgfmt procedures invalid
metainfo XML
                   Group: GNU gettext
               Submitter: citybusz
               Submitted: Mon 30 Dec 2024 11:11:49 PM UTC
                Category: XML
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 30 Dec 2024 11:11:49 PM UTC By: Balló György <citybusz>
After the update to gettext 0.23, the AppStream metainfo XML files generated
by msgfmt are invalid if a translation is available for the 'ca@valencia'
language. The output from appstreamcli validate:

E: @appid@:79: tag-duplicated name (lang=ca)
   This tag must only appear once in this context. Having multiple tags of
this kind is not valid.

E: @appid@:162: tag-duplicated summary (lang=ca)
   This tag must only appear once in this context. Having multiple tags of
this kind is not valid.


Steps to reproduce:

git clone https://gitlab.gnome.org/GNOME/nautilus.git
msgfmt --xml --template nautilus/data/org.gnome.Nautilus.metainfo.xml.in.in -d
nautilus/po -o org.gnome.Nautilus.metainfo.xml
appstreamcli validate --explain org.gnome.Nautilus.metainfo.xml


The problem is caused by this commit:
https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commit;h=446241c7cabb9b5de52c63248aa2574ce1acb388

It seems that the value 'ca@valencia' is transcoded into 'ca', and if 'ca' is
already present, it causes duplicated <name xml:lang="ca"> tags.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66620>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]