]> git.0d.be Git - empathy.git/commitdiff
Make Appdata file translatable
authorDaniel Mustieles <daniel.mustieles@gmail.com>
Wed, 16 Oct 2013 08:54:51 +0000 (10:54 +0200)
committerDaniel Mustieles <daniel.mustieles@gmail.com>
Wed, 16 Oct 2013 08:54:51 +0000 (10:54 +0200)
data/Makefile.am
data/empathy.appdata.xml [deleted file]
data/empathy.appdata.xml.in [new file with mode: 0644]
po/POTFILES.in

index a7bada5bf90c853dac69841bb53912e663a69910..14b8be7dcfa42d2af001a7d42ca843540c125a7e 100644 (file)
@@ -61,10 +61,12 @@ css_DATA = \
        $(NULL)
 
 appdatadir = $(datadir)/appdata
-appdata_files = empathy.appdata.xml
+appdata_in_files = empathy.appdata.xml.in
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+@INTLTOOL_XML_RULE@
 
 EXTRA_DIST =                           \
-       $(appdata_files) \
+       $(appdata_in_files)             \
        $(convert_DATA)                 \
        $(desktop_in_files)             \
        $(desktop_DATA)                 \
@@ -73,8 +75,11 @@ EXTRA_DIST =                                 \
        $(clientfile_DATA)              \
        $(servicefile_in_files)         \
        $(gsettings_SCHEMAS)            \
-       $(css_DATA)             \
+       $(css_DATA)                     \
        $(NULL)
+CLEANFILES = \
+       $(appdata_DATA)
+
 
 DISTCLEANFILES =               \
        $(desktop_DATA)         \
diff --git a/data/empathy.appdata.xml b/data/empathy.appdata.xml
deleted file mode 100644 (file)
index 52b18ec..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application>
-  <id type="desktop">empathy.desktop</id>
-  <licence>CC0</licence>
-  <description>
-    <p>
-      Empathy is the official instant messaging application of the GNOME desktop environment.  Empathy can connect to AIM, MSN, Jabber (including Facebook and Google Talk), IRC, and many other messaging networks. You can chat with text, make audio and video calls, or even transfer files, depending on what your contact’s chat application allows.
-    </p>
-    <p>
-      Empathy provides integrated messaging for the GNOME desktop, so you’ll never miss a message.  You can respond to your contacts without even having to open Empathy!
-    </p>
-  </description>
-  <url type="homepage">https://wiki.gnome.org/Empathy</url>
-  <screenshots>
-    <screenshot type="default">https://wiki.gnome.org/Empathy?action=AttachFile&amp;do=get&amp;target=empathy.png</screenshot>
-  </screenshots>
-  <updatecontact>telepathy@lists.freedesktop.org</updatecontact>
-</application>
diff --git a/data/empathy.appdata.xml.in b/data/empathy.appdata.xml.in
new file mode 100644 (file)
index 0000000..0d655f4
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+  <id type="desktop">empathy.desktop</id>
+  <licence>CC0</licence>
+  <description>
+    <_p>
+      Empathy is the official instant messaging application of the GNOME desktop environment.  Empathy can connect to AIM, MSN, Jabber (including Facebook and Google Talk), IRC, and many other messaging networks. You can chat with text, make audio and video calls, or even transfer files, depending on what your contact’s chat application allows.
+    </_p>
+    <_p>
+      Empathy provides integrated messaging for the GNOME desktop, so you’ll never miss a message.  You can respond to your contacts without even having to open Empathy!
+    </_p>
+  </description>
+  <url type="homepage">https://wiki.gnome.org/Empathy</url>
+  <screenshots>
+    <screenshot type="default">https://wiki.gnome.org/Empathy?action=AttachFile&amp;do=get&amp;target=empathy.png</screenshot>
+  </screenshots>
+  <updatecontact>telepathy@lists.freedesktop.org</updatecontact>
+</application>
index 431b4ed5bdd4f27cb37c41c0af0981024498d748..d45cfc979ded0794d452ccf865a37d2a1e71c42f 100644 (file)
@@ -2,6 +2,7 @@
 # Please keep this file sorted alphabetically.
 
 data/empathy.desktop.in.in
+data/empathy.appdata.xml.in
 [type: gettext/gsettings]data/org.gnome.Empathy.gschema.xml
 
 libempathy/empathy-ft-handler.c