summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/Makefile.am3
-rw-r--r--data/appdata.its10
-rw-r--r--data/appdata.loc9
3 files changed, 22 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index 032c33c..b902cba 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -20,6 +20,9 @@ man_MANS += \
endif
endif
+itsdatadir = $(datadir)/gettext/its
+dist_itsdata_DATA = appdata.its appdata.loc
+
XSLTPROC_FLAGS = \
--nonet \
--stringparam man.output.quietly 1 \
diff --git a/data/appdata.its b/data/appdata.its
new file mode 100644
index 0000000..734a8e5
--- /dev/null
+++ b/data/appdata.its
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<its:rules xmlns:its="http://www.w3.org/2005/11/its"
+ version="2.0">
+ <its:translateRule selector="/component" translate="no"/>
+ <its:translateRule selector="/component/name |
+ /component/summary |
+ /component/description |
+ /component/screenshots/screenshot/caption"
+ translate="yes"/>
+</its:rules>
diff --git a/data/appdata.loc b/data/appdata.loc
new file mode 100644
index 0000000..97dd7eb
--- /dev/null
+++ b/data/appdata.loc
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<locatingRules>
+ <locatingRule name="AppData" pattern="*.appdata.xml">
+ <documentRule localName="component" target="appdata.its"/>
+ </locatingRule>
+ <locatingRule name="AppData" pattern="*.metainfo.xml">
+ <documentRule localName="component" target="appdata.its"/>
+ </locatingRule>
+</locatingRules>