[transmageddon] Try to make appdata translateable



commit 4d3d32fab6e2dd3c3f0205d80f68dc25494c9c92
Author: Christian Fredrik Kalager Schaller <uraeus linuxrising org>
Date:   Wed Jul 2 15:32:17 2014 +0200

    Try to make appdata translateable

 INSTALL                                            |    3 ++
 Makefile.am                                        |    3 ++
 appdata/Makefile.am                                |   15 ++++++++++--
 ...ageddon.xml.in => transmageddon.appdata.xml.in} |   24 ++++++++++----------
 configure.ac                                       |    5 ++-
 po/POTFILES.in                                     |    1 +
 transmageddon.spec.in                              |    2 +-
 7 files changed, 35 insertions(+), 18 deletions(-)
---
diff --git a/INSTALL b/INSTALL
index 4edb601..217c9be 100644
--- a/INSTALL
+++ b/INSTALL
@@ -13,3 +13,6 @@ pygobject: 2.18.0 or higher
 pycairo
 pygtk
 gst-python
+
+appdata-tools (https://github.com/hughsie/appdata-tools))
+intltool
diff --git a/Makefile.am b/Makefile.am
index 6ff1802..929cc57 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -49,6 +49,9 @@ EXTRA_DIST +=                    \
         intltool-update.in     \
        TODO
 
+DISTCHECK_CONFIGURE_FLAGS = \
+       --enable-appdata-check
+
 locale-uninstalled:
        if test -d po; then \
            $(MAKE) -C po datadir=../$(top_builddir) install; \
diff --git a/appdata/Makefile.am b/appdata/Makefile.am
old mode 100755
new mode 100644
index 3f2e7f2..9b9764d
--- a/appdata/Makefile.am
+++ b/appdata/Makefile.am
@@ -1,5 +1,14 @@
+#AppData
+ APPDATA_XML_RULES@
+ INTLTOOL_XML_RULE@
+
+appdata_in_files = transmageddon.appdata.xml.in
+appdata_XML = $(appdata_in_files:.xml.in=.xml)
+
+dist_noinst_DATA = \
+       $(appdata_in_files) 
+
+EXTRA_DIST = $(appdata_in_files)
+CLEANFILES = $(appdata_XML)
 
-appdatadir = $(datadir)/transmageddon/appdata
-appdata_DATA = transmageddon.xml
 
-EXTRA_DIST = transmageddon.xml
diff --git a/appdata/transmageddon.xml.in b/appdata/transmageddon.appdata.xml.in
similarity index 73%
rename from appdata/transmageddon.xml.in
rename to appdata/transmageddon.appdata.xml.in
index 646a88e..84289d0 100644
--- a/appdata/transmageddon.xml.in
+++ b/appdata/transmageddon.appdata.xml.in
@@ -6,22 +6,22 @@
  <name>Transmageddon Media Transcoder</name>
  <summary>Easy to use audio and video transcoding application</summary>
  <description>
-  <p>
+  <_p>
 Transmageddon is an application for converting audio and video files between different formats. It allows 
you to either manually choose the formats you want to convert between or alternatively you can choose a 
predefined target and the selections will be made for you. Transmageddon supports a very wide range for 
formats and can also optionally function as a DVD ripping tool.
-  </p>
-  <p>Feature list:</p>
+  </_p>
+  <_p>Feature list:</_p>
   <ul>
-   <li>Wide range of media codecs</li>
-   <li>Allows extracting audio or video streams separately</li>
-   <li>Alows ripping of DVD if needed software libraries are available</li>
-   <li>Supports named device presets</li>
-   <li>Lets you add language metadata if missing</li>
-   <li>Can change orientation of video if necesarry</li>
-   <li>Supports files with multiple audio streams</li>
+   <_li>Wide range of media codecs</_li>
+   <_li>Allows extracting audio or video streams separately</_li>
+   <_li>Alows ripping of DVD if needed software libraries are available</_li>
+   <_li>Supports named device presets</_li>
+   <_li>Lets you add language metadata if missing</_li>
+   <_li>Can change orientation of video if necesarry</_li>
+   <_li>Supports files with multiple audio streams</_li>
   </ul>
-  <p>
+  <_p>
 You might want to install this application if your need to convert media files between different formats due 
to for example having hardware that only supports a limited range of formats.
-  </p>
+  </_p>
  </description>
  <screenshots>
   <screenshot type="default" width="800" 
height="575">http://www.linuxrising.org/screenshots/en_US/transmageddon-appdata.png</screenshot>
diff --git a/configure.ac b/configure.ac
index 2b732a1..ae6ae5f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,8 @@ GETTEXT_PACKAGE="transmageddon"
 AC_SUBST([GETTEXT_PACKAGE])
 AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Gettext package])
 AM_GLIB_GNU_GETTEXT
-IT_PROG_INTLTOOL([0.35.0])
+IT_PROG_INTLTOOL([0.40.0])
+APPDATA_XML
 
 CONFIGURED_PYTHONPATH=$PYTHONPATH
 AC_SUBST(CONFIGURED_PYTHONPATH)
@@ -62,7 +63,7 @@ AC_CONFIG_FILES([bin/transmageddon], [chmod +x bin/transmageddon])
 dnl output stuff
 AC_CONFIG_FILES([
 Makefile
-appdata/transmageddon.xml
+appdata/transmageddon.appdata.xml
 appdata/Makefile
 bin/Makefile
 common/Makefile
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 0f8dd8c..e90373e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,5 @@
 transmageddon.desktop.in.in
+appdata/transmageddon.appdata.xml.in
 src/about.py.in
 src/dvdtrackchooser.py
 src/presets.py
diff --git a/transmageddon.spec.in b/transmageddon.spec.in
index 1e709a5..391578e 100644
--- a/transmageddon.spec.in
+++ b/transmageddon.spec.in
@@ -60,7 +60,7 @@ rm -rf %{buildroot}
 %{_datadir}/icons/hicolor/256x256/apps/transmageddon.png
 %{_datadir}/icons/hicolor/32x32/apps/transmageddon.png
 %{_datadir}/icons/hicolor/48x48/apps/transmageddon.png
-%{_datadir}/transmageddon/appdata/transmageddon.xml
+%{_datadir}/transmageddon/appdata/transmageddon.appdata.xml
 %{_datadir}/applications/transmageddon.desktop
 %{_datadir}/transmageddon/presets/*
 %{_datadir}/transmageddon/profiles/*


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]