chinese support

by spin6lock
0 deployments · 0 still active · last rev. 1 year ago

add chinese support

Compatible with: Debian 7, Debian 8, Ubuntu 14.04 LTS
						#!/bin/bash

function add_chinese_support {
    cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
    echo "TZ='Asia/Shanghai'; export TZ" >> /etc/profile
    locale-gen zh_CN.UTF-8
    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
}