[Blends-commit] [SCM] ezgo branch, master, updated. 69fd53f59b781100ba94e6547b889f5b5e01ca49

Franklin franklin at goodhorse.idv.tw
Thu Dec 11 02:10:10 UTC 2014


The following commit has been merged in the master branch:
commit b227c01f71d9de2f37e27b28c489efac14d4ca11
Author: Franklin <franklin at goodhorse.idv.tw>
Date:   Wed Dec 10 20:07:40 2014 +0800

    show_message functions for kdialog and zenity

diff --git a/ezgo-misc/media_pak_install/media_pak_install.func b/ezgo-misc/media_pak_install/media_pak_install.func
new file mode 100644
index 0000000..2851138
--- /dev/null
+++ b/ezgo-misc/media_pak_install/media_pak_install.func
@@ -0,0 +1,26 @@
+
+
+locale=$(env |grep "LANG="|sed  s/LANG=//g|sed s/.UTF-8//g|sed s/.utf8//g)
+$locale
+
+show_info_message()
+{
+	if [ -x /usr/bin/kdialog ]; then
+		kdialog --msgbox "$1"
+	elif [ -x /usr/bin/zenity ]; then
+		zenity --info --text "$1"
+	else
+		echo "info: $1" >> $HOME/media_pak_install.log
+	fi
+}
+
+show_error_message()
+{
+	if [ -x /usr/bin/kdialog ]; then
+		kdialog --error "$1"
+	elif [ -x /usr/bin/zenity ]; then
+		zenity --error --text "$1"
+	else
+		echo "error: $1" >> $HOME/media_pak_install.log
+	fi
+}

-- 
Blend for educatipn with asian specific adaptations



More information about the Blends-commit mailing list