LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 902|回复: 5

请教如何汉化xfce4.2的桌面右键菜单?

[复制链接]
发表于 2005-2-1 17:54:06 | 显示全部楼层 |阅读模式
请教如何汉化xfce4.2的桌面右键菜单?
发表于 2005-2-1 18:00:30 | 显示全部楼层
把menu.xml里都改成中文不就可以了,注意是UTF-8的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-1 18:13:13 | 显示全部楼层
我的menu.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xfdesktop-menu>
<!--
     Explanantion of Xfce 4 menu file:
     =================================
     Here we will try to explain the format of the menu file.  Look at the
     actual menu below for the real examples.  You shouldn't really need to
     edit this manually; check out xfce4-menueditor instead.
-->
<!-- Obviously, this is how you make a comment ;-) -->
<!--

  + Everything is between exactly one pair of
    <xfdesktop-menu></xfdesktop-menu> tags.

  + Applications:
    <app name="Name in menu" cmd="Command to run" term="false"
         icon="iconfile"  snotify="false" visible="true" />
    The 'term' attribute determines if the program needs a terminal to run,
    and 'snotify' sets whether or not the program supports startup
    notification.  You can set an icon to be displayed next to the item with
    the 'icon' attribute.  Only 'name' and 'cmd' are required.

  + Separators:
    <separator visible="true" />
    Creates a horizontal separator.  The 'visible' attribute is optional.

  + Submenus:
    <menu name="Name in menu" icon="iconfile" visible="true"></menu>
    Only 'name' is required, but you can also set an icon to be displayed using
    the 'icon' attribute.  Between the menu tags you can define more
    applications, separators and menus.

  + Including other files:
    <include type="file" src="menu2.xml" visible="true" />
    Includes the file menu2.xml.  A relative path is assumed to be rooted at
    ~/.xfce4/ or $XDG_CONFIG_DIRS/xfce4/. An absolute path will be treated
    as such.
   
  + Including an autogenerated system menu:
    <include type="system" />
    Includes a system menu.
-->
<xfdesktop-menu>

        <app name="运行" cmd="xfrun4" icon="gnome-fs-executable"/>

        <separator/>

        <app name="终端" cmd="xfterm4" tip="Terminal emulator" icon="gnome-terminal"/>
        <app name="文件管理器" cmd="rox" icon="file-manager"/>
        <app name="浏览器" cmd="sensible-browser" icon="gnome-globe"/>

        <separator/>

        <!--
          The next line includes the autogenerated menu at the current level.  If
          you want, you can put this in its own submenu.
        -->
        <include type="system" style="multilevel" unique="true"/>

  <menu name="Debian" icon="debian">
          <include type="file" src="menudefs.hook"/>
  </menu>

        <!--
          Uncomment the following line (and comment the above) if you would rather
          include a separate menu file instead of using the auogenerated menu.
        -->
        <!-- <include type="file" src="menu2.xml"/> -->

    <separator/>

    <app name="帮助" cmd="xfhelp4" tip="Display help about Xfce" icon="gnome-help" visible="false"/>
    <app name="关于" cmd="xfce4-about" tip="Display information about Xfld and Xfce" icon="xfce-system-info" visible="false"/>

    <!--
      This will cause xfce4-session to quit, after first displaying a log-out
      dialog box.  If xfce4-session isn't running, it will quit xfdesktop.
    -->
    <builtin name="退出" cmd="quit" tip="Quit Xfce desktop session" icon="gnome-logout"/>

</xfdesktop-menu>
其中有一个<include type="system" style="multilevel" unique="true"/>
system的在哪呢?请看我的截图:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

发表于 2005-2-1 23:03:23 | 显示全部楼层
system是由系统自动生成的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-1 23:39:40 | 显示全部楼层
总有个目录吧!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-3 15:14:48 | 显示全部楼层
谁能详细指点一下?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表