2010-06-29

Ubuntu 語系設定與變更

# 更改預設語系,設定檔路徑:/var/lib/locales/supported.d/local
locale-gen zh_TW
locale-gen zh_TW.UTF-8

# 動態變更成[中文語系]
[root@linux ~]# export LANG=zh_TW.UTF-8
[root@linux ~]# export LC_ALL=zh_TW.UTF-8


# 動態變更成[英文語系]
[root@linux ~]# export LANG=C
[root@linux ~]# export LC_ALL=C


參考來源:
Ubuntu 9.10 增加 / 設定 語系(Locale)

0 回應: