[gnome-system-monitor] Appdata xml made translatable



commit 5d9ece725392ffeb488c6749c1c911a1854660ed
Author: Robert Roth <robert roth off gmail com>
Date:   Tue Sep 17 02:07:41 2013 +0300

    Appdata xml made translatable

 .gitignore                                         |    1 +
 Makefile.am                                        |   11 +++++++----
 ...data.xml => gnome-system-monitor.appdata.xml.in |   19 +++++++++++++------
 po/POTFILES.in                                     |    1 +
 4 files changed, 22 insertions(+), 10 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index b603b58..fcdd6eb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,6 +17,7 @@ depcomp
 gnome-doc-utils.make
 gnome-system-monitor.desktop
 gnome-system-monitor.desktop.in
+gnome-system-monitor.appdata.xml
 gnome-system-monitor-kde.desktop
 gnome-system-monitor-kde.desktop.in
 help/Makefile
diff --git a/Makefile.am b/Makefile.am
index dc4ccf3..d371375 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -11,9 +11,6 @@ ui_files = \
        data/interface.ui \
        data/menus.ui
 
-appdatadir = $(datadir)/appdata
-appdata_DATA = gnome-system-monitor.appdata.xml
-
 css_files = \
        data/gsm.css
 
@@ -31,7 +28,7 @@ org.gnome.gnome-system-monitor.policy.in: org.gnome.gnome-system-monitor.policy.
 EXTRA_DIST = \
        $(ui_files) \
        $(css_files) \
-       $(appdata_DATA) \
+       $(appdata_in_files) \
        $(pixmap_files) \
        $(runnable_SCRIPTS) \
        org.gnome.gnome-system-monitor.policy.in.in \
@@ -50,7 +47,12 @@ polkit_policy_DATA = $(polkit_policy_in_files:.policy.in=.policy)
 Applicationsdir = $(datadir)/applications
 Applications_in_files = gnome-system-monitor.desktop.in gnome-system-monitor-kde.desktop.in
 Applications_DATA = $(Applications_in_files:.desktop.in=.desktop)
+
+appdatadir = $(datadir)/appdata
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_in_files = gnome-system-monitor.appdata.xml.in
 @INTLTOOL_DESKTOP_RULE@
+ INTLTOOL_XML_NOMERGE_RULE@
 
 distuninstallcheck_listfiles = find . -type f -print | grep -v 'scrollkeeper'
 
@@ -79,6 +81,7 @@ DISTCLEANFILES = \
        intltool-extract              \
        intltool-merge                \
        intltool-update               \
+    $(appdata_DATA) \
        gnome-system-monitor.desktop  \
        gnome-system-monitor-kde.desktop  \
        org.gnome.gnome-system-monitor.policy \
diff --git a/gnome-system-monitor.appdata.xml b/gnome-system-monitor.appdata.xml.in
similarity index 65%
rename from gnome-system-monitor.appdata.xml
rename to gnome-system-monitor.appdata.xml.in
index 1eb0a57..384f523 100644
--- a/gnome-system-monitor.appdata.xml
+++ b/gnome-system-monitor.appdata.xml.in
@@ -2,22 +2,29 @@
 <application>
   <id type="desktop">gnome-system-monitor.desktop</id>
   <licence>CC0</licence>
+  <_name>GNOME System Monitor</_name>
+  <_summary>View and manage system resources</_summary>
   <description>
-    <p>
+    <_p>
       System Monitor is a process viewer and system monitor with
       an attractive, easy-to-use interface. 
-    </p>
-    <p>
+    </_p>
+    <_p>
       System Monitor can help you find out what applications are using the processor
       or the memory of your computer, can manage the running applications, force
       stop processes not responding, and change the state or priority of existing 
       processes.
-    </p>
-    <p>
+    </_p>
+    <_p>
       The resource graphs feature shows you a quick overview of what is going on with your
       computer displaying recent network, memory and processor usage.
-    </p>
+    </_p>
   </description>
+  <screenshots>
+    <screenshot type="default" width="881" 
height="613"><![CDATA[https://wiki.gnome.org/SystemMonitor?action=AttachFile&do=get&target=System+Monitor.png]]></screenshot>
+  </screenshots>
+  <url type="homepage">https://wiki.gnome.org/SystemMonitor</url>
   <updatecontact>robert.roth.off_at_gmail.com</updatecontact>
 </application>
 
+
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 616c9d5..057eeea 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -3,6 +3,7 @@
 # Please keep this file sorted alphabetically.
 gnome-system-monitor.desktop.in.in
 gnome-system-monitor-kde.desktop.in.in
+gnome-system-monitor.appdata.xml.in
 org.gnome.gnome-system-monitor.policy.in.in
 [type: gettext/glade]data/interface.ui
 [type: gettext/glade]data/lsof.ui


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