summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-01-25 14:50:47 +0000
committerRichard Hughes <richard@hughsie.com>2016-01-25 16:03:01 +0000
commitcef24105dd7466fa9f872d6857ad3b3a560a43c1 (patch)
treeedf8c0f4e42fa73d5ed989a78b5ccff0d72dffd2 /data
parent9ef67b53d32dd56cbe6adfa4fc477d31fcf524ca (diff)
downloadappstream-glib-cef24105dd7466fa9f872d6857ad3b3a560a43c1.tar.gz
Add AsTranslation to support <translation> tags in AppData files
This allows upstream to specify the translation domain so we can calculate the language statistics automatically without using hacky heuristics.
Diffstat (limited to 'data')
-rw-r--r--data/tests/intltool.appdata.xml.in1
-rw-r--r--data/tests/success.appdata.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/data/tests/intltool.appdata.xml.in b/data/tests/intltool.appdata.xml.in
index 43c24bb..6033cc6 100644
--- a/data/tests/intltool.appdata.xml.in
+++ b/data/tests/intltool.appdata.xml.in
@@ -27,6 +27,7 @@
<screenshots>
<screenshot type="default" width="355" height="134">https://projects.gnome.org/gnome-power-manager/images/gpm-low-batt.png</screenshot>
</screenshots>
+ <translation type="gettext">gnome-power-manager</translation>
<url type="homepage">http://www.gnome.org/projects/gnome-power-manager/</url>
<updatecontact>richard_at_hughsie.com</updatecontact>
</application>
diff --git a/data/tests/success.appdata.xml b/data/tests/success.appdata.xml
index 9a5c6d6..b6d61df 100644
--- a/data/tests/success.appdata.xml
+++ b/data/tests/success.appdata.xml
@@ -36,6 +36,7 @@
<releases>
<release version="2.0.1" timestamp="1424116753"/>
</releases>
+ <translation type="gettext">gnome-power-manager</translation>
<url type="homepage">http://www.gnome.org/projects/gnome-power-manager/</url>
<updatecontact>richard_at_hughsie.com</updatecontact>
<project_group>GNOME</project_group>