#!/bin/sh 

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

#turn off auto expansion
set -f

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

on_message()
{
	case "$in_action" in
		#information for renderer
		template)
			echo '('
			echo ' template "form"'
			echo ' url "datetime.html"'
			echo ' help "datetime.html"'
			echo ')'
			;;
		info)
			echo '('
			printf ' title "%s"' "`_ "Date/Time"`"
			printf ' group "%s"' "`_ "Date/Time"`"
			printf ' description "%s\n%s"' "`_ "Date/Time setup"`"
			printf ' weight 20'
			echo ')'
			;;
		*)
			echo '#f'
	esac
}

message_loop
