#!/bin/sh 

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


#turn off auto expansion
set -f

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

on_message()
{
	case "$in_action" in
		#information for renderer
		template)
			if [ "$in__objects" = "/" ];then
				echo '('
				echo 'template "card-index" '
				echo 'url "alternatives.html"'
				echo 'help "alternatives.html"'
				echo ')'
			else
				echo '#f'
			fi
			;;
		info)
			echo '('
			printf ' title "%s"' "`_ "Alternatives subsystem"`"
			printf ' group "%s"' "`_ "System"`"
			printf ' description "%s"' "`_ "This subsystem allow you to share same filesystem path between different programs"`"
			echo ')'
			;;
		*)
			echo '#f'
			;;
	esac
}


message_loop

