[gnome-power-manager] Translate the AppData file



commit cefead0b500b5e6d9fe2241f66852cf2878a0239
Author: Richard Hughes <richard hughsie com>
Date:   Tue Sep 24 13:55:30 2013 +0100

    Translate the AppData file

 data/Makefile.am                                   |    5 ++++-
 ...a.xml => gnome-power-statistics.appdata.xml.in} |    8 ++++----
 po/POTFILES.in                                     |    1 +
 3 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 4440f6d..0c45322 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -5,8 +5,10 @@ desktopdir = $(datadir)/applications
 desktop_in_files = gnome-power-statistics.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
+ INTLTOOL_XML_NOMERGE_RULE@
 appdatadir = $(datadir)/appdata
-dist_appdata_DATA = gnome-power-statistics.appdata.xml
+dist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_in_files = gnome-power-statistics.appdata.xml.in
 
 @GSETTINGS_RULES@
 @INTLTOOL_XML_NOMERGE_RULE@
@@ -18,6 +20,7 @@ UI_FILES =                                            \
 
 EXTRA_DIST =                                           \
        $(gsettings_SCHEMAS)                            \
+       $(appdata_in_files)                             \
        $(desktop_in_files)                             \
        $(gsettings_schemas_in_files)                   \
        $(UI_FILES)
diff --git a/data/gnome-power-statistics.appdata.xml b/data/gnome-power-statistics.appdata.xml.in
similarity index 95%
rename from data/gnome-power-statistics.appdata.xml
rename to data/gnome-power-statistics.appdata.xml.in
index 5f3d47c..5788c34 100644
--- a/data/gnome-power-statistics.appdata.xml
+++ b/data/gnome-power-statistics.appdata.xml.in
@@ -3,15 +3,15 @@
   <id type="desktop">gnome-power-statistics.desktop</id>
   <licence>CC0</licence>
   <description>
-    <p>
+    <_p>
       Power Statistics can show historical and current battery information and
       programs waking up that use power.
-    </p>
-    <p>
+    </_p>
+    <_p>
       You probably only need to install this application if you are having
       problems with your laptop battery, or are trying to work out what programs
       are using significant amounts of power.
-    </p>
+    </_p>
   </description>
   <screenshots>
     <screenshot type="default" width="335" 
height="134">https://projects.gnome.org/gnome-power-manager/images/gpm-low-batt.png</screenshot>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b5a7195..d059279 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -2,6 +2,7 @@
 # List of source files containing translatable strings.
 # Please keep this file sorted alphabetically.
 data/org.gnome.power-manager.gschema.xml.in
+data/gnome-power-statistics.appdata.xml.in
 data/gnome-power-statistics.desktop.in.in
 [type: gettext/glade]data/gpm-statistics.ui
 src/gpm-graph-widget.c


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