#!/usr/sbin/install-menu

compat="menu-1"
!include menu.h

function encoding()=substr(lang(), "6", "99")
function ltitle()=encode(translate(lang(),title()), encoding(), "utf8")

genmenu=".deskmenurc"
rootprefix="/usr/X11R6/share/deskmenu/"
userprefix=""

supported
  x11=	"menuitem=" ltitle() ":" $command"\n"
  text= "menuitem=" $title ":" "xterm -T \"" $title "\" -e " $command"\n"
endsupported

preoutput="# Automatically generated file. Do not edit.\n\n\keycode=Control+Escape\n\n"
postoutput="\ndivider=\n\nwindowlist=Window List\nworkspaces=Workspaces\n"

startmenu=""
submenutitle="submenu=" ltitle() "\n"
endmenu=ifneq($title,"ALT Linux menu","endmenu=\n")
mainmenutitle="ALT Linux menu"
treewalk=M)