[latexila] Make Appdata file translatable



commit 633ae2cf438038d59fcd80885f993b9997f3337a
Author: Alex Muñoz <amunoz src gnome org>
Date:   Thu Feb 6 14:15:40 2014 -0300

    Make Appdata file translatable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=715127

 data/Makefile.am                                   |   11 ++++++---
 ...atexila.appdata.xml => latexila.appdata.xml.in} |   22 ++++++++++----------
 po/POTFILES.in                                     |    1 +
 3 files changed, 19 insertions(+), 15 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 8794764..4314eea 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -8,19 +8,22 @@ desktopdir = $(datadir)/applications
 desktop_DATA = latexila.desktop
 @INTLTOOL_DESKTOP_RULE@
 
+ INTLTOOL_XML_RULE@
 appdatadir = $(datadir)/appdata
-dist_appdata_DATA = latexila.appdata.xml
+appdata_in_files = latexila.appdata.xml.in
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
 
 gsettings_SCHEMAS = org.gnome.latexila.gschema.xml
- INTLTOOL_XML_NOMERGE_RULE@
 @GSETTINGS_RULES@
 
 EXTRA_DIST =                                   \
        latexila.desktop.in                     \
-       org.gnome.latexila.gschema.xml.in.in
+       org.gnome.latexila.gschema.xml.in.in    \
+       $(appdata_in_files)
 
 CLEANFILES =                           \
        latexila.desktop                \
-       org.gnome.latexila.gschema.xml
+       org.gnome.latexila.gschema.xml  \
+       $(appdata_DATA)
 
 -include $(top_srcdir)/git.mk
diff --git a/data/latexila.appdata.xml b/data/latexila.appdata.xml.in
similarity index 59%
rename from data/latexila.appdata.xml
rename to data/latexila.appdata.xml.in
index b0a3432..bb9fc90 100644
--- a/data/latexila.appdata.xml
+++ b/data/latexila.appdata.xml.in
@@ -3,20 +3,20 @@
   <id type="desktop">latexila.desktop</id>
   <licence>CC0</licence>
   <description>
-    <p>
+    <_p>
       LaTeXila is an integrated LaTeX environment for the GNOME desktop.
       The main features:
-    </p>
+    </_p>
     <ul>
-      <li>Compile, convert and view a document in one click;</li>
-      <li>LaTeX commands completion;</li>
-      <li>Document structure to easily navigate in it;</li>
-      <li>Forward and backward search to switch between the .tex and the PDF;</li>
-      <li>Spell checking;</li>
-      <li>Lists of symbols (Greek letters, arrows, ...);</li>
-      <li>Templates for creating new documents;</li>
-      <li>Easy projects management;</li>
-      <li>Menus and toolbars with the principal LaTeX commands.</li>
+      <_li>Compile, convert and view a document in one click;</_li>
+      <_li>LaTeX commands completion;</_li>
+      <_li>Document structure to easily navigate in it;</_li>
+      <_li>Forward and backward search to switch between the .tex and the PDF;</_li>
+      <_li>Spell checking;</_li>
+      <_li>Lists of symbols (Greek letters, arrows, ...);</_li>
+      <_li>Templates for creating new documents;</_li>
+      <_li>Easy projects management;</_li>
+      <_li>Menus and toolbars with the principal LaTeX commands.</_li>
     </ul>
   </description>
   <screenshots>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 81e6c6c..c3b60f3 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -2,6 +2,7 @@
 # Please keep this file sorted alphabetically.
 [encoding: UTF-8]
 data/build_tools/build_tools.pot
+data/latexila.appdata.xml.in
 data/latexila.desktop.in.in
 data/org.gnome.latexila.gschema.xml.in.in
 data/templates/templates.pot


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