Commit 60f09c34 authored by Jehan's avatar Jehan

desktop: make the appstream metainfo file translatable.

To have the name and summary translatable, rename as .in file, add
underscore on localizable tags and add to POTFILES.in.
Also clean out trailing whitespace and weird characters, add indentation
and fix tag s/updatecontact/update_contact/.
Finally add an appstream-util validation so that the file syntax is
checked during a `make check`.
parent dc17194f
......@@ -3,10 +3,8 @@
desktop_in_files = gimp.desktop.in.in
desktop_files = $(desktop_in_files:.desktop.in.in=.desktop)
appdata_in_files = gimp.appdata.xml.in
appdata_files = \
$(appdata_in_files:.appdata.xml.in=.appdata.xml) \
gimp-data-extras.metainfo.xml
appstream_in_files = gimp.appdata.xml.in gimp-data-extras.metainfo.xml.in
appstream_files = $(appstream_in_files:.xml.in=.xml)
if DESKTOP_DATADIR
......@@ -14,7 +12,7 @@ applicationsdir = $(DESKTOP_DATADIR)/applications
applications_DATA = $(desktop_files)
appdatadir = $(DESKTOP_DATADIR)/appdata
appdata_DATA = $(appdata_files)
appdata_DATA = $(appstream_files)
icons16dir = $(DESKTOP_DATADIR)/icons/hicolor/16x16/apps
icons16_DATA = 16x16/gimp.png
......@@ -42,19 +40,19 @@ install-data-hook:
endif
EXTRA_DIST = \
$(appdata_in_files) \
test-appdata.sh \
gimp.desktop.in.in \
16x16/gimp.png \
22x22/gimp.png \
24x24/gimp.png \
32x32/gimp.png \
48x48/gimp.png \
64x64/gimp.png \
$(appstream_in_files) \
test-appdata.sh \
gimp.desktop.in.in \
16x16/gimp.png \
22x22/gimp.png \
24x24/gimp.png \
32x32/gimp.png \
48x48/gimp.png \
64x64/gimp.png \
256x256/gimp.png
DISTCLEANFILES = $(desktop_files) $(appdata_files)
DISTCLEANFILES = $(desktop_files) $(appstream_files)
@INTLTOOL_XML_RULE@
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 Jiri Eischmann <eischmann@redhat.com>
-->
<component type="addon">
<id>gimp-data-extras</id>
<extends>gimp.desktop</extends>
<name>Extra files for GIMP</name>
<summary>Patterns, gradients, and other extra files for GIMP</summary>
<url type="homepage">http://www.gimp.org/</url>
<url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=GIMP</url>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<updatecontact>alexandre.prokoudine@gmail.com</updatecontact>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2015 Jiri Eischmann <eischmann@redhat.com> -->
<component type="addon">
<id>gimp-data-extras</id>
<extends>gimp.desktop</extends>
<_name>Extra files for GIMP</_name>
<_summary>Patterns, gradients, and other extra files for GIMP</_summary>
<url type="homepage">http://www.gimp.org/</url>
<url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=GIMP</url>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+</project_license>
<update_contact>alexandre.prokoudine@gmail.com</update_contact>
</component>
#!/bin/sh
appstream-util validate-strict ${GIMP_TESTING_ABS_TOP_SRCDIR}/desktop/gimp.appdata.xml.in
appstream-util validate-strict ${GIMP_TESTING_ABS_TOP_SRCDIR}/desktop/gimp-data-extras.metainfo.xml.in
......@@ -4,6 +4,7 @@
[encoding: UTF-8]
desktop/gimp.appdata.xml.in
desktop/gimp-data-extras.metainfo.xml.in
desktop/gimp.desktop.in.in
app/about.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment