[gnome-color-manager] Translate the AppData file



commit ef7e852da777cf3b2893487aef6af362657a93be
Author: Richard Hughes <richard hughsie com>
Date:   Tue Sep 24 13:31:47 2013 +0100

    Translate the AppData file

 data/Makefile.am               |    5 ++++-
 data/gcm-viewer.appdata.xml    |   15 ++++-----------
 data/gcm-viewer.appdata.xml.in |   21 +++++++++++++++++++++
 po/POTFILES.in                 |    1 +
 4 files changed, 30 insertions(+), 12 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 7ce0dc0..dea6f4b 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -14,8 +14,10 @@ desktop_in_files =                                   \
        gcm-import.desktop.in
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
+ INTLTOOL_XML_NOMERGE_RULE@
 appdatadir = $(datadir)/appdata
-dist_appdata_DATA = gcm-viewer.appdata.xml
+dist_appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appdata_in_files = gcm-viewer.appdata.xml.in
 
 UI_FILES =                                             \
        gcm-picker.ui                                   \
@@ -23,6 +25,7 @@ UI_FILES =                                            \
 
 EXTRA_DIST =                                           \
        $(service_in_files)                             \
+       $(appdata_in_files)                             \
        $(autostart_in_files)                           \
        $(desktop_in_files)                             \
        $(UI_FILES)
diff --git a/data/gcm-viewer.appdata.xml b/data/gcm-viewer.appdata.xml
index 353588b..6d5f92a 100644
--- a/data/gcm-viewer.appdata.xml
+++ b/data/gcm-viewer.appdata.xml
@@ -3,19 +3,12 @@
   <id type="desktop">gcm-viewer.desktop</id>
   <licence>CC0</licence>
   <description>
-    <p>
-      GNOME Color Profile Viewer shows installed color profiles on your system
-      and allows you to calibrate displays, printers and cameras using a
-      wizard.
-    </p>
-    <p>
-      This application is typically used by GNOME Control Center from the color
-      panel although can be used on it's own.
-    </p>
+    <p>GNOME Color Profile Viewer shows installed color profiles on your system and allows you to calibrate 
displays, printers and cameras using a wizard.</p>
+    <p>This functionality is typically used by GNOME Control Center from the color panel although can be 
used on it's own.</p>
   </description>
   <screenshots>
-    <screenshot type="default" width="1033" 
height="452">https://projects.gnome.org/gnome-color-manager/images/gcm-viewer-cie.png</screenshot>
+    <screenshot width="1033" type="default" 
height="452">https://projects.gnome.org/gnome-color-manager/images/gcm-viewer-cie.png</screenshot>
   </screenshots>
   <url type="homepage">https://projects.gnome.org/gnome-color-manager/</url>
   <updatecontact>richard_at_hughsie.com</updatecontact>
-</application>
+</application>
\ No newline at end of file
diff --git a/data/gcm-viewer.appdata.xml.in b/data/gcm-viewer.appdata.xml.in
new file mode 100644
index 0000000..58d88f5
--- /dev/null
+++ b/data/gcm-viewer.appdata.xml.in
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+  <id type="desktop">gcm-viewer.desktop</id>
+  <licence>CC0</licence>
+  <description>
+    <_p>
+      GNOME Color Profile Viewer shows installed color profiles on your system
+      and allows you to calibrate displays, printers and cameras using a
+      wizard.
+    </_p>
+    <_p>
+      This functionality is typically used by GNOME Control Center from the color
+      panel although can be used on it's own.
+    </_p>
+  </description>
+  <screenshots>
+    <screenshot type="default" width="1033" 
height="452">https://projects.gnome.org/gnome-color-manager/images/gcm-viewer-cie.png</screenshot>
+  </screenshots>
+  <url type="homepage">https://projects.gnome.org/gnome-color-manager/</url>
+  <updatecontact>richard_at_hughsie.com</updatecontact>
+</application>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 3c617c0..21474ef 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -2,6 +2,7 @@ data/gcm-calibrate.desktop.in
 data/gcm-import.desktop.in
 data/gcm-picker.desktop.in
 [type: gettext/glade]data/gcm-picker.ui
+data/gcm-viewer.appdata.xml.in
 data/gcm-viewer.desktop.in
 [type: gettext/glade]data/gcm-viewer.ui
 src/gcm-calibrate-argyll.c


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