[vlc-commits] AppStream: Mark .appdata.xml for translation

Dominique Leuenberger git at videolan.org
Wed Sep 7 15:21:00 CEST 2016


vlc | branch: master | Dominique Leuenberger <dimstar at opensuse.org> | Sun Sep  4 16:05:47 2016 +0200| [5a739e49d6e20a4ccfcf92721c9bb381a14f471e] | committer: Jean-Baptiste Kempf

AppStream: Mark .appdata.xml for translation

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a739e49d6e20a4ccfcf92721c9bb381a14f471e
---

 configure.ac                                        |  3 ++-
 po/POTFILES.in                                      |  1 +
 share/.gitignore                                    |  2 ++
 share/Makefile.am                                   | 10 +++++++---
 share/{vlc.appdata.xml.in => vlc.appdata.xml.in.in} |  0
 5 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5d93964..91b9315 100644
--- a/configure.ac
+++ b/configure.ac
@@ -493,7 +493,7 @@ AS_IF([test "${enable_shared}" = "no" -a "${enable_vlc}" != "no"], [
 dnl
 dnl Gettext stuff
 dnl
-AM_GNU_GETTEXT_VERSION([0.19.6])
+AM_GNU_GETTEXT_VERSION([0.19.7])
 AM_GNU_GETTEXT([external], [need-formatstring-macros])
 
 dnl
@@ -4255,6 +4255,7 @@ AC_CONFIG_FILES([
   modules/gui/qt/Makefile
   modules/gui/skins2/Makefile
   modules/hw/mmal/Makefile
+  share/vlc.appdata.xml.in
 ])
 
 AM_COND_IF([HAVE_WIN32], [
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 352ab03..757094b 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1192,6 +1192,7 @@ modules/visualization/visual/fft.h
 modules/visualization/visual/visual.c
 modules/visualization/visual/visual.h
 modules/visualization/vsxu.cpp
+share/vlc.appdata.xml
 share/lua/http/dialogs/batch_window.html
 share/lua/http/dialogs/browse_window.html
 share/lua/http/dialogs/create_stream.html
diff --git a/share/.gitignore b/share/.gitignore
index c3deb60..53ba52c 100644
--- a/share/.gitignore
+++ b/share/.gitignore
@@ -1 +1,3 @@
 vlc.desktop
+vlc.appdata.xml
+vlc.appdata.xml.in
diff --git a/share/Makefile.am b/share/Makefile.am
index b30d69c..a595ef3 100644
--- a/share/Makefile.am
+++ b/share/Makefile.am
@@ -8,8 +8,12 @@ if !HAVE_DARWIN
 desktop_DATA = vlc.desktop
 endif
 endif
+appdatadir = $(datarootdir)/appdata
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_in_files = vlc.appdata.xml.in
+
 EXTRA_DIST += vlc.desktop.in vlc.desktop.mimetypes
-CLEANFILES += $(desktop_DATA)
+CLEANFILES += $(desktop_DATA) $(appdata_DATA)
 
 vlc.desktop: vlc.desktop.in $(top_builddir)/config.status
 	$(AM_V_GEN)sed -e 's,\@bindir\@,$(bindir),g' < "$<" > tmp-$@
@@ -17,8 +21,8 @@ vlc.desktop: vlc.desktop.in $(top_builddir)/config.status
 	$(AM_V_at)$(DESKTOP_FILE_VALIDATE) tmp-$@
 	$(AM_V_at)mv -f tmp-$@ $@
 
-vlc.appdata.xml: vlc.appdata.xml.in $(top_builddir)/config.status
-	cd $(top_builddir) && $(SHELL) ./config.status --file=$(subdir)/$@
+vlc.appdata.xml: vlc.appdata.xml.in
+	$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
 
 iconsdatadir = $(datadir)/icons/hicolor
 icons16dir = $(iconsdatadir)/16x16/apps
diff --git a/share/vlc.appdata.xml.in b/share/vlc.appdata.xml.in.in
similarity index 100%
rename from share/vlc.appdata.xml.in
rename to share/vlc.appdata.xml.in.in



More information about the vlc-commits mailing list