#!/bin/bash
#Website: http://www.dwhd.org 
#IMPORTANT!!!Please Setting the following Values!
#One Key 
 
# START
apt-get install -y language-pack-zh-hans

echo "LANG=\"zh_CN.UTF-8\"" >> /etc/environment
echo "LANGUAGE=\"zh_CN:zh:en_US:en\"" >> /etc/environment

echo "en_US.UTF-8 UTF-8" > /var/lib/locales/supported.d/local
echo "zh_CN.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local
echo "zh_CN.GBK GBK" >> /var/lib/locales/supported.d/local
echo "zh_CN GB2312" >> /var/lib/locales/supported.d/local
echo "en_GB.UTF-8 UTF-8" >> /var/lib/locales/supported.d/local

locale-gen
clear;echo "Please wait,Script running...";sleep 5

echo "LANG=\"zh_CN.UTF-8\"" > /etc/default/locale
echo "LANGUAGE=\"zh_CN:zh:en_US:en\"" >> /etc/default/locale

locale
clear;echo "Please wait,Script running...";sleep 5

clear
echo ""
echo ""
echo ""
echo -e "\033[43;31;5m                      The system is going down for reboot NOW!                            \033[0m"
sleep 5
reboot
