Commit b9ad5d46 authored by Jehan's avatar Jehan

extensions, po-plug-ins: fix localization of extension metadata.

The metadata format being appdata, I simply use standard intltool
merging on the XML templates.
For Automake, I use a custom rule instead of INTLTOOL_XML_RULE because
the m4 macro hardcoded $(top_srcdir)/po as translation source directory
(yet we want to use po-plug-ins/ for these). Meson on the other side
already used a custom command.
parent e4dfd04a
Pipeline #220224 passed with stages
in 43 minutes and 7 seconds
......@@ -128,7 +128,10 @@ appstream_files = $(
appdatadir = $(goat_exercise_c_libexecdir)
appdata_DATA = $(appstream_files)
org.gimp.extension.goat-exercises.metainfo.xml: $(wildcard $(top_srcdir)/po-plug-ins/*.po)
$(INTLTOOL_MERGE) $(top_srcdir)/po-plug-ins $< $(@) -x -u -c $(top_builddir)/po-plug-ins/.intltool-merge-cache
.PHONY: org.gimp.extension.goat-exercises.metainfo.xml
goat-exercise-gjs.js \
......@@ -110,7 +110,7 @@ appdatafile = custom_target(appdatafilename,
output: [ appdatafilename, ],
command: [
po_plug_ins_dir = meson.current_source_dir()
i18n.gettext(gettext_package + '-std-plug-ins', preset: 'glib')
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