[giggle] Add support for translation of giggle.desktop file
- From: Javier Jardón Cabezas <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle] Add support for translation of giggle.desktop file
- Date: Tue, 22 Dec 2015 14:46:29 +0000 (UTC)
commit 627f5b8cad3cdc52b489412448c8cfbe551bd0d5
Author: Javier Jardón <jjardon gnome org>
Date: Tue Dec 22 14:09:47 2015 +0000
Add support for translation of giggle.desktop file
data/Makefile.am | 18 ++++++++++++++++--
data/{giggle.desktop => giggle.desktop.in.in} | 2 +-
po/POTFILES.in | 1 +
3 files changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index e0fc83a..c101252 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -2,12 +2,26 @@ gladedir = $(datadir)/giggle/glade
dist_glade_DATA = \
main-window.ui
-desktop_DATA=giggle.desktop
desktopdir=$(datadir)/applications
+desktop_DATA=giggle.desktop
+
+giggle.desktop.in: giggle.desktop.in.in
+ $(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
+
+giggle.desktop: giggle.desktop.in
+ $(AM_V_GEN) sed -e 's|@bindir[ ]|$(bindir)|g' $< > $@
+
appdatadir = $(datadir)/appdata
appdata_DATA = giggle.appdata.xml
+
+CLEANFILES = \
+ $(desktop_DATA)
+
EXTRA_DIST= \
- $(desktop_DATA) \
+ giggle.desktop.in.in \
+ giggle.desktop.in \
$(appdata_DATA)
+
+MAINTAINERCLEANFILES = giggle.desktop.in
diff --git a/data/giggle.desktop b/data/giggle.desktop.in.in
similarity index 87%
rename from data/giggle.desktop
rename to data/giggle.desktop.in.in
index 958e110..dbe3758 100644
--- a/data/giggle.desktop
+++ b/data/giggle.desktop.in.in
@@ -2,7 +2,7 @@
Version=1.0
Type=Application
Name=Giggle
-Exec=giggle %F
+Exec= bindir@/giggle %F
Icon=giggle
StartupNotify=true
Categories=GTK;Development;RevisionControl;
diff --git a/po/POTFILES.in b/po/POTFILES.in
index cd144ea..2e5c5ee 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,3 +1,4 @@
+data/giggle.desktop.in.in
data/main-window.ui
libgiggle/giggle-plugin.c
plugins/hello-world.ui
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]