#!/bin/sh

#turn off auto expansion
set -f

_()
{
LANG=${in_language%%;*}.utf8 gettext "alterator-xinetd" "$1"
}


. /usr/share/alterator/build/backend3.sh

on_message()
{
	case "$in_action" in
		#information for renderer
		template)
			echo '('
#			echo ' template "card-index"'
			echo ' template "form"'
			echo ' translate "alterator-xinetd"'
			echo ' help "xinetd.html"'
			if [ $in__objects = "/" ];then
				echo 'url "xinetd-list.html"'
			else
				echo 'url "xinetd-object.html"'
				echo 'redirect "/xinetd"'
			fi
			echo ')'
			;;
		info)
			echo '('
			printf ' title "%s"' "`_ "Xinetd server"`"
			printf ' description "%s"' "`_ "Xinetd server administration"`"
			printf ' group "%s"' "`_ "Servers"`"
			printf ' weight 50'
			echo ')'
			;;
		*)
			echo '#f'
			;;
	esac
}

message_loop
