The following commit has been merged in the master branch:
commit b227c01f71d9de2f37e27b28c489efac14d4ca11
Author: Franklin <[email protected]>
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

_______________________________________________
Blends-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/blends-commit

Reply via email to