From 8fe75581d6036a5bcadd9dc65798b60473619554 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 14 Dec 2002 08:27:54 +0000 Subject: [PATCH] update from Han --- util/fluxbox-generate_menu | 40 ++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/util/fluxbox-generate_menu b/util/fluxbox-generate_menu index 4a4f5823..a3c6860b 100755 --- a/util/fluxbox-generate_menu +++ b/util/fluxbox-generate_menu @@ -22,7 +22,7 @@ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # DEALINGS IN THE SOFTWARE. # -# $Id: fluxbox-generate_menu,v 1.15 2002/11/29 13:39:37 rathnor Exp $ +# $Id: fluxbox-generate_menu,v 1.16 2002/12/14 08:27:54 fluxgen Exp $ WHOAMI=`whoami` [ "$WHOAMI" = "root" ] && PATH=/bin:/usr/bin/:/usr/local/bin:/usr/X11R6/bin @@ -32,7 +32,7 @@ display_usage() { cat <&2 -Error: I can't find any terminal-emulators in your path. -Please specify your favourite terminal with the -t option. +Warning: I can't find any terminal-emulators in your PATH. +Please fix your PATH or specify your favourite terminal with the -t option EOF - exit 1 fi @@ -284,7 +285,7 @@ XUTILSMENU="X-utils" # Check translation case ${LC_ALL} in - ru_RU) #Russian locales + ru_RU*) #Russian locales #OFFICEMENU="Office" BROWSERMENU="âÒÁÕÚÅÒÙ" CONFIGUREMENU="îÁÓÔÒÏÊËÁ" @@ -305,7 +306,7 @@ case ${LC_ALL} in WORKSPACEMENU="òÁÂÏÞÉÅ ÐÒÏÓÔÒÁÎÓÔ×Á" XUTILSMENU="X-ÕÔÉÌÉÔÙ" ;; - sv_SE) #Swedish locales + sv_SE*) #Swedish locales #OFFICEMENU="Office" BROWSERMENU="Browsers" CONFIGUREMENU="Konfiguration" @@ -326,7 +327,7 @@ case ${LC_ALL} in WORKSPACEMENU="Arbetsytor" XUTILSMENU="X-program" ;; - nl_NL) #Nederlandse locales + nl_NL*) #Nederlandse locales #OFFICEMENU="Office" BROWSERMENU="Browsers" CONFIGUREMENU="Instellingen" @@ -347,7 +348,7 @@ case ${LC_ALL} in WORKSPACEMENU="Werkveld Lijst" XUTILSMENU="X-utils" ;; - fi_FI) #Finnish locales + fi_FI*) #Finnish locales #OFFICEMENU="Office" BROWSERMENU="Selaimet" CONFIGUREMENU="Konfigurointi" @@ -368,7 +369,7 @@ case ${LC_ALL} in WORKSPACEMENU="Työaluet" XUTILSMENU="X-Ohjelmat" ;; - ja_JP) #Japanese locales + ja_JP*) #Japanese locales #OFFICEMENU="Office" BROWSERMENU="¥Ö¥é¥¦¥¶" CONFIGUREMENU="ÀßÄê" @@ -389,7 +390,7 @@ case ${LC_ALL} in WORKSPACEMENU="¥ï¡¼¥¯¥¹¥Ú¡¼¥¹" XUTILSMENU="X¥æ¡¼¥Æ¥£¥ê¥Æ¥£" ;; - fr_FR) # french locales + fr_FR*) # french locales #OFFICEMENU="Office" BROWSERMENU="Navigateurs" CONFIGUREMENU="Configurer" @@ -410,7 +411,7 @@ case ${LC_ALL} in WORKSPACEMENU="Liste des bureaux" XUTILSMENU="X-utils" ;; - it_IT|it_IT@euro) # italian locales + it_IT*) # italian locales #OFFICEMENU="Office" BROWSERMENU="Browsers" CONFIGUREMENU="Configurazione" @@ -593,10 +594,13 @@ fi find_it fluxkeys append "[exec] (FluxKeys) {fluxkeys}" find_it fluxmenu append "[exec] (FluxMenu) {fluxmenu}" # if gxmessage exitst use it; else use xmessage - find_it gxmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}" + find_it gxmessage append \ + "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|gxmessage -file - -center}" [ $? -ne 0 ] && \ - find_it xmessage append "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}" + find_it xmessage append \ + "[exec] (Windowname) {xprop|grep WM_CLASS|cut -d \\\" -f 2|xmessage -file - -center}" find_it fbrun append "[exec] (Run) {fbrun}" + find_it fluxbox-generate_menu append "[exec] (Regen menu) {fluxbox-generate_menu $options}" append_menu_end append "[reconfig] (${RELOADITEM})" @@ -613,3 +617,5 @@ append_menu_end if [ ! "${REMOVE}" ];then clean_up fi + +echo "Menu succesfully generated."