aboutsummaryrefslogtreecommitdiff
path: root/data/fluxbox-generate_menu
diff options
context:
space:
mode:
Diffstat (limited to 'data/fluxbox-generate_menu')
-rwxr-xr-xdata/fluxbox-generate_menu112
1 files changed, 95 insertions, 17 deletions
diff --git a/data/fluxbox-generate_menu b/data/fluxbox-generate_menu
index c03699b..ebd4bdb 100755
--- a/data/fluxbox-generate_menu
+++ b/data/fluxbox-generate_menu
@@ -170,6 +170,84 @@ if [ -z "${MENUTITLE}" ]; then
170 MENUTITLE="Fluxbox" 170 MENUTITLE="Fluxbox"
171fi 171fi
172 172
173# menu defaults (if translation forget to set one of them)
174BROWSERMENU="Browsers"
175EDITORMENU="Editors"
176NETMENU="Net"
177GRAPHICMENU="Graphics"
178MUSICMENU="Music"
179TERMINALMENU="Terminals"
180MISCMENU="Misc"
181XUTILSMENU="X-utils"
182FBSETTINGSMENU="FB-Settings"
183KDEMENUTEXT="KDE-menus"
184GNOMEMENUTEXT="Gnome-menus"
185RESTARTITEM="Restart"
186EXITITEM="Exit"
187CONFIGUREMENU="Configure"
188RELOADITEM="Reload config"
189STYLEMENU="Styles"
190STYLEMENUTITLE="Choose a style..."
191WORKSPACEMENU="Workspace List"
192
193# Check translation
194case ${LC_ALL} in
195 sv_SE) #Swedish locales
196 BROWSERMENU="Browsers"
197 EDITORMENU="Editorer"
198 NETMENU="Net"
199 GRAPHICMENU="Grafik"
200 MUSICMENU="Musik"
201 TERMINALMENU="Terminaler"
202 MISCMENU="Blandat"
203 XUTILSMENU="X-program"
204 FBSETTINGSMENU="FB-inställningar"
205 KDEMENUTEXT="KDE-menyer"
206 GNOMEMENUTEXT="Gnome-menyer"
207 RESTARTITEM="Starta om"
208 EXITITEM="Exit"
209 CONFIGUREMENU="Konfiguration"
210 RELOADITEM="Ladda om konfig"
211 STYLEMENU="Stiler"
212 STYLEMENUTITLE="Välj en stil"
213 WORKSPACEMENU="Arbetsytor"
214 ;;
215 nl_NL) #Nederlande locales
216 BROWSERMENU="Browsers"
217 EDITORMENU="Editors"
218 NETMENU="Net"
219 GRAPHICMENU="Grafisch"
220 MUSICMENU="Muziek"
221 TERMINALMENU="Terminals"
222 MISCMENU="Onregelmatig"
223 XUTILSMENU="X-utils"
224 FBSETTINGSMENU="FB-Instellingen"
225 KDEMENUTEXT="KDE-menu"
226 GNOMEMENUTEXT="Gnome-menu"
227 ;;
228 fi_FI) #Finnish locales
229 BROWSERMENU="Selaimet"
230 EDITORMENU="Editorit"
231 NETMENU="Verkko"
232 GRAPHICMENU="Grafiikka"
233 MUSICMENU="Musikki"
234 TERMINALMENU="Terminaalit"
235 MISCMENU="Sekalaista"
236 XUTILSMENU="X-Ohjelmat"
237 FBSETTINGSMENU="FB:n Asetukset"
238 KDEMENUTEXT="KDE:n valikot"
239 GNOMEMENUTEXT="Gnomen valikot"
240 RESTARTITEM="Käynnistä uudelleen"
241 EXITITEM="Lopeta"
242 CONFIGUREMENU="Konfigurointi"
243 RELOADITEM="Päivitä"
244 STYLEMENU="Tyylit"
245 STYLEMENUTITLE="Valitse tyyli"
246 WORKSPACEMENU="Työaluet"
247 ;;
248 *)
249 ;;
250esac
173 251
174# Start of menu 252# Start of menu
175 253
@@ -179,7 +257,7 @@ find_it xterm append "[exec] (xterm) {xterm -fg white -bg black}"
179find_it nedit append "[exec] (nedit) {nedit}" 257find_it nedit append "[exec] (nedit) {nedit}"
180 258
181 259
182append_submenu Browsers 260append_submenu ${BROWSERMENU}
183 find_it netscape append "[exec] (netscape) {netscape}" 261 find_it netscape append "[exec] (netscape) {netscape}"
184 find_it opera append "[exec] (opera) {env QT_XFT=true opera}" 262 find_it opera append "[exec] (opera) {env QT_XFT=true opera}"
185 find_it galeon append "[exec] (galeon) {galeon}" 263 find_it galeon append "[exec] (galeon) {galeon}"
@@ -191,7 +269,7 @@ append_submenu Browsers
191 find_it dillo append "[exec] (dillo) {dillo}" 269 find_it dillo append "[exec] (dillo) {dillo}"
192append_menu_end 270append_menu_end
193 271
194append_submenu Editors 272append_submenu ${EDITORMENU}
195 find_it nedit append "[exec] (nedit) {nedit}" 273 find_it nedit append "[exec] (nedit) {nedit}"
196 find_it vim append "[exec] (vim) {vim -g}" 274 find_it vim append "[exec] (vim) {vim -g}"
197 find_it xemacs append "[exec] (xemacs) {xemacs}" 275 find_it xemacs append "[exec] (xemacs) {xemacs}"
@@ -202,7 +280,7 @@ append_submenu Editors
202 find_it kwrite append "[exec] (kwrite) {kwrite}" 280 find_it kwrite append "[exec] (kwrite) {kwrite}"
203append_menu_end 281append_menu_end
204 282
205append_submenu Net 283append_submenu ${NETMENU}
206 find_it realplay append "[exec] (realplayer) {realplay}" 284 find_it realplay append "[exec] (realplayer) {realplay}"
207 find_it licq append "[exec] (licq) {env QT_XFT=true licq}" 285 find_it licq append "[exec] (licq) {env QT_XFT=true licq}"
208 find_it gaim append "[exec] (gaim) {gaim}" 286 find_it gaim append "[exec] (gaim) {gaim}"
@@ -218,7 +296,7 @@ append_submenu Net
218 find_it ircii append "[exec] (ircii) {xterm -title ircii -fg white -bg black -e ircii -s}" 296 find_it ircii append "[exec] (ircii) {xterm -title ircii -fg white -bg black -e ircii -s}"
219append_menu_end 297append_menu_end
220 298
221append_submenu Graphics 299append_submenu ${GRAPHICMENU}
222 find_it gimp append "[exec] (gimp) {gimp}" 300 find_it gimp append "[exec] (gimp) {gimp}"
223 find_it xv append "[exec] (xv) {xv}" 301 find_it xv append "[exec] (xv) {xv}"
224 find_it gqview append "[exec] (gqview) {gqview}" 302 find_it gqview append "[exec] (gqview) {gqview}"
@@ -228,7 +306,7 @@ append_submenu Graphics
228 find_it xscreensaver-demo append "[exec] (xscreensaver-demo) {xscreensaver-demo}" 306 find_it xscreensaver-demo append "[exec] (xscreensaver-demo) {xscreensaver-demo}"
229append_menu_end 307append_menu_end
230 308
231append_submenu Music 309append_submenu ${MUSICMENU}
232 find_it xmms append "[exec] (xmms) {xmms}" 310 find_it xmms append "[exec] (xmms) {xmms}"
233 find_it gqmpeg append "[exec] (gqmpeg) {gqmpeg}" 311 find_it gqmpeg append "[exec] (gqmpeg) {gqmpeg}"
234 find_it xmixer append "[exec] (xmixer) {xmixer}" 312 find_it xmixer append "[exec] (xmixer) {xmixer}"
@@ -242,7 +320,7 @@ append_submenu Music
242 find_it grip append "[exec] (grip) {grip}" 320 find_it grip append "[exec] (grip) {grip}"
243append_menu_end 321append_menu_end
244 322
245append_submenu Terminals 323append_submenu ${TERMINALMENU}
246 append "[exec] (xterm) {xterm -fg white -bg black}" 324 append "[exec] (xterm) {xterm -fg white -bg black}"
247 find_it gnome-terminal append "[exec] (gnome-terminal) {gnome-terminal}" 325 find_it gnome-terminal append "[exec] (gnome-terminal) {gnome-terminal}"
248 find_it Eterm append "[exec] (Eterm) {Eterm}" 326 find_it Eterm append "[exec] (Eterm) {Eterm}"
@@ -251,7 +329,7 @@ append_submenu Terminals
251 find_it rxvt append "[exec] (rxvt) {rxvt}" 329 find_it rxvt append "[exec] (rxvt) {rxvt}"
252append_menu_end 330append_menu_end
253 331
254append_submenu Misc 332append_submenu ${MISCMENU}
255 find_it acroread append "[exec] (acroread) {acroread}" 333 find_it acroread append "[exec] (acroread) {acroread}"
256 find_it gcalc append "[exec] (gcalc) {gcalc}" 334 find_it gcalc append "[exec] (gcalc) {gcalc}"
257 find_it kcalc append "[exec] (kcalc) {kcalc}" 335 find_it kcalc append "[exec] (kcalc) {kcalc}"
@@ -262,7 +340,7 @@ append_submenu Misc
262append_menu_end 340append_menu_end
263 341
264 342
265append_submenu X-utils 343append_submenu ${XUTILSMENU}
266 find_it xpenguins append "[exec] (xpenguins) {xpenguins}" 344 find_it xpenguins append "[exec] (xpenguins) {xpenguins}"
267 find_it xcalc append "[exec] (xcalc) {xcalc}" 345 find_it xcalc append "[exec] (xcalc) {xcalc}"
268 find_it xfontsel append "[exec] (xfontsel) {xfontsel}" 346 find_it xfontsel append "[exec] (xfontsel) {xfontsel}"
@@ -278,7 +356,7 @@ append_menu_end
278 356
279# gnome menu 357# gnome menu
280if [ -d ${PKGDATADIR}/gnome/apps -a "${GNOMEMENU}" ]; then 358if [ -d ${PKGDATADIR}/gnome/apps -a "${GNOMEMENU}" ]; then
281 append_submenu Gnome-menus 359 append_submenu ${GNOMEMENUTEXT}
282 for a in `ls ${PKGDATADIR}/gnome/apps`; do 360 for a in `ls ${PKGDATADIR}/gnome/apps`; do
283 if [ -d ${PKGDATADIR}/gnome/apps/"${a}" ] ; then 361 if [ -d ${PKGDATADIR}/gnome/apps/"${a}" ] ; then
284 append_submenu "${a}" 362 append_submenu "${a}"
@@ -292,7 +370,7 @@ fi
292 370
293# kde submenu 371# kde submenu
294if [ -d ${PKGDATADIR}/applnk/ -a "${KDEMENU}" ]; then 372if [ -d ${PKGDATADIR}/applnk/ -a "${KDEMENU}" ]; then
295 append_submenu KDE-menus 373 append_submenu ${KDEMENUTEXT}
296 for a in `ls ${PKGDATADIR}/applnk/`; do 374 for a in `ls ${PKGDATADIR}/applnk/`; do
297 if [ -d ${PKGDATADIR}/applnk/"${a}" ]; then 375 if [ -d ${PKGDATADIR}/applnk/"${a}" ]; then
298 append_submenu "${a}" 376 append_submenu "${a}"
@@ -312,23 +390,23 @@ if [ -d ${PKGDATADIR}/applnk/ -a "${KDEMENU}" ]; then
312fi 390fi
313 391
314 392
315append_submenu FB-Settings 393append_submenu ${FBSETTINGSMENU}
316 append "[workspaces] (Workspace List)" 394 append "[workspaces] (${WORKSPACEMENU})"
317 395
318 append_menu "[submenu] (Styles) {Choose a style...}" 396 append_menu "[submenu] (${STYLEMENU}) {${STYLEMENUTITLE}}"
319 append "[stylesdir] (${PKGDATADIR}/fluxbox/styles)" 397 append "[stylesdir] (${PKGDATADIR}/fluxbox/styles)"
320 append "[stylesdir] (${HOME}/.fluxbox/styles)" 398 append "[stylesdir] (${HOME}/.fluxbox/styles)"
321 append_menu_end 399 append_menu_end
322 400
323 append "[config] (Configuration)" 401 append "[config] (${CONFIGUREMENU})"
324 append "[reconfig] (Reload config)" 402 append "[reconfig] (${RELOADITEM})"
325 403
326 find_it fluxconf append "[exec] (Fluxconf) {fluxconf}" 404 find_it fluxconf append "[exec] (Fluxconf) {fluxconf}"
327 405
328append_menu_end 406append_menu_end
329 407
330 append "[restart] (Restart)" 408 append "[restart] (${RESTARTITEM})"
331 append "[exit] (Exit)" 409 append "[exit] (${EXITITEM})"
332 410
333append_menu_end 411append_menu_end
334 412