[gnome-tweak-tool] Make Appdata file translatable



commit f869ae3fa2258ff33c3a40fa8adde03199556bc1
Author: Daniel Mustieles <daniel mustieles gmail com>
Date:   Tue Nov 26 10:17:14 2013 +0100

    Make Appdata file translatable

 data/Makefile.am                                   |   10 ++++++----
 ...appdata.xml => gnome-tweak-tool.appdata.xml.in} |    8 ++++----
 po/POTFILES.in                                     |    1 +
 3 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 2fa0720..8896dfa 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -10,14 +10,16 @@ desktopdir = $(datadir)/applications
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
+ INTLTOOL_XML_RULE@
 appdatadir = $(datadir)/appdata
-dist_appdata_DATA = gnome-tweak-tool.appdata.xml
+appdata_in_files = gnome-tweak-tool.appdata.xml.in
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
 
 EXTRA_DIST = \
-       gnome-tweak-tool.appdata.xml \
+       $(appdata_in_files) \
        $(gui_DATA) \
        $(desktop_in_files)
 
 CLEANFILES = \
-       $(desktop_DATA)
-
+       $(desktop_DATA) \
+       $(appdata_DATA)
diff --git a/data/gnome-tweak-tool.appdata.xml b/data/gnome-tweak-tool.appdata.xml.in
similarity index 95%
rename from data/gnome-tweak-tool.appdata.xml
rename to data/gnome-tweak-tool.appdata.xml.in
index 89473a8..00aab4d 100644
--- a/data/gnome-tweak-tool.appdata.xml
+++ b/data/gnome-tweak-tool.appdata.xml.in
@@ -3,13 +3,13 @@
  <id type="desktop">gnome-tweak-tool.desktop</id>
  <licence>CC0</licence>
  <description>
-   <p>
+   <_p>
      GNOME Tweak Tool allows adjusting advanced GNOME options.
-  </p>
-  <p>
+  </_p>
+  <_p>
     It can install and manage themes and extensions, change power settings,
     manage startup applications, and enable desktop icons among other settings.
-  </p>
+  </_p>
  </description>
  <screenshots>
     <screenshot 
type="default">https://wiki.gnome.org/GnomeTweakTool?action=AttachFile&amp;do=get&amp;target=UI.png</screenshot>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 94fa9d9..5318c21 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,4 +1,5 @@
 # List of source files which contain translatable strings.
+data/gnome-tweak-tool.appdata.xml.in
 data/gnome-tweak-tool.desktop.in
 [type: gettext/glade]data/shell.ui
 gtweak/app.py


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