#!/bin/sh
# check if we are under X-Window
if [ "$DISPLAY" != "" ] && type xmessage >/dev/null 2>&1
then
# type `xlsfonts' and choose your font if you are
# getting message `cannot convert string `9x15bold' to ...'
	case $LANG in 
	"pl_PL")
		title="Dhammapada, cieka prawdy Buddhy"
		xmessage -font '-*-courier-medium-r-*-*-*-*-*-*-*-*-iso8859-2' -title "$title" -background black -bordercolor yellow -foreground yellow -center -xrm '*maxWidth: 800' "`display-dhammapada $@`" &
		;;
 	*)
		title="The Dhammapada"
		xmessage -font '9x15bold' -title "$title" -background black -bordercolor yellow -foreground yellow -center -xrm '*maxWidth: 800' "`display-dhammapada $@`" &
	esac
	
else
	tput bold || tput md
	display-dhammapada  "$@"
	tput sgr0 || tput me
fi
