|
|
为啥要用这个?
用它可以不手动改文件(改之前还得自己手动备份);
有一点“智能”,全局和个别用户的分开设置。
特别说明:
对于编程,我是外行;
脚本出现任何意外问题,我概不负责;
我写的脚本和文章都是可用可无参考。
具体功能如下:
# 设置/切换 系统全局/个别用户 英文/中文 locale
# 通过记录日志恢复已经修改过文件
# 自动安装相应字体
下载 l_config_locale.sh
http://www.shuge.org/lee/posts/locale-note.html
- Description: configure UTF-8 locale, install zh_CN fonts for Gentoo && KDE 3.* automatically
- Notes: lcl currently is unstable now
- Syntax: l_config_locale <option1> [option2] [option3] ...
- Options: -1, skip-checking-log - backup files will modified
- -2, skip-checking-network - DON'T USE THIS UNLESS YOU KNOW WHAT YOU'RE DOING
- -3, skip-update-eix - DON'T USE THIS UNLESS YOU KNOW WHAT YOU'RE DOING
- -4, skip-locale-gen - doen't run locale-gen
- -r, restore - restore modified files,
- you can't use other options while use this
- -e, en_US.UTF-8 - set locale to en_US.UTF-8,
- defaults is zh_CN.UTF-8
- -l, local - configure local user locale only
- -s, system-wide - configure system-wide users locale
- -h, help - show this message
- -v, version - show version information
- Also See:
- Wikipedia 'Locale' Page
- http://en.wikipedia.org/wiki/Locale
- Gentoo Linux Localization Guide ( Chinese )
- http://www.gentoo.org/doc/zh_cn/guide-localization.xml
- GNU Manual 'gettext' Chapter ( Chinese )
- http://www.shuge.org/project/enjoy_gentoo/The%20User%27s%20View%20in%20zh_CN.html
- Howto Configure Locale ( Chinese )
- http://www.syxin.com/2006/03/localelocale.html
复制代码
通常地,普通用户,设置英文界面,并让中文输入法可用:
超级用户,设置全局用户为中文界面,并让中文输入法可用:
哦,last but very important , 特别要重视乐哥的讲解
LANGUAGE变量的最最精确的解释
http://www.linuxsir.cn/bbs/thread339838.html |
|