#!/bin/sh

#turn off auto expansion
set -f

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


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

on_message()
{
	case "$in_action" in
		#information for renderer
		template)
			echo '('
			echo 'template "form"'
			echo 'url "squid.html"'
			echo 'help "squid.html"'
			echo ')'
			;;
		info)
			echo '('
			printf ' title "%s"' "$(_ "Proxy server")"
			printf ' description "%s"' "$(_ "Squid server Administration")"
			echo ')'
			;;
		*)
			echo '#f'
			;;
	esac
}

message_loop
