[gnome-calculator] Mark the AppData file to be translatable



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

    Mark the AppData file to be translatable

 data/Makefile.am                                   |    7 ++++++-
 ...appdata.xml => gnome-calculator.appdata.xml.in} |   16 ++++++++--------
 po/POTFILES.in                                     |    1 +
 3 files changed, 15 insertions(+), 9 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 22a0efe..63e64f3 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -7,8 +7,10 @@ Utilities_in_files = gcalctool.desktop.in
 Utilities_DATA = $(Utilities_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
 
+ INTLTOOL_XML_NOMERGE_RULE@
 appdatadir = $(datadir)/appdata
-dist_appdata_DATA = gnome-calculator.appdata.xml
+dist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_in_files = gnome-calculator.appdata.xml.in
 
 man1_MANS = gnome-calculator.1 gcalccmd.1
 
@@ -23,6 +25,9 @@ EXTRA_DIST = \
        gcalctool.desktop.in \
        $(man1_MANS)
 
+CLEANFILES = \
+       gnome-calculator.appdata.xml
+
 DISTCLEANFILES = \
        Makefile.in \
        gcalctool.desktop \
diff --git a/data/gnome-calculator.appdata.xml b/data/gnome-calculator.appdata.xml.in
similarity index 95%
rename from data/gnome-calculator.appdata.xml
rename to data/gnome-calculator.appdata.xml.in
index eef6940..b20794d 100644
--- a/data/gnome-calculator.appdata.xml
+++ b/data/gnome-calculator.appdata.xml.in
@@ -3,12 +3,12 @@
   <id type="desktop">gcalctool.desktop</id>
   <licence>CC0</licence>
   <description>
-    <p>
+    <_p>
       GNOME Calculator is an application that solves mathematical equations.  Though it at first appears to 
be a simple calculator with only basic arithmetic operations, you can switch into Advanced, Financial, or 
Programming mode to find a surprising set of capabilities.
-    </p>
-    <p>
+    </_p>
+    <_p>
       The Advanced calculator supports many operations, including:
-    </p>
+    </_p>
     <ul>
     <li>logarithms</li>
     <li>factorials</li>
@@ -19,12 +19,12 @@
     <li>prime factorization</li>
     <li>unit conversions (angle, length, area, volume, weight, duration, temperature, currency, and 
time)</li>
     </ul>
-    <p>
+    <_p>
       Financial mode supports several computations, including periodic interest rate, present and future 
value, double declining and straight line depreciation, and many others.
-    </p>
-    <p>
+    </_p>
+    <_p>
       Programming mode supports conversion between common bases (binary, octal, decimal, and hexadecimal), 
boolean algebra, one’s and two’s complementation, character to character code conversion, and more.
-    </p>
+    </_p>
   </description>
   <url type="homepage">https://wiki.gnome.org/Calculator</url>
   <screenshots>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 051771f..97f04b1 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -7,6 +7,7 @@
 [type: gettext/glade]data/buttons-programming.ui
 [type: gettext/glade]data/menu.ui
 data/gcalctool.desktop.in
+data/gnome-calculator.appdata.xml.in
 data/org.gnome.calculator.gschema.xml.in
 src/currency.vala
 src/equation-lexer.vala


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