#!/usr/sbin/install-menu
#
# Generates fluxbox menus for all registered applications.
compat="menu-1"

!include menu.h

genmenu="menu"
rootprefix="/usr/X11R6/share/fluxbox/"
userprefix=".fluxbox/"
treewalk=(M)
#rootsection="/ALTLinux"

function ltitle()=translate(lang(),title())

supported
    x11=   nstring(level(), "   ") "[exec] (" esc(ltitle(), "()") ") {" esc($command, "()") "}\n" 
    wm=	   nstring(level(), "   ") "[restart] ("  esc(ltitle(), "()")  ")  {" esc($command, "()") "}\n" 
    text=  nstring(level(), "   ") "[exec] (" esc(ltitle(), "()") ") { xterm -T \"" esc(ltitle(), "()") "\" -e " esc($command, "()") "}\n"
    fluxbox= nstring(level(), "   ") "[" esc($command, "()") "] (" esc(ltitle(), "()") ")\n"
endsupported

preoutput= \
  "# Automatically generated file. Do not edit.\n\n\n\nALTLinux MENU\n\n[begin] (ALTLinux)\n"
postoutput= \
   "\nALTLinux END\n"

startmenu= ""
submenutitle= nstring(level(), "   ") "[submenu] (" esc(ltitle(),"()") ") {" esc($longtitle,"()") "}\n"
endmenu= nstring(level(), "   ") "[end]\n"

