[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [bug #56455] metainfo ITS rules not used for appdata files
From: |
Will Thompson |
Subject: |
[bug-gettext] [bug #56455] metainfo ITS rules not used for appdata files |
Date: |
Fri, 7 Jun 2019 06:02:08 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 |
URL:
<https://savannah.gnu.org/bugs/?56455>
Summary: metainfo ITS rules not used for appdata files
Project: GNU gettext
Submitted by: wjt
Submitted on: Fri 07 Jun 2019 10:02:06 AM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Given the attached appdata file, the strings from the <releases> element are
extracted:
$ /tmp/gettext/bin/xgettext -o - ~/example.appdata.xml
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-06-07 10:55+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <address@hidden>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: /home/wjt/example.appdata.xml:6
msgid "Name should be extracted"
msgstr ""
#: /home/wjt/example.appdata.xml:7
msgid "Summary should be extracted"
msgstr ""
#: /home/wjt/example.appdata.xml:9
msgid "Description should be extracted."
msgstr ""
#: /home/wjt/example.appdata.xml:16
msgid "Caption should be extracted."
msgstr ""
#: /home/wjt/example.appdata.xml:22
msgid "Release notes should NOT be extracted."
msgstr ""
If I explicitly pass '--its=/tmp/gettext/share/gettext-0.20/its/metainfo.its`'
then the release notes are correctly ignored:
$ /tmp/gettext/bin/xgettext
--its=/tmp/gettext/share/gettext-0.20/its/metainfo.its -o -
~/example.appdata.xml
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-06-07 10:57+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <address@hidden>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: /home/wjt/example.appdata.xml:6
msgid "Name should be extracted"
msgstr ""
#: /home/wjt/example.appdata.xml:7
msgid "Summary should be extracted"
msgstr ""
#: /home/wjt/example.appdata.xml:9
msgid "Description should be extracted."
msgstr ""
#: /home/wjt/example.appdata.xml:16
msgid "Caption should be extracted."
msgstr ""
I can reproduce this with 0.20.1 (compiled locally), with Fedora's 0.19.8.1
and with Endless OS's 0.19.8.1 (which comes from Debian Buster).
If I strace xgettext I can see it reading /usr/share/gettext/its/metainfo.its
so I'm not sure why it's not being applied.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 07 Jun 2019 10:02:06 AM UTC Name: example.appdata.xml Size: 857B
By: wjt
<http://savannah.gnu.org/bugs/download.php?file_id=47050>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56455>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug-gettext] [bug #56455] metainfo ITS rules not used for appdata files,
Will Thompson <=