
Code: Select all
en_US/ISO-8859-1
en_US.UTF-8/UTF-8
zh_CN/GB18030
zh_CN.GB2312/GB2312
zh_CN.UTF-8/UTF-8Code: Select all
en_US.UTF-8/UTF-8
en_US/ISO-8859-1
zh_CN.GB18030/GB18030
zh_CN.GBK/GBK
zh_CN.UTF-8/UTF-8
zh_CN/GB2312
zh_HK.UTF-8/UTF-8
zh_HK/BIG5-HKSCS
zh_TW.EUC-TW/EUC-TW
zh_TW.UTF-8/UTF-8
zh_TW/BIG5
Code: Select all
export LC_CTYPE=zh_CN.GBK

Code: Select all
emerge glibcCode: Select all
export LC_CTYPE=zh_CN.UTF-8If you have not used "userlocales" USE flag when you built your system, maybe you don't need to recompile glibc. Typetane_stelzer wrote:So for 1. it is okay to just follow the localization guide http://www.gentoo.org/doc/en/guide-localization.xml and re-emerge glibc is justCode: Select all
emerge glibc
Code: Select all
$ locale -a | grep zhThe Chinese fonts in portage include zh-kcfonts, twmoefonts, hkscs-ming, and arphicfonts. The arphicfonts are probably more useful than others because both Simplified and Traditional Chinese fonts are included. Just emerge them as usual, they should be installed in the /usr/share/fonts directory. As to /etc/X11/xorg.conf lines, they are in the "Files" Section, just look at it and you'll know how to edit it.tane_stelzer wrote:...
for 2 which fonts should i use and how do i copy them into fonts and what line do i have to add to /etc/X11/xorg.conf
...
Yes and no. In general, your interface will be in English and you should be able to see and input Chinese in a file, browser, and so on. But if your Chinese files were created in a locale environment other than zh_CN.UTF-8 (say zh_CN.GBK as in a Simplified Chinese windows), you would not be able to see the filename correctly if it's in Chinese; that's why I said you might need to do a bit testing.tane_stelzer wrote:...
well i dont complete chinese will i still keep everything in english when i set my locals toand just be able to see chinese?Code: Select all
export LC_CTYPE=zh_CN.UTF-8
...

I'm not sure if there's any tools to do such things. If you can't find one, try the following. Find the correct locale first so that you can read the filenames. Copy and paste the filenames into a text file; at the same time do some indexing so that you know which filename corresponds to which file. Restart X with the utf8 locale, open the text file with an editor such as kwrite, switch to the correct 'Encoding' so that you can read those Chinese names. Rename those files by copying and pasting from that textfile. It's pretty troublesome, but since you can't input Chinese, this is the only way I can think of.tane_stelzer wrote:...if i cant see the chinese correctly as u mentioned,is there a way to change it to utf8,so that i would be able to read it??

convmvtane_stelzer wrote:Ok that is really helpful thx just one last question, if i cant see the chinese correctly as u mentioned,is there a way to change it to utf8,so that i would be able to read it??


Code: Select all
ls /usr/share/locale/Code: Select all
C cy et_EE ia mk pt ta yi
af da eu id ml pt_BR te yo
am de eu_ES is mn rm tg zh
ang de_AT fa it mr ro th zh_CN
ar el fi ja ms ru tk zh_CN.GB2312
as en fr ka my_MM ru_RU tl zh_TW
az en@boldquot ga kn nb rw tr zh_TW.Big5
az_IR en@quot gl ko ne sk ug zu
be en_AU gr ku nl sl uk
bg en_CA gu li nn sp uk_UA
bn en_GB he locale.alias no sq uz
br en_US hi lt nso sr uz@Latn
bs eo hr lug or sr@Latn vi
ca es hu lv pa sr@ije wa
cs et hy mi pl sv xh
Code: Select all
en_US/ISO-8859-1
en_US.UTF-8/UTF-8
ja_JP.EUC-JP/EUC-JP
ja_JP.UTF-8/UTF-8
ja_JP/EUC-JP
en_HK/ISO-8859-1
en_PH/ISO-8859-1
de_DE/ISO-8859-1
de_DE@euro/ISO-8859-15
es_MX/ISO-8859-1
fa_IR/UTF-8
fr_FR/ISO-8859-1
fr_FR@euro/ISO-8859-15
it_IT/ISO-8859-1
zh_CN/ISO-8859-1
zh_CN.UTF-8/UTF-8
zh_CN.GB2312/ISO-8859-1
zh_CN.GB2312.UTF-8/UTF-8
zh_TW/ISO-8859-1
zh_TW.UTF-8/UTF-8
zh_TW.Big5/ISO-885901
Code: Select all
export LC_CTYPE=zh_CN.UTF-8

Code: Select all
Traceback (most recent call last):
File "/usr/bin/java-config", line 14, in ?
from java_config import jc_options
ImportError: No module named java_config
!!! ERROR: net-dns/libidn-0.5.15 failed.
!!! Function src_compile, Line 25, Exitcode 0

Code: Select all
echo "sys-libs/glibc userlocales" >> /etc/portage/package.use