#!/bin/bash

case $LANG in
	ca*)
		BAT="Bateria"
		MSG="<b>Miauu, tinc gana</b> \n\nLa bateria s'està esgotant. \nEndolla el portàtil o s'apagarà \nen breus moments. \n"
		VOICE="La bateria s'està esgotant. Endolla el portàtil o s'apagarà en breus moments."
	;;
	es*)
		BAT="Batería"
		MSG="<b>Miauu, tengo hambre</b> \n\nLa batería se está agotando. \nEnchufa el portátil o se apagará \nen breves momentos. \n"
		VOICE="La batería se está agotando. Enchufa el portátil o se apagará en breves momentos."
	;;
	gl*)
		BAT="Batería"
		MSG="<b>Miauu, teño fame.</b> \n\nA batería estase esgotando. \nEnchufa o portátil ou apagarase \nen breves momentos. \n"
		VOICE="A batería estase esgotando. Enchufa o portátil ou apagarase en breves momentos."
	;;
	*)
		BAT="Battery"
		MSG="<b>Meow, I'm hungry</b> \n\nBattery is empty, plug your \nlaptop or it will be off soon. \n"
		VOICE="Battery is empty, plug your laptop or it will be off soon."
	;;
esac

yad --window-icon "mate-power-preferences" --image "mate-power-preferences" --button=gtk-close --title "${BAT}" --text "${MSG}" | minino-habla "${VOICE}" 
