目前我只是把菜单基本上都汉化了.其他的以后能弄就弄吧.请大家一起研究enlightenment的汉化,把体会拿出来互相交流!
其实修改enlightenment的相应C源文件就可将其汉化,但工作量大,费时,又容易出错. enlightenment到现在都还没有中文的配置文件,却有日文的. enlightenment非常华丽,看起来很舒服,用惯了也非常好用,而且资源占用其实不多,应该要比kde小很多的.让我们一起来汉化它吧,这也算是为国人争气了.
我的menus.cfg文件t贴在在下面,如果你是使用MDK9自带的enlingtenment的话,先备份文件/usr/X11R6/share/enlightenment/config/menus.cfg,再打开它,把它原来的内容删除,将下面的东西复制进去,保存,重启enlightenment,就可以看到绝大多数菜单都成了中文的了.
翻译不当的地方请见谅,欢迎大家提出并给予修正.菜单之外的东西还没汉化呢,大家一起来搞掂它吧.
我的menus.cfg:
#include <definitions>
__E_CFG_VERSION 0
BEGIN_NEW_FILE_MENU("LINUX-MANDRAKE_MENU","ROOT","/etc/X11/enlightenment/menus/mandrake.menu")
END_MENU
BEGIN_NEW_FILE_MENU("APPS_SUBMENU", "ROOT", ECONFDIR"/file.menu")
END_MENU
/*
BEGIN_NEW_MENU("APPS_SUBMENU", "ROOT")
ADD_MENU_TITLE("Apps")
ADD_MENU_TEXT_ITEM("Eterm", __A_EXEC, "Eterm")
ADD_MENU_TEXT_ITEM("Xterm", __A_EXEC, "xterm")
ADD_MENU_TEXT_ITEM("RXVT" , __A_EXEC, "rxvt")
ADD_MENU_TEXT_ITEM("Gnome终端机",__A_EXEC, "gnome-terminal")
ADD_MENU_TEXT_ITEM("TkRat", __A_EXEC, "tkrat")
ADD_MENU_TEXT_ITEM("网景邮件", __A_EXEC, "netscape -mail -no-about-splash")
ADD_MENU_TEXT_ITEM("Exmh", __A_EXEC, "exmh")
ADD_MENU_TEXT_ITEM("Balsa", __A_EXEC, "balsa")
ADD_MENU_TEXT_ITEM("网景浏览器", __A_EXEC, "netscape -no-about-splash")
ADD_MENU_TEXT_ITEM("Gimp", __A_EXEC, "gimp")
ADD_MENU_TEXT_ITEM("XV", __A_EXEC, "xv")
ADD_MENU_TEXT_ITEM("电子眼", __A_EXEC, "ee")
ADD_MENU_TEXT_ITEM("GQview", __A_EXEC, "gqview")
ADD_MENU_TEXT_ITEM("XMag", __A_EXEC, "xmag")
ADD_MENU_TEXT_ITEM("Xeyes", __A_EXEC, "xeyes")
ADD_MENU_TEXT_ITEM("XawTV", __A_EXEC, "xawtv")
ADD_MENU_TEXT_ITEM("Imlib Settings",__A_EXEC, "imlib_config")
ADD_MENU_TEXT_ITEM("TkMan", __A_EXEC, "tkman")
ADD_MENU_TEXT_ITEM("Xman", __A_EXEC, "xman")
ADD_MENU_TEXT_ITEM("X-Chat", __A_EXEC, "xchat")
ADD_MENU_TEXT_ITEM("GnomeICU", __A_EXEC, "gnomeicu -a")
ADD_MENU_TEXT_ITEM("eMusic", __A_EXEC, "emusic")
ADD_MENU_TEXT_ITEM("GQmpeg", __A_EXEC, "gqmpeg")
ADD_MENU_TEXT_ITEM("X11Amp", __A_EXEC, "x11amp")
ADD_MENU_TEXT_ITEM("XMMS", __A_EXEC, "xmms")
ADD_MENU_TEXT_ITEM("Civilization", __A_EXEC, "civctp")
ADD_MENU_TEXT_ITEM("Myth 2", __A_EXEC, "myth2")
ADD_MENU_TEXT_ITEM("Myth 2 Loathing",__A_EXEC, "loathing")
ADD_MENU_TEXT_ITEM("Myth 2 Fear", __A_EXEC, "fear")
END_MENU
*/
/* 回归扫描 $HOME/.enlightenment.backgrounds 并且建立菜单,如果图像
* 在那儿的话 */
BEGIN_NEW_DIRSCAN_MENU("BACKGROUNDS_MENU", "ROOT_IMAGE", ECONFDIR"/backgrounds")
ADD_MENU_TITLE("背景")
END_MENU
BEGIN_NEW_MENU("DESKTOP_SUBMENU", "ROOT")
ADD_MENU_TITLE("桌面操作")
ADD_MENU_SUBMENU_TEXT_ITEM("背景", "BACKGROUNDS_MENU")
ADD_MENU_TEXT_ITEM("刷新桌面", __A_CLEANUP, "")
ADD_MENU_TEXT_ITEM("到下个桌面", __A_DESKTOP_NEXT, "")
ADD_MENU_TEXT_ITEM("返回先前的桌面", __A_DESKTOP_PREV, "")
ADD_MENU_TEXT_ITEM("创建新图标框", __A_CREATE_ICONBOX, "")
ADD_MENU_TEXT_ITEM("FX - 涟波效果", __A_FX, "ripples")
/* this leaks shared memory segemnts like a seive - disable */
/*ADD_MENU_TEXT_ITEM("FX- 雨滴效果", __A_FX, "raindrops")*/
ADD_MENU_TEXT_ITEM("FX- 波动效果", __A_FX, "waves")
END_MENU
BEGIN_NEW_MENU("MAINT_SUBMENU", "ROOT")
ADD_MENU_TITLE("Enlightenment 维护")
ADD_MENU_TEXT_ITEM("清理配置文件缓存", __A_EXEC, ENLIGHTENMENT_BIN"/e_cache_clean config")
ADD_MENU_TEXT_ITEM("清理pager(呼叫器)背景缓存", __A_EXEC, ENLIGHTENMENT_BIN"/e_cache_clean pager")
ADD_MENU_TEXT_ITEM("清除背景选择缓存", __A_EXEC, ENLIGHTENMENT_BIN"/e_cache_clean bgsel")
ADD_MENU_TEXT_ITEM("清理所有缓存", __A_EXEC, ENLIGHTENMENT_BIN"/e_cache_clean all")
ADD_MENU_TEXT_ITEM("询问配置文件缓存的用法", __A_EXEC, ENLIGHTENMENT_BIN"/e_cache_query config")
ADD_MENU_TEXT_ITEM("询问呼叫器背景缓存的用法", __A_EXEC, ENLIGHTENMENT_BIN"/e_cache_query pager")
ADD_MENU_TEXT_ITEM("询问背景选择缓存的用法", __A_EXEC, ENLIGHTENMENT_BIN"/e_cache_query bgsel")
ADD_MENU_TEXT_ITEM("询问所有缓存的用法", __A_EXEC, ENLIGHTENMENT_BIN"/e_cache_query all")
/*ADD_MENU_ddTEXT_ITEM("再产生菜单", __A_EXEC, ENLIGHTENMENT_BIN"/e_gen_menu")*/
END_MENU
/* dont need this anymore - will have a scritp soon to do it all
BEGIN_NEW_GNOME_MENU("GNOME_SUBMENU", "ROOT", "/usr/share/gnome/apps")
ADD_MENU_TITLE("Gnome Apps")
END_MENU
BEGIN_NEW_GNOME_MENU("GNOME_USER_SUBMENU", "ROOT", HOME_DIR"/.gnome/apps")
ADD_MENU_TITLE("Gnome Apps")
END_MENU
*/
BEGIN_NEW_THEMES_MENU("THEMES_SUBMENU", "ROOT")
ADD_MENU_TITLE("Themes")
END_MENU
BEGIN_NEW_MENU("CONFIG_SUBMENU", "ROOT")
ADD_MENU_TITLE("设定")
ADD_MENU_TEXT_ITEM("鼠标聚焦设定 ...", __A_CONFIG, "focus")
ADD_MENU_TEXT_ITEM("移动与重定大小设定 ...", __A_CONFIG, "moveresize")
ADD_MENU_TEXT_ITEM("版面设定 ...", __A_CONFIG, "pager")
ADD_MENU_TEXT_ITEM("窗口放置设定 ...", __A_CONFIG, "placement")
ADD_MENU_TEXT_ITEM("多重桌面设定 ...", __A_CONFIG, "desktops")
ADD_MENU_TEXT_ITEM("虚拟桌面设定 ...", __A_CONFIG, "area")
/*ADD_MENU_TEXT_ITEM("图标设定 ...", __A_CONFIG, "icons")*/
ADD_MENU_TEXT_ITEM("自动提升设定 ...", __A_CONFIG, "autoraise")
ADD_MENU_TEXT_ITEM("工具提示设定 ...", __A_CONFIG, "tooltips")
ADD_MENU_TEXT_ITEM("声音设定 ...", __A_CONFIG, "audio")
ADD_MENU_TEXT_ITEM("组设定 ...", __A_CONFIG, "group_defaults")
ADD_MENU_TEXT_ITEM("记忆设定 ...", __A_CONFIG, "remember");
ADD_MENU_TEXT_ITEM("特殊FX设定 ...", __A_CONFIG, "fx")
ADD_MENU_TEXT_ITEM("桌面背景设定 ...", __A_CONFIG, "bg")
ADD_MENU_TEXT_ITEM("KDE支持设定 ...", __A_CONFIG, "kde")
ADD_MENU_TEXT_ITEM("其他各种设定 ...", __A_CONFIG, "miscellaneous");
ADD_MENU_TEXT_ITEM("配置工具 ...", __A_EXEC, "e-conf")
END_MENU
BEGIN_NEW_MENU("ROOT_2", "ROOT")
ADD_MENU_TITLE("Enlightenment")
ADD_MENU_SUBMENU_TEXT_ITEM("User Menus", "APPS_SUBMENU")
ADD_MENU_SUBMENU_TEXT_ITEM("用户菜单","LINUX-MANDRAKE_MENU")
ADD_MENU_SUBMENU_TEXT_ITEM("桌面", "DESKTOP_SUBMENU")
ADD_MENU_SUBMENU_TEXT_ITEM("设置", "CONFIG_SUBMENU")
ADD_MENU_SUBMENU_TEXT_ITEM("主题", "THEMES_SUBMENU")
ADD_MENU_SUBMENU_TEXT_ITEM("维护", "MAINT_SUBMENU")
ADD_MENU_TEXT_ITEM("帮助", __A_EXEC, ENLIGHTENMENT_BIN"/dox" $EROOT"/E-docs")
ADD_MENU_TEXT_ITEM("关于Enlightenment", __A_ABOUT, "")
ADD_MENU_TEXT_ITEM("关于这个主题", __A_EXEC, ENLIGHTENMENT_BIN"/dox" $ETHEME"/ABOUT")
ADD_MENU_TEXT_ITEM("重新启动Enlightenment",__A_EXIT, "restart")
ADD_MENU_TEXT_ITEM("退出", __A_EXIT, "logout")
END_MENU
BEGIN_NEW_MENU("WINOPS_H", "EMPTY")
ADD_MENU_TEXT_ITEM("最高拨动", __A_MAX_HEIGHT, "conservative")
ADD_MENU_TEXT_ITEM("可用的最高拨动", __A_MAX_HEIGHT, "available")
ADD_MENU_TEXT_ITEM("完全最高拨动", __A_MAX_HEIGHT, "")
END_MENU
BEGIN_NEW_MENU("WINOPS_W", "EMPTY")
ADD_MENU_TEXT_ITEM("最宽拨动", __A_MAX_WIDTH, "conservative")
ADD_MENU_TEXT_ITEM("可用的最宽拨动", __A_MAX_WIDTH, "available")
ADD_MENU_TEXT_ITEM("完全最宽拨动", __A_MAX_WIDTH, "")
END_MENU
BEGIN_NEW_MENU("WINOPS_WH", "EMPTY")
ADD_MENU_TEXT_ITEM("最大估计拨动", __A_MAX_SIZE, "conservative")
ADD_MENU_TEXT_ITEM("可用的最大估计拨动", __A_MAX_SIZE, "available")
ADD_MENU_TEXT_ITEM("完全最大估计拨动", __A_MAX_SIZE, "")
END_MENU
BEGIN_NEW_MENU("WINOPS_SIZE", "EMPTY")
ADD_MENU_SUBMENU_TEXT_ITEM("高度", "WINOPS_H")
ADD_MENU_SUBMENU_TEXT_ITEM("宽度", "WINOPS_W")
ADD_MENU_SUBMENU_TEXT_ITEM("大小", "WINOPS_WH")
ADD_MENU_TEXT_ITEM("全屏/窗口", __A_ZOOM, "")
END_MENU
BEGIN_NEW_MENU("WINOPS_LAYER", "EMPTY")
ADD_MENU_TEXT_ITEM("在下", __A_SET_LAYER, "2")
ADD_MENU_TEXT_ITEM("常态", __A_SET_LAYER, "4")
ADD_MENU_TEXT_ITEM("在上", __A_SET_LAYER, "6")
ADD_MENU_TEXT_ITEM("在顶端", __A_SET_LAYER, "20")
END_MENU
BEGIN_NEW_BORDERS_MENU("WINOPS_BORDERS", "EMPTY")
END_MENU
BEGIN_NEW_MENU("WINOPS_GROUP", "EMPTY")
ADD_MENU_TEXT_ITEM("配置这个窗口的组", __A_CONFIG, "group")
ADD_MENU_TEXT_ITEM("启动新组", __A_START_GROUP,"")
ADD_MENU_TEXT_ITEM("选择新组以将此窗口加入其中", __A_CONFIG, "group_membership")
ADD_MENU_TEXT_ITEM("将此窗口加入当前组", __A_ADD_TO_GROUP, "");
ADD_MENU_TEXT_ITEM("将该窗口从一个组中移除", __A_REMOVE_FROM_GROUP,"")
ADD_MENU_TEXT_ITEM("消除此窗口的所属组", __A_BREAK_GROUP, "")
ADD_MENU_TEXT_ITEM("显示/隐藏该窗口的组", __A_SHOWHIDE_GROUP, "")
END_MENU
BEGIN_NEW_MENU("WINOPS_MENU", "EMPTY")
ADD_MENU_TEXT_ITEM("关闭", __A_KILL, "")
ADD_MENU_TEXT_ITEM("消灭", __A_KILL_NASTY, "")
ADD_MENU_TEXT_ITEM("图标化", __A_ICONIFY, "")
ADD_MENU_TEXT_ITEM("提升", __A_RAISE, "")
ADD_MENU_TEXT_ITEM("降底", __A_LOWER, "")
ADD_MENU_TEXT_ITEM("阴影化/取消阴影化", __A_SHADE, "")
ADD_MENU_TEXT_ITEM("粘住/扯开", __A_STICK, "")
ADD_MENU_TEXT_ITEM("拨动跳过窗口列表", __A_SKIPLISTS, "")
/* ADD_MENU_TEXT_ITEM("拨动从不聚焦", __A_NEVERFOCUS ,"") */
ADD_MENU_TEXT_ITEM("记忆...", __A_SNAPSHOT, "dialog")
ADD_MENU_SUBMENU_TEXT_ITEM("窗口组", "WINOPS_GROUP")
ADD_MENU_SUBMENU_TEXT_ITEM("窗口大小", "WINOPS_SIZE")
ADD_MENU_SUBMENU_TEXT_ITEM("设定堆积", "WINOPS_LAYER")
ADD_MENU_SUBMENU_TEXT_ITEM("设定边缘风格", "WINOPS_BORDERS")
/*ADD_MENU_SUBMENU_TEXT_ITEM("内存状况", "WINOPS_SNAP")*/
END_MENU
/* Also available macros:
ADD_MENU_ITEM(text, icon_iclass, action, parameters)
ADD_MENU_ICON_ITEM(icon_iclass, action, parameters)
ADD_MENU_SUBMENU_ITEM(text, icon_iclass, submenu_name)
ADD_MENU_SUBMENU_ICON_ITEM(icon_iclass, submenu_name)
*/
/* The LONG Way */
/* A menu style - MUST provide DEFAULT */
/*
__MENU_STYLE __BGN
__NAME "DEFAULT"
__BORDER "MENU_BORDER"
__TCLASS "TEXT1"
__BG_ICLASS "TITLE_BAR_HORIZONTAL"
__ITEM_ICLASS "TITLE_BAR_HORIZONTAL"
__SUBMENU_ICLASS "DEFAULT_MENU_SUB"
__USE_ITEM_BACKGROUNDS __OFF
__MAXIMUM_NUMBER_OF_COLUMNS 10
__MAXIMUM_NUMBER_OF_ROWS 20
__END
__MENU __BGN
__NAME "SUBMENU1"
__STYLE "DEFAULT"
__MENU_ITEM "NULL" "Text Only"
__MENU_ITEM "DEFAULT_TOOLTIP_CLOUD1" "Text + Icon"
__MENU_ACTION __A_EXEC "Eterm"
__END
__MENU __BGN
__NAME "WINDOW_MENU"
__STYLE "DEFAULT"
__MENU_ITEM "NULL" "This menu Item does Nothing"
__MENU_ITEM "ICON_ICLASS" "Eterm"
__MENU_ACTION __A_EXEC "Eterm"
__MENU_ITEM "DEFAULT_TOOLTIP_CLOUD1"
__MENU_ACTION __A_EXEC "xterm"
__SUMENU "SUBMENU1" "DEFAULT_TOOLTIP_CLOUD1" "This is a submenu"
__END
*/ |