The attached patch should make the desktop and appdata files translateable.
Please check the patch as I'm not 100% sure it works as expected.

Regards
Cristian
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 9532da2..bd561e4 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -14,3 +14,5 @@ src/frontend/entangle-dpms.c
 src/frontend/entangle-preferences-display.c
 [type: gettext/glade] src/frontend/entangle-preferences-display.ui
 src/frontend/entangle-window.c
+src/entangle.appdata.xml.in
+src/entangle.desktop.in
diff --git a/src/Makefile.am b/src/Makefile.am
index b60fb5b..ac96624 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -22,7 +22,8 @@ desktop_DATA_IN = entangle.desktop.in
 desktop_DATA = entangle.desktop
 
 appdatadir = $(datadir)/appdata
-appdata_DATA = entangle.appdata.xml
+appdata_in_files = entangle.appdata.xml.in
+appdata_DATA = $(appdata_in_files:.xml.in=.xml)
 
 icondir = $(pkgdatadir)
 icon_DATA = $(PACKAGE).svg $(wildcard *.png)
@@ -268,7 +269,7 @@ frontend/entangle-image-display-enums.h: frontend/entangle-image-display.h Makef
                         --eprod "GType @enum_name@_get_type (void);\n" \
                 $< >  $@
 
-CLEANFILES = *~ $(desktop_DATA) $(BUILT_SOURCES)
+CLEANFILES = *~ $(desktop_DATA) $(BUILT_SOURCES) entangle.appdata.xml.in
 
 install-data-local:
 	$(MKDIR_P) $(DESTDIR)$(libdir)/entangle/plugins
diff --git a/src/entangle.appdata.xml b/src/entangle.appdata.xml
deleted file mode 100644
index c45d4f1..0000000
--- a/src/entangle.appdata.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<application>
-  <id type="desktop">entangle.desktop</id>
-  <licence>CC0</licence>
-  <name>Entangle</name>
-  <summary>Tethered Camera Control &amp; Capture</summary>
-  <description>
-    <p>
-      Entangle is a program used to control digital cameras
-      that are connected to the computer via USB.
-    </p>
-    <p>
-      Entangle can trigger the camera shutter to capture new images.
-      When supported by the camera, a continuously updating preview
-      of the scene can be displayed prior to capture. Images will be
-      downloaded and displayed as they are captured by the camera.
-      Entangle also allows the settings of the camera to be changed
-      from the computer.
-    </p>
-    <p>
-      Entangle is compatible with most DSLR cameras from Nikon and
-      Canon, some of their compact camera models, and a variety of
-      cameras from other manufacturers.
-    </p>
-  </description>
-  <screenshots>
-    <screenshot type="default">http://entangle-photo.org/appdata/en_US/screenshots/camera-manager.png</screenshot>
-  </screenshots>
-  <url type="homepage">http://entangle-photo.org/</url>
-  <updatecontact>entangle-devel_at_gna_dot_org</updatecontact>
-</application>
diff --git a/src/entangle.appdata.xml.in b/src/entangle.appdata.xml.in
new file mode 100644
index 0000000..84815cb
--- /dev/null
+++ b/src/entangle.appdata.xml.in
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+  <id type="desktop">entangle.desktop</id>
+  <licence>CC0</licence>
+  <name>Entangle</name>
+  <_summary>Tethered Camera Control &amp; Capture</_summary>
+  <description>
+    <_p>
+      Entangle is a program used to control digital cameras
+      that are connected to the computer via USB.
+    </_p>
+    <_p>
+      Entangle can trigger the camera shutter to capture new images.
+      When supported by the camera, a continuously updating preview
+      of the scene can be displayed prior to capture. Images will be
+      downloaded and displayed as they are captured by the camera.
+      Entangle also allows the settings of the camera to be changed
+      from the computer.
+    </_p>
+    <_p>
+      Entangle is compatible with most DSLR cameras from Nikon and
+      Canon, some of their compact camera models, and a variety of
+      cameras from other manufacturers.
+    </_p>
+  </description>
+  <screenshots>
+    <screenshot type="default">http://entangle-photo.org/appdata/en_US/screenshots/camera-manager.png</screenshot>
+  </screenshots>
+  <url type="homepage">http://entangle-photo.org/</url>
+  <updatecontact>entangle-devel_at_gna_dot_org</updatecontact>
+</application>
diff --git a/src/entangle.desktop.in b/src/entangle.desktop.in
index 37f78a4..99e0d4b 100644
--- a/src/entangle.desktop.in
+++ b/src/entangle.desktop.in
@@ -1,7 +1,7 @@
 [Desktop Entry]
 Version=1.0
-Name=Entangle
-Comment=Tethered Camera Control & Capture
+_Name=Entangle
+_Comment=Tethered Camera Control & Capture
 Icon=::DATADIR::/entangle/entangle.svg
 Exec=entangle
 Type=Application
_______________________________________________
Entangle-devel mailing list
Entangle-devel@gna.org
https://mail.gna.org/listinfo/entangle-devel

Reply via email to