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

Re: .desktop and translations



Hi all,

Thanks to Nelson for the translations, here are trilingual .desktop
files for the njplot and clustalw packages. Actually, what is attached
are patches, because dh_desktop has to be called from debian/rules,
usr/share/applications has to be created, and the .desktop files have to 
be copied there.

For clustalw, the patch also includes a fix for the menu files, which
lacked some quotes that now seem to be mandatory. This makes the binary
packages lintian-clean.

Clustalw can be run in interactive or non-interactive modes. There is
an entry in the debian menu which spawns a terminal running an
interactive clustalw session. But I am wondering if this makes sense to
add this in the GNOME/KDE menu, which indend to be more user-friendly.

Maybe an elegant solution would be to have a nice icon for Clustal X,
and a terminal icon for Clustal W. But as it is a default terminal which
is spawned, it would be strange that the icon does not match (one would
want a Konsole icon if it is a Konsole, and a xterm icon if it is an
xterm, isn't it ?)


Hav a nice day,

-- 
Charles
diff -ruN clustalw-1.83-orig/debian/clustalw.menu clustalw-1.83/debian/clustalw.menu
--- clustalw-1.83-orig/debian/clustalw.menu	2006-06-17 12:57:45.000000000 +0900
+++ clustalw-1.83/debian/clustalw.menu	2006-06-18 11:18:57.000000000 +0900
@@ -1,5 +1,5 @@
-?package(clustalw):needs=text\
-  section=Apps/Science\
+?package(clustalw):needs="text"\
+  section="Apps/Science"\
   title="ClutalW"\
   command="/usr/bin/clustalw"\
   hints="Global multiple nucleotide or peptide sequence alignment"
diff -ruN clustalw-1.83-orig/debian/clustalx.desktop clustalw-1.83/debian/clustalx.desktop
--- clustalw-1.83-orig/debian/clustalx.desktop	1970-01-01 09:00:00.000000000 +0900
+++ clustalw-1.83/debian/clustalx.desktop	2006-06-18 11:11:09.000000000 +0900
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Terminal=false
+Icon=clustalx
+Exec=clustalx
+Name=Clustal X
+GenericName=Alignment and phylogeny
+GenericName[en]=Alignment and phylogeny
+GenericName[fr]=Alignement et phylogénèse
+GenericName[pt_BR]=Alinhamento e filogenia
+Comment=Global multiple nucleotide or peptide sequence alignment and phyolgenetic analysis
+Comment[en]=Global multiple nucleotide or peptide sequence alignment and phylogenetic analysis
+Comment[fr]=Alignement global de séquences peptidiques ou nucléotidiques et analyse phylogénétique
+Comment[pt_BR]=Alinhamento global de sequências peptídicas ou nucleotídeos e análise filogenética
+Type=Application
+Categories=Biology;Science;Education;
+
diff -ruN clustalw-1.83-orig/debian/clustalx.dirs clustalw-1.83/debian/clustalx.dirs
--- clustalw-1.83-orig/debian/clustalx.dirs	1970-01-01 09:00:00.000000000 +0900
+++ clustalw-1.83/debian/clustalx.dirs	2006-06-18 11:08:00.000000000 +0900
@@ -0,0 +1 @@
+usr/share/applications
diff -ruN clustalw-1.83-orig/debian/clustalx.install clustalw-1.83/debian/clustalx.install
--- clustalw-1.83-orig/debian/clustalx.install	2006-06-17 12:57:45.000000000 +0900
+++ clustalw-1.83/debian/clustalx.install	2006-06-17 13:08:19.000000000 +0900
@@ -1,2 +1,4 @@
 clustalx usr/bin
 clustalx_help usr/share/clustalw
+debian/clustalx.desktop usr/share/applications
+
diff -ruN clustalw-1.83-orig/debian/clustalx.menu clustalw-1.83/debian/clustalx.menu
--- clustalw-1.83-orig/debian/clustalx.menu	2006-06-17 12:57:45.000000000 +0900
+++ clustalw-1.83/debian/clustalx.menu	2006-06-18 11:19:21.000000000 +0900
@@ -1,5 +1,5 @@
-?package(clustalx):needs=X11 \
-    section=Apps/Science \
+?package(clustalx):needs="X11" \
+    section="Apps/Science" \
     title="ClustalX" \
     command="/usr/bin/clustalx"\
     hints="GUI for clustalw"
diff -ruN clustalw-1.83-orig/debian/rules clustalw-1.83/debian/rules
--- clustalw-1.83-orig/debian/rules	2006-06-17 12:57:45.000000000 +0900
+++ clustalw-1.83/debian/rules	2006-06-17 13:32:47.000000000 +0900
@@ -40,6 +40,7 @@
 	dh_installdocs
 	dh_installexamples
 	dh_installmenu
+	dh_desktop
 	dh_installman
 	dh_installchangelogs
 	dh_strip
diff -ruN njplot-0.20051109-orig/debian/dirs njplot-0.20051109/debian/dirs
--- njplot-0.20051109-orig/debian/dirs	2006-06-16 22:35:31.000000000 +0900
+++ njplot-0.20051109/debian/dirs	2006-06-17 12:03:16.000000000 +0900
@@ -2,3 +2,5 @@
 usr/share/doc/njplot
 usr/share/njplot
 usr/share/man/man1
+usr/share/applications
+
diff -ruN njplot-0.20051109-orig/debian/install njplot-0.20051109/debian/install
--- njplot-0.20051109-orig/debian/install	2006-06-16 22:35:31.000000000 +0900
+++ njplot-0.20051109/debian/install	2006-06-17 12:05:12.000000000 +0900
@@ -1,2 +1,4 @@
 njplot unrooted newickto* add_root usr/bin
 debian/njplot.help                 usr/share/njplot
+debian/njplot.desktop		   usr/share/applications
+debian/unrooted.desktop		   usr/share/applications
diff -ruN njplot-0.20051109-orig/debian/njplot.desktop njplot-0.20051109/debian/njplot.desktop
--- njplot-0.20051109-orig/debian/njplot.desktop	1970-01-01 09:00:00.000000000 +0900
+++ njplot-0.20051109/debian/njplot.desktop	2006-06-18 11:36:20.000000000 +0900
@@ -0,0 +1,18 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Terminal=false
+Icon=njplot
+Exec=njplot
+Name=NJplot
+GenericName=Tree Plotter
+GenericName[en]=Tree Plotter
+GenericName[fr]=Traceur d'arbres
+GenericName[pt_BR]=Plotador de árvores
+Comment=Displays, modifies and exports in PostScript format phylogenetic trees
+Comment[en]=Displays, modifies and exports in PostScript format phylogenetic trees
+Comment[fr]=Affiche, modifie et exporte au format PostScript des arbres phyolgénétiques
+Comment[pt_BR]=Exibe, modifica e exporta em formato PostScript árvores filogenéticas
+Type=Application
+Categories=Biology;Science;Education;
+
diff -ruN njplot-0.20051109-orig/debian/rules njplot-0.20051109/debian/rules
--- njplot-0.20051109-orig/debian/rules	2006-06-16 22:35:31.000000000 +0900
+++ njplot-0.20051109/debian/rules	2006-06-17 12:09:35.000000000 +0900
@@ -42,6 +42,7 @@
 	dh_installdocs
 	dh_installexamples
 	dh_installmenu
+	dh_desktop
 	dh_installman
 	dh_link
 	dh_strip
diff -ruN njplot-0.20051109-orig/debian/unrooted.desktop njplot-0.20051109/debian/unrooted.desktop
--- njplot-0.20051109-orig/debian/unrooted.desktop	1970-01-01 09:00:00.000000000 +0900
+++ njplot-0.20051109/debian/unrooted.desktop	2006-06-18 11:36:35.000000000 +0900
@@ -0,0 +1,21 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Terminal=false
+Icon=unrooted
+Exec=unrooted
+Name=NJplot (unrooted)
+Name[en]=NJplot (unrooted)
+Name[fr]=NJplot (non enraciné)
+Name[pt_BR]=NJplot (não enraizado)
+GenericName=Tree Plotter
+GenericName[en]=Tree Plotter
+GenericName[fr]=Traceur d'arbres
+GenericName[pt_BR]=Plotador de árvores
+Comment=Displays and exports in PostScript format unrooted phylogenetic trees
+Comment[en]=Displays and exports in PostScript format unrooted phylogenetic trees
+Comment[fr]=Affiche et exporte au format PostScript des arbres phyolgénétiques non enracinés
+Comment[pt_BR]=Exibe e exporta em formato PostScript árvores filogenéticas não enraizadas
+Type=Application
+Categories=Biology;Science;Education;
+

Reply to: