]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Extend the AppData "language" to also support AppStream metainfo files.
authorMatthias Klumpp <matthias@tenstral.net>
Mon, 28 Aug 2017 23:36:39 +0000 (01:36 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 28 Aug 2017 23:43:25 +0000 (01:43 +0200)
Fixes <https://savannah.gnu.org/bugs/?50414>,
reported by Piotr Drąg <piotrdrag@gmail.com>.

* gettext-tools/its/metainfo.its: Renamed from gettext-tools/its/appdata.its.
* gettext-tools/its/metainfo.loc: Renamed from gettext-tools/its/appdata.loc.
Recognize also suffix ".metainfo.xml".
* gettext-tools/its/Makefile.am (dist_its_DATA): Update.
* gettext-tools/src/x-appdata.h: Update comment.

gettext-tools/its/Makefile.am
gettext-tools/its/appdata.loc [deleted file]
gettext-tools/its/metainfo.its [moved from gettext-tools/its/appdata.its with 100% similarity]
gettext-tools/its/metainfo.loc [new file with mode: 0644]
gettext-tools/src/x-appdata.h

index 6e5a5ec08e321f86b3c9e61aeec7c30fc208258a..ef17ae8c1499e04c4db63f71cccea7e561de4f4e 100644 (file)
@@ -1,5 +1,5 @@
 ## Makefile for the gettext-tools/its subdirectory of GNU gettext
-## Copyright (C) 2015-2016 Free Software Foundation, Inc.
+## Copyright (C) 2015-2017 Free Software Foundation, Inc.
 ##
 ## This program is free software: you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License as published by
@@ -21,4 +21,4 @@ AUTOMAKE_OPTIONS = 1.2 gnits
 pkgdatadir = $(datadir)/gettext
 itsdir = $(pkgdatadir)$(PACKAGE_SUFFIX)/its
 dist_its_DATA = glade.loc glade1.its glade2.its gtkbuilder.its \
-gsettings.loc gsettings.its appdata.loc appdata.its
+gsettings.loc gsettings.its metainfo.loc metainfo.its
diff --git a/gettext-tools/its/appdata.loc b/gettext-tools/its/appdata.loc
deleted file mode 100644 (file)
index 9bed649..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0"?>
-<locatingRules>
-  <locatingRule name="AppData" pattern="*.appdata.xml">
-    <documentRule localName="component" target="appdata.its"/>
-  </locatingRule>
-</locatingRules>
diff --git a/gettext-tools/its/metainfo.loc b/gettext-tools/its/metainfo.loc
new file mode 100644 (file)
index 0000000..0e471e6
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<locatingRules>
+  <locatingRule name="metainfo" pattern="*.metainfo.xml">
+    <documentRule localName="component" target="metainfo.its"/>
+  </locatingRule>
+  <locatingRule name="AppData" pattern="*.appdata.xml">
+    <documentRule localName="component" target="metainfo.its"/>
+  </locatingRule>
+</locatingRules>
index a2e3ad446b986b46ee6cf1c07a01f6c544ff6a33..b42c2d48c0f7bbb5fb53a3a234435a6377a2c147 100644 (file)
@@ -28,7 +28,7 @@ extern "C" {
 #endif
 
 
-/* The scanner is implemented as ITS rules, in its/appdata.its.  */
+/* The scanner is implemented as ITS rules, in its/metainfo.its.  */
 
 #define EXTENSIONS_APPDATA