|
发表于 2009-10-4 09:35:42
|
显示全部楼层
1. /etc/env.d/02locale 文件- LC_ALL="zh_CN.UTF-8"
- LANG="zh_CN.UTF-8"
-
复制代码
2. /etc/locale.gen 文件,在最后加这么几行:- zh_CN.UTF-8 UTF-8
- en_US ISO-8859-1
- en_US.UTF-8 UTF-8
- zh_CN GB18030
- zh_CN.GB2312 GB2312
- zh_CN.GBK GBK
-
复制代码 修改好文件之后运行:- #locale-gen
- #env-update && source /etc/profile
复制代码 以上两点是使系统拥有zh_CN.UTF-8的中文环境。
3. /etc/make.conf 文件:
在此文件的
USE 一项中添加 cjk nls xft cleartype
再添加
LC_ALL="C" #gcc-4.3的编译需要此变量
LINGUAS="zh_CN" #中文环境
两行。
俺的配置,仅供参考:http://github.com/transtone/transconfig/blob/master/make.conf
4. 中文字体
emerge droid
当然如果你喜欢其他的字体如wqy请 emerge wqy-zenhei
5. 字体配置 /etc/fonts/local.conf 文件
俺的配置,仅供参考:
http://github.com/transtone/transconfig/raw/master/local.conf
有这些应该就差不多了吧,欢迎其他兄弟补充。 |
|