[balsa/wip/gmime3: 55/197] Use Autotools magic to make appdata translatable



commit f076f48a175418bd2761bccf15059db0fd1d488f
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Aug 19 18:05:40 2017 -0400

    Use Autotools magic to make appdata translatable
    
    * .gitignore: add balsa.appdata.xml
    * balsa.appdata.xml.in: new file
    * Makefile.am: use it
    * po/POTFILES.in: include it

 .gitignore           |    1 +
 Makefile.am          |   10 ++++++++--
 balsa.appdata.xml.in |   22 ++++++++++++++++++++++
 po/POTFILES.in       |    2 +-
 4 files changed, 32 insertions(+), 3 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b5ba472..4c3811e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,6 +21,7 @@ autom4te.cache/
 balsa-mailto-handler.desktop
 balsa-mailto-handler.desktop.in
 balsa.1
+balsa.appdata.xml
 balsa.desktop
 balsa.desktop.in
 balsa.spec
diff --git a/Makefile.am b/Makefile.am
index 09285f9..0123181 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,10 +12,15 @@ desktopdir = $(datadir)/applications
 desktop_in_files = balsa.desktop.in balsa-mailto-handler.desktop.in
 desktop_DATA = balsa.desktop balsa-mailto-handler.desktop
 
+@INTLTOOL_DESKTOP_RULE@
+
+# Appdata files
+
 appdatadir = $(datarootdir)/appdata
+appdata_in_files = balsa.appdata.xml.in
 dist_appdata_DATA = balsa.appdata.xml
 
-@INTLTOOL_DESKTOP_RULE@
+@INTLTOOL_XML_RULE@
 
 balsa_extra_dist =             \
        HACKING                 \
@@ -28,6 +33,7 @@ balsa_extra_dist =            \
        docs/pine2vcard         \
        docs/vconvert.awk       \
        $(desktop_in_files)     \
+       $(appdata_in_files)     \
        gnome-balsa2.png        \
        intltool-extract.in     \
        intltool-merge.in       \
@@ -42,7 +48,7 @@ gtksourceview_DATA = balsa-mail.lang          \
        balsa-mail-style.xml
 endif
 
-DISTCLEANFILES = $(desktop_DATA) $(server_DATA) \
+DISTCLEANFILES = $(desktop_DATA) $(server_DATA) $(dist_appdata_DATA) \
        intltool-extract intltool-merge intltool-update
 
 
diff --git a/balsa.appdata.xml.in b/balsa.appdata.xml.in
new file mode 100644
index 0000000..f71538e
--- /dev/null
+++ b/balsa.appdata.xml.in
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2015 The Balsa developers -->
+<component type="desktop">
+    <id>balsa.desktop</id>
+    <metadata_licence>CC0-1.0</metadata_licence>
+    <description>
+        <_p>Balsa is a graphical mail client. While it is in active development,
+            Balsa has many features such as:</_p>
+        <ul>
+            <_li>IMAP and POP3 support;</_li>
+            <_li>sendmail or direct SMTP support;</_li>
+            <_li>optional multi-threaded retrieval and sending of messages;</_li>
+            <_li>support for all configurations of local mail folders;</_li>
+            <_li>automatic mail checking;</_li>
+            <_li>mail printing;</_li>
+            <_li>inline attachment viewing;</_li>
+        </ul>
+        <_p>and the proverbial much, much more.</_p>
+    </description>
+    <url type="homepage">http://pawsa.fedorapeople.org/balsa/</url>
+    <updatecontact>balsa-list_at_gnome.org</updatecontact>
+</component>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 8b6776d..76931ec 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,7 +1,7 @@
 [encoding: UTF-8]
 # List of source files containing translatable strings.
 # Please keep this list in alphabetical order.
-balsa.appdata.xml
+balsa.appdata.xml.in
 balsa.desktop.in.in
 balsa-mailto-handler.desktop.in.in
 libbalsa/address-book.c


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