由 breaking » 週六 3月 22, 2003 11:20 pm
在/etc/X11/WindowMaker下
有三個檔案(appearance.menu及background.menu及menu.hook)
我之前是修改如下
appearance.menu
========================================================================
/* Automatically generated file. Do not edit. */
#include "wmmacros"
"外觀" MENU
"背景" OPEN_MENU background.menu
"風格" OPEN_MENU -noext LOCAL_STYLES_DIR STYLES_DIR USER_STYLES_DIR WITH sets$
"主題" OPEN_MENU -noext LOCAL_THEMES_DIR THEMES_DIR USER_THEMES_DIR WITH sets$
"圖示集" OPEN_MENU -noext LOCAL_ICON_SETS_DIR ICON_SETS_DIR USER_ICON_SETS_DI$
"儲存圖示集" EXEC geticonset USER_ICON_SETS_DIR/"%a(IconSet name)"
"儲存主題" EXEC getstyle -t USER_THEMES_DIR/"%a(Theme name)"
"外觀" END
========================================================================
background.menu
========================================================================
#include "wmmacros"
"背景" MENU
"實體色" MENU
"Black" WS_BACK '(solid, black)'
"Blue" WS_BACK '(solid, "#505075")'
"Indigo" WS_BACK '(solid, "#243e6c")'
"Deep Blue" WS_BACK '(solid, "#180090")'
"Purple" WS_BACK '(solid, "#554466")'
"Wheat" WS_BACK '(solid, "wheat4")'
"Dark Gray" WS_BACK '(solid, "#333340")'
"Wine" WS_BACK '(solid, "#400020")'
"實體色" END
"漸層色" MENU
"Sunset" WS_BACK '(mvgradient, deepskyblue4, black, deepskyblue$
"Sky" WS_BACK '(vgradient, blue4, white)'
"Blue Shades" WS_BACK '(vgradient, "#7080a5", "#101020")'
"Indigo Shades" WS_BACK '(vgradient, "#746ebc", "#242e4c")'
"Purple Shades" WS_BACK '(vgradient, "#654c66", "#151426")'
"Dark Gray" WS_BACK '(solid, "#333340")'
"Wine" WS_BACK '(solid, "#400020")'
"實體色" END
"漸層色" MENU
"Sunset" WS_BACK '(mvgradient, deepskyblue4, black, deepskyblue$
"Sky" WS_BACK '(vgradient, blue4, white)'
"Blue Shades" WS_BACK '(vgradient, "#7080a5", "#101020")'
"Indigo Shades" WS_BACK '(vgradient, "#746ebc", "#242e4c")'
"Purple Shades" WS_BACK '(vgradient, "#654c66", "#151426")'
"Wheat Shades" WS_BACK '(vgradient, "#a09060", "#302010")'
"Grey Shades" WS_BACK '(vgradient, "#636380", "#131318")'
"Wine Shades" WS_BACK '(vgradient, "#600040", "#180010")'
"漸層色" END
"圖片" MENU
"平鋪" OPEN_MENU LOCAL_BACKGROUNDS_DIR BACKGROUNDS_DIR USER_BACKGRO$
"比例" OPEN_MENU LOCAL_BACKGROUNDS_DIR BACKGROUNDS_DIR USER_BACKGRO$
"圖片" END
"背景" END
========================================================================
menu.hook
========================================================================
/* Automatically generated file. Do not edit (see /usr/share/doc/menu/menu.txt.$
#include "wmmacros"
Debian MENU
#include <menu.prehook>
"應用程式" MENU
"編輯器" MENU
"Nano" EXEC x-terminal-emulator -T "Nano" -e /usr/bin/nano
"Xedit" EXEC xedit
"編輯器" END
"影像處理" MENU
"Bitmap" EXEC bitmap
"影像處理" END
"數學" MENU
"Xcalc" EXEC xcalc
"bc" EXEC x-terminal-emulator -T "bc" -e /usr/bin/bc
"dc" EXEC x-terminal-emulator -T "dc" -e /usr/bin/dc
"數學" END
"網路" MENU
"Gaim" EXEC /usr/bin/gaim
"Lynx" EXEC x-terminal-emulator -T "Lynx" -e /usr/bin/lynx
"Mozilla Components" MENU
"Mozilla Addressbook" EXEC mozilla -addressbook
"Mozilla Browser" EXEC mozilla
"Mozilla Composer" EXEC mozilla -edit
"Mozilla Mail" EXEC mozilla -mail
"Mozilla Mail Composer" EXEC mozilla -compose
"Mozilla News" EXEC mozilla -news
"Mozilla Terminal" EXEC mozilla -terminal
"Mozilla Components" END
"Mozilla Navigator" EXEC mozilla
"Mutt" EXEC x-terminal-emulator -T "Mutt" -e /usr/bin/mutt
"Telnet" EXEC x-terminal-emulator -T "Telnet" -e telnet
"Xbiff" EXEC xbiff
"gFTP" EXEC gftp
"網路" END
"程式設計" MENU
"Gdb" EXEC x-terminal-emulator -T "Gdb" -e /usr/bin/gdb
"Python (v2.1)" EXEC x-terminal-emulator -T "Python (v2.1)" -e /usr/bin/pyth$
"Tclsh8.3" EXEC x-terminal-emulator -T "Tclsh8.3" -e /usr/bin/tclsh8.3 EXEC x-terminal-emulator -T "Tclsh8.3" -e /usr/bin/tclsh8.3
"程式設計" END
"命令模式" MENU
"Ash" EXEC x-terminal-emulator -T "Ash" -e /bin/ash -i
"Bash" EXEC x-terminal-emulator -T "Bash" -e /bin/bash -login
"Sh" EXEC x-terminal-emulator -T "Sh" -e /bin/sh -login
"Tcsh" EXEC x-terminal-emulator -T "Tcsh" -e /usr/bin/tcsh
"命令模式" END
"聲音" MENU
"XMMS" EXEC xmms
"wmXMMS" EXEC wmxmms
"聲音" END
"系統" MENU
"管理" MENU
"ALSA-config" EXEC x-terminal-emulator -T "ALSA-config" -e /usr/sbin/su-to-r$
"Lilo-config" EXEC x-terminal-emulator -T "Lilo-config" -e /usr/sbin/su-to-r$
"pppconfig" EXEC x-terminal-emulator -T "pppconfig" -e /usr/sbin/su-to-root $
"管理" END
"DSL/PPPoE configuration tool" EXEC x-terminal-emulator -T "DSL/PPPoE config$
"語言環境" MENU
"Belarusian environment" EXEC x-terminal-emulator -T "Belarusian environment$
"Bulgarian environment" EXEC x-terminal-emulator -T "Bulgarian environment" $
"Danish environment" EXEC x-terminal-emulator -T "Danish environment" -e /us$
"French environment" EXEC x-terminal-emulator -T "French environment" -e /us$
"German environment" EXEC x-terminal-emulator -T "German environment" -e /us$
"Japanese environment" EXEC x-terminal-emulator -T "Japanese environment" -e$
"Korean environment" EXEC x-terminal-emulator -T "Korean environment" -e /us$
"Macedonian environment" EXEC x-terminal-emulator -T "Macedonian environment$
"Native Language Environment" EXEC /usr/bin/tklanguage
"Native Language Environment - remove" EXEC x-terminal-emulator -T "Native L$
"Polish environment" EXEC x-terminal-emulator -T "Polish environment" -e /us$
"Russian environment" EXEC x-terminal-emulator -T "Russian environment" -e /$
"Serbian environment" EXEC x-terminal-emulator -T "Serbian environment" -e /$
"Spanish environment" EXEC x-terminal-emulator -T "Spanish environment" -e /$
"Thai environment" EXEC x-terminal-emulator -T "Thai environment" -e /usr/bi$
"Ukrainian environment" EXEC x-terminal-emulator -T "Ukrainian environment" $
"語言環境" END
"Task selector" EXEC x-terminal-emulator -T "Task selector" -e su-to-root /u$
"Top" EXEC x-terminal-emulator -T "Top" -e /usr/bin/top
"Wmakerconf" EXEC /usr/bin/wmakerconf
"Xconsole" EXEC xconsole
"Xload" EXEC xload
"Xvidtune" EXEC xvidtune
"bbconf" EXEC /usr/bin/bbconf
"pstree" EXEC /etc/alternatives/x-terminal-emulator -e /usr/bin/pstree.x11
"reportbug" EXEC x-terminal-emulator -T "reportbug" -e /usr/bin/reportbug
"系統" END
"文字" MENU
"Fortune" EXEC sh -c 'while fortune | col -x | xmessage -center -buttons OK:1$
"pyDict" EXEC /usr/bin/pydict
"stardic (fanti)" EXEC /usr/bin/stardic-ft
"stardic (jianti)" EXEC /usr/bin/stardic
"文字" END
"工具" MENU
"Chinese Panel" EXEC /usr/bin/cpanel
"Editres" EXEC editres
"Gentoo" EXEC gentoo
"Oclock" EXEC oclock
"X Window Snapshot" EXEC xwd | xwud
"Xclipboard" EXEC xclipboard
"Xclock (analog)" EXEC xclock -analog
"Xclock (digital)" EXEC xclock -digital -update 1
"Xcutsel" EXEC xcutsel
"Xev" EXEC x-terminal-emulator -e xev
"Xfontsel" EXEC xfontsel
"Xkill" EXEC xkill
"Xmag" EXEC xmag
"Xrefresh" EXEC xrefresh
"bbpager" EXEC /usr/bin/bbpager
"工具" END
"檢視器" MENU
"Acrobat Reader" EXEC /usr/bin/acroread
"Gnome VideoLAN Client" EXEC /usr/bin/gnome-vlc
"Mplayer" EXEC /usr/bin/gmplayer
"Real Player" EXEC realplayer
"VideoLAN Client" EXEC /usr/bin/vlc
"XDvi" EXEC /usr/bin/xdvi
"Xditview" EXEC xditview
"xine media player" EXEC /usr/bin/xine
"檢視器" END
"應用程式" END
"遊戲" MENU
"小玩具" MENU
"Xeyes" EXEC xeyes
"Xlogo" EXEC xlogo
"小玩具" END
"遊戲" END
"求助" MENU
"Info" EXEC x-terminal-emulator -T "Info" -e info
"Xman" EXEC xman
"求助" END
"螢幕" MENU
"鎖定" MENU
"鎖定螢幕 (XScreenSaver)" EXEC /usr/bin/xscreensaver-command -lock
"鎖定" END
"Refresh" REFRESH
"Root-window" MENU
"ChBg" EXEC /usr/bin/chbg
"Xsetroot" EXEC xsetroot
"Root-window" END
"儲存" MENU
"行動 ScreenSaver (下一個)" EXEC /usr/bin/xscreensaver-command -next
"行動 ScreenSaver (前一個)" EXEC /usr/bin/xscreensaver-command -prev
"行動 ScreenSaver (隨機)" EXEC /usr/bin/xscreensaver-command -activate
"Beforelight" EXEC beforelight
"Demo Screen Hacks" EXEC /usr/bin/xscreensaver-command -demo
"結束 XScreenSaver" EXEC /usr/bin/xscreensaver-command -exit
"啟動 XScreenSaver" EXEC /usr/bin/xscreensaver
"Reinitialize XScreenSaver" EXEC /usr/bin/xscreensaver-command -restart
"設定 ScreenSaver" EXEC /usr/bin/xscreensaver-command -prefs
"儲存" END
"螢幕" END
"視窗管理" MENU
"離開..." EXIT
"結束視窗系統..." SHUTDOWN
"重新啟動" RESTART
"啟動 Blackbox" RESTART /usr/bin/blackbox
"設定" EXEC WPrefs
"啟動 Twm" RESTART twm
"啟動 Window Maker" RESTART /usr/bin/wmaker
"資訊面板" INFO_PANEL
"法律面板" LEGAL_PANEL
"視窗管理" END
"工作區" MENU
"外觀" OPEN_MENU appearance.menu
"排列圖示" ARRANGE_ICONS
"清除階段狀態" CLEAR_SESSION
"隱藏其他" HIDE_OTHERS
"儲存階段狀態" SAVE_SESSION
"全部顯示" SHOW_ALL
"工作區" WORKSPACE_MENU
"工作區" END
"XShells" MENU
"CRxvt (Big5) " EXEC crxvt-big5 -im xcin -pt Root -bg black -fg white
"CRxvt (GB)" EXEC crxvt-gb -im xcin-zh_CN.GB2312 -pt Root
"Chinput" EXEC /usr/bin/chinput
"GRxvt" EXEC grxvt
"KRxvt" EXEC krxvt
"XCIN" EXEC /usr/bin/xcin
"XCINterm (Big5)" EXEC /usr/bin/xcinterm-big5
"XCINterm (GB2312)" EXEC /usr/bin/xcinterm-gb2312
"XTerm" EXEC xterm
"XTerm (Unicode)" EXEC uxterm
"XShells" END
#include <menu.posthook>
Debian END
========================================================================
P.S.
這不是"正解"的修改方式.....=.=||
因為這些檔案.....只要update-menu後.....
又會變回原來的英文選單.......
我有看過/usr/share/doc/menu/下的說明
它是說要修改成po檔....然後寄給update-menu的原作者
在下一個版本....就會釋出.....
但....我實在看不太懂po的格式及修改方法....
不然...我很願意改好寄給原作的說....><"