[longomatch] Use intltool to translate the desktop file



commit ba7333e2577bd9713145655ebc6639f25089b4d6
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Jan 24 19:36:02 2010 +0100

    Use intltool to translate the desktop file

 LongoMatch/Makefile.am              |   14 ++++++++------
 LongoMatch/longomatch.desktop.in    |    9 ---------
 LongoMatch/longomatch.desktop.in.in |   15 +++++++++++++++
 configure.ac                        |    2 +-
 4 files changed, 24 insertions(+), 16 deletions(-)
---
diff --git a/LongoMatch/Makefile.am b/LongoMatch/Makefile.am
index 9198029..88f8083 100644
--- a/LongoMatch/Makefile.am
+++ b/LongoMatch/Makefile.am
@@ -1,7 +1,13 @@
 
-EXTRA_DIST =  
+EXTRA_DIST = \
+	$(desktop_in_files)
+
+
+ INTLTOOL_DESKTOP_RULE@
+desktopdir = $(datadir)/applications
+desktop_in_files = longomatch.desktop.in
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
-# Warning: This is an automatically generated file, do not edit!
 
 if ENABLE_DEBUG
 ASSEMBLY_COMPILER_COMMAND = $(CSC)
@@ -19,7 +25,6 @@ CESARPLAYER_DLL_MDB=$(BUILD_DIR)/CesarPlayer.dll.mdb
 LONGOMATCH_PNG_SOURCE=images/longomatch.png
 LONGOMATCH_EXE_MDB_SOURCE=bin/Debug/LongoMatch.exe.mdb
 LONGOMATCH_EXE_MDB = $(BUILD_DIR)/LongoMatch.exe.mdb
-LONGOMATCH_DESKTOP_SOURCE=longomatch.desktop
 BACKGROUND_PNG_SOURCE=images/background.png
 
 endif
@@ -39,7 +44,6 @@ LONGOMATCH_PNG_SOURCE=images/longomatch.png
 LONGOMATCH_LOGO_SOURCE=images/logo_48x48.png
 LONGOMATCH_EXE_MDB_SOURCE=
 LONGOMATCH_EXE_MDB = 
-LONGOMATCH_DESKTOP_SOURCE=longomatch.desktop
 CESARPLAYER_DLL_MDB_SOURCE=
 CESARPLAYER_DLL_MDB=
 BACKGROUND_PNG_SOURCE=images/background.png
@@ -228,7 +232,6 @@ EXTRAS = \
 	images/longomatch.png\
 	images/background.png\
 	images/logo_48x48.png \
-	longomatch.desktop\
 	longomatch.in\
 	AssemblyInfo.cs.in
 
@@ -250,7 +253,6 @@ include $(top_srcdir)/Makefile.include
 LONGOMATCH_PNG = $(BUILD_DIR)/images/longomatch.png
 LONGOMATCH_LOGO = $(BUILD_DIR)/icons/hicolor/48x48/apps/longomatch.png
 LONGOMATCH = $(BUILD_DIR)/longomatch
-LONGOMATCH_DESKTOP = $(BUILD_DIR)/longomatch.desktop
 BACKGROUND_PNG = $(BUILD_DIR)/images/background.png
 
 $(eval $(call emit-deploy-target,CESARPLAYER_DLL))
diff --git a/LongoMatch/longomatch.desktop.in.in b/LongoMatch/longomatch.desktop.in.in
new file mode 100644
index 0000000..088af92
--- /dev/null
+++ b/LongoMatch/longomatch.desktop.in.in
@@ -0,0 +1,15 @@
+[Desktop Entry]
+Version=1.0
+_Name=LongoMatch
+_X-GNOME-FullName=LongoMatch: The Digital Coach
+Type=Application
+Exec=longomatch
+Terminal=false
+Categories=Video;AudioVideo;Player;AudioVideoEditing;Recorder;Sports; 
+Icon=longomatch
+_Comment=Sports video analysis tool for coaches
+X-GNOME-Bugzilla-Bugzilla=GNOME
+X-GNOME-Bugzilla-Product=longomatch
+X-GNOME-Bugzilla-Component=general
+X-GNOME-Bugzilla-Version= VERSION@
+
diff --git a/configure.ac b/configure.ac
index d4adc2e..9b7c540 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,7 +124,7 @@ Makefile
 CesarPlayer/cesarplayer.pc
 CesarPlayer/CesarPlayer.dll.config
 LongoMatch/longomatch
-LongoMatch/longomatch.desktop
+LongoMatch/longomatch.desktop.in
 LongoMatch/AssemblyInfo.cs
 CesarPlayer/AssemblyInfo.cs
 ])



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