[gedit] Mark the AppData file to be translatable



commit b4582a2651bee042ebcfc4ed7cb8a9d4b3b2eaa9
Author: Richard Hughes <richard hughsie com>
Date:   Wed Sep 25 16:28:25 2013 +0100

    Mark the AppData file to be translatable

 data/Makefile.am                                 |    5 ++++-
 data/{gedit.appdata.xml => gedit.appdata.xml.in} |   12 ++++++------
 po/POTFILES.in                                   |    1 +
 3 files changed, 11 insertions(+), 7 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 1db1f6a..1298d2c 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -3,8 +3,10 @@ desktop_in_files = gedit.desktop.in
 desktop_DATA    = $(desktop_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
+ INTLTOOL_XML_NOMERGE_RULE@
 appdatadir = $(datadir)/appdata
-appdata_DATA = gedit.appdata.xml
+dist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_in_files = gedit.appdata.xml.in
 
 servicedir = $(datadir)/dbus-1/services
 service_in_files = org.gnome.gedit.service.in
@@ -54,6 +56,7 @@ EXTRA_DIST =                                  \
        gedit-osx.gschema.override
 
 CLEANFILES =                           \
+       gedit.appdata.xml               \
        $(desktop_DATA)                 \
        $(service_DATA)                 \
        $(pkgconfig_DATA)               \
diff --git a/data/gedit.appdata.xml b/data/gedit.appdata.xml.in
similarity index 94%
rename from data/gedit.appdata.xml
rename to data/gedit.appdata.xml.in
index ecdb28e..6f8699b 100644
--- a/data/gedit.appdata.xml
+++ b/data/gedit.appdata.xml.in
@@ -3,20 +3,20 @@
   <id type="desktop">gedit.desktop</id>
   <licence>CC0</licence>
   <description>
-    <p>
+    <_p>
       gedit is the official text editor of the GNOME desktop environment.
       While aiming at simplicity and ease of use, gedit is a powerful general
       purpose text editor.
-    </p>
-    <p>
+    </_p>
+    <_p>
       Whether you are writing the next bestseller, programming an innovative
       application, or simply taking some quick notes, gedit will be a reliable
       tool to accomplish your task.
-    </p>
-    <p>
+    </_p>
+    <_p>
       Its flexible plugin system allows you to tailor the application to your
       needs and adapt it to your workflow.
-    </p>
+    </_p>
   </description>
   <screenshots>
     <screenshot type="default">https://projects.gnome.org/gedit/images/gedit1.png</screenshot>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 620c764..551e93b 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,7 @@
 # List of source files containing translatable strings.
 # Please keep this file sorted alphabetically.
 [encoding: UTF-8]
+data/gedit.appdata.xml.in
 data/gedit.desktop.in.in
 data/org.gnome.gedit.gschema.xml.in.in
 gedit/gedit-app.c


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