ubuntu系统中文环境配置

星期二 下午 13:53 狂奔的蜗牛 Linux 1468 views
0
Comments
#/bin/bash
apt-get install -y language-pack-zh-hans language-pack-zh-hant

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

#/var/lib/locales/supported.d/local
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

locale-gen

#/etc/default/locale
echo "LANG=\"zh_CN.UTF-8\"">/etc/default/locale
echo "LANGUAGE=\"zh_CN:zh\"">>/etc/default/locale
echo "LC_NUMERIC=\"zh_CN.UTF-8\"">>/etc/default/locale
echo "LC_TIME=\"zh_CN.UTF-8\"">>/etc/default/locale
echo "LC_MONETARY=\"zh_CN.UTF-8\"">>/etc/default/locale
echo "LC_PAPER=\"zh_CN.UTF-8\"">>/etc/default/locale
echo "LC_NAME=\"zh_CN.UTF-8\"">>/etc/default/locale
echo "LC_ADDRESS=\"zh_CN.UTF-8\"">>/etc/default/locale
echo "LC_TELEPHONE=\"zh_CN.UTF-8\"">>/etc/default/locale
echo "LC_MEASUREMENT=\"zh_CN.UTF-8\"">>/etc/default/locale
echo "LC_IDENTIFICATION=\"zh_CN.UTF-8\"">>/etc/default/locale
echo "SUCCESS!Note:Please reboot system take it work."
2017/04/10 13:53:55
评论(0)
没有评论!

发表评论

引用成功取消引用×

昵称*: 邮箱*: 网址:

最多可输入300字符 验证码*:


Process: 0.056s | DB :17 queries | UseMem:2,274 kb