chinese support

by zhfish
12 deployments · 2 still active · last rev. 2 years ago

debian,ubuntu,chinese support

Compatible with: Debian 8, Ubuntu 14.04 LTS, Ubuntu 12.04 LTS
						#!/bin/bash
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
echo "TZ='Asia/Shanghai'; export TZ" >> /etc/profile
locale-gen zh_CN.UTF-8
locale-gen zh_CN.GBK GBK
locale-gen zh_CN GB2312
update-locale LC_ALL=zh_CN.UTF-8
dpkg-reconfigure locales
locale-gen
apt-get update
apt-get -y install language-pack-zh-hans language-pack-zh-hans-base