aboutsummaryrefslogtreecommitdiffstats
path: root/gnome/mandrake.links.sh
blob: 3299a91b842fbdd7c8621371b0ba4b4c88f4a741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#!/bin/bash

if [ -n "$LANGUAGE" ]; then
	LISTLANG="`echo $LANGUAGE | tr ':' ' '`" ;
else
	if [ -n "$LANG" ]; then
		LISTLANG="$LANG"
	else
		LISTLANG=en
	fi
fi

###################
# Internet connex #
###################
CAPTION=""
for i in $LISTLANG
do
	if [ "$CAPTION" != "" ]; then break ; fi
	case "$i" in
		en*) CAPTION="Internet connection" ;;
		bg*) CAPTION="Èíòåðíåò Âðúçêà" ;;
		ca*) CAPTION="Connexió a Internet" ;;
		da*) CAPTION="Internet forbindelse" ;;
		es*) CAPTION="Conexión a Internet" ;;
		et*) CAPTION="Internetiühendus" ;;
		fr*) CAPTION="Connexion à l'Internet" ;;
		gl*) CAPTION="Conexión a Internet" ;;
		hr*) CAPTION="Veza s InterNetom" ;;
		hu*) CAPTION="Internet kapcsolat" ;;
		id*) CAPTION="Koneksi Internet" ;;
		it*) CAPTION="Connessione a Internet" ;;
		nl*) CAPTION="Internet verbinding" ;;
		no*) CAPTION="Oppkobling Internett" ;;
		ro*) CAPTION="Conectare la Internet" ;;
		ru*) CAPTION="Internet-ÓÏÅÄÉÎÅÎÉÅ" ;;
		uk*) CAPTION="ú'¤ÄÎÁÎÎÑ Ú ¦ÎÔÅÒÎÅÔÏÍ" ;;
		wa*) CAPTION="Raloyaedje al rantoele daegnrece" ;;
	esac
done
if [ "$CAPTION" = "" ]; then CAPTION="Internet connection" ; fi

/usr/bin/gdesktoplnk \
	--progname="/usr/bin/gnome-ppp" \
	--icon-name="gnome-networktool.png" \
	--icon-caption="$CAPTION" \
	--link-name="MDKppp" \
	--desktop-dir="$HOME/.gnome-desktop"

###################
# Mandrake Update #
###################
CAPTION=""
for i in $LISTLANG
do
	if [ "$CAPTION" != "" ]; then break ; fi
	case "$i" in
		en*) CAPTION="Mandrake Updates" ;;
		bg*) CAPTION="Mandrake Îáíîâÿâàíå" ;;
		br*) CAPTION="Hizivadurioù Mandrake" ;;
		ca*) CAPTION="Actualitzacions del Mandrake" ;;
		cs*) CAPTION="Aktualizace Mandrake" ;;
		da*) CAPTION="Mandrake Opdateringer" ;;
		de*) CAPTION="Mandrake Updates" ;;
		es*) CAPTION="Actualizaciones de Mandrake" ;;
		et*) CAPTION="Mandrake parandused" ;;
		fr*) CAPTION="Mises à jour de Mandrake" ;;
		ga*) CAPTION="Nuashonraí Mandrake" ;;
		gl*) CAPTION="Actualizacións de Mandrake" ;;
		hr*) CAPTION="Mandrake nadogradnje" ;;
		hu*) CAPTION="Mandrake frissítések" ;;
		id*) CAPTION="Situs Update Mandrake" ;;
		is*) CAPTION="Mandrake uppfærslur" ;;
		it*) CAPTION="Aggiornamenti Mandrake" ;;
		lt*) CAPTION="Mandrake atnaujinimai" ;;
		nl*) CAPTION="Mandrake updates" ;;
		no*) CAPTION="Mandrake oppdateringer" ;;
		ro*) CAPTION="Actualizãri pentru Mandrake" ;;
		uk*) CAPTION="ðÏÎÏ×ÌÅÎÎÑ ÓÉÓÔÅÍÉ Mandrake" ;;
		wa*) CAPTION="Metaedje a djoû di Mandrake" ;;
	esac
done
if [ "$CAPTION" = "" ]; then CAPTION="Mandrake Updates" ; fi

/usr/bin/gdesktoplnk \
	--progname="/usr/X11R6/bin/MandrakeUpdate" \
	--icon-name="../icons/mdk-updates.xpm" \
	--icon-caption="$CAPTION" \
	--link-name="MDKUpdates" \
	--desktop-dir="$HOME/.gnome-desktop"


############
# DrakConf #
############
CAPTION=""
for i in $LISTLANG
do
	if [ "$CAPTION" != "" ]; then break ; fi
	case "$i" in
		en*) CAPTION="DrakConf" ;;
	esac
done
if [ "$CAPTION" = "" ]; then CAPTION="DrakConf" ; fi

/usr/bin/gdesktoplnk \
	--progname="/usr/bin/kdesu -c '/usr/X11R6/bin/DrakConf'" \
	--icon-name="../icons/DrakConf.xpm" \
	--icon-caption="$CAPTION" \
	--link-name="DrakConf" \
	--desktop-dir="$HOME/.gnome-desktop"


############
# rpmdrake #
############
CAPTION=""
for i in $LISTLANG
do
	if [ "$CAPTION" != "" ]; then break ; fi
	case "$i" in
		en*) CAPTION="RpmDrake" ;;
	esac
done
if [ "$CAPTION" = "" ]; then CAPTION="RpmDrake" ; fi

/usr/bin/gdesktoplnk \
	--progname="/usr/X11R6/bin/rpmdrake" \
	--icon-name="../icons/rpmdrake.xpm" \
	--icon-caption="$CAPTION" \
	--link-name="rpmdrake" \
	--desktop-dir="$HOME/.gnome-desktop"