最初由 dreamdreams 发表 According to my understanding, Gentoo doesn't need i18n. You just install Chinese fonts, setup font path or/and fonts.dir/fonts.scale, and set your LC_ environment variables. That's it.
Your application will read these variables. If the application doesn't support Chinese, or doesn't read these variables, i18n could do nothing. I guess i18n just supplies a standard place to config these variables. Actually you can set them anywhere you want.
basiclly, i18n does NOT means some file called "i18n" or sth like this, it stands for internationalization. the LC_ variables are just some configurable "interface" of it. The glibc has a full set of functions to handle all these things according to your locale settings.
I meant .i18n files, not i18n mechanism. I simply don't have any .i18n files nor kde-i18n packages with my Gentoo box. My application interfaces are all English though they can still handle Chinese contents with LC_* settings.
I don't think local settings should be system wide. Coz different users in the system may have different native languages. So it's better setting them in particular user's $HOME/.bashrc or whatever place instead /etc/env.d/ .
Did you mean that the package kde-i18n just provide us an international interface such as menus and buttons of KDE, and we don't need it to support Chinese programs?
Now I installed the simsun, simsun18030 and tahoma fonts on my computer, they works well and I can see the web page. But I failed in xsim:
#~>xsim
XSIM: failed create font :-*-*-*-*-*-*-16-*-*-*-*-*-iso8859-1
Looks xsim can't find a font in my system to use for inputpanel and status panel. Why? Here is my /etc/xsimrc:
Did you mean that the package kde-i18n just provide us an international interface such as menus and buttons of KDE, and we don't need it to support Chinese programs?
Now I installed the simsun, simsun18030 and tahoma fonts on my computer, they works well and I can see the web page. But I failed in xsim:
Yes I did.
About xsim, I have no idea though I've ever used it without problem. I recommend fcitx. Check it out, you will be happier with it than xsiim. You could also take a look at www.fcitx.org frist.
in my ~/.bashrc it can start up, but seems it has been disabled. The WuBi icon is gray, and I can't active the input method by Ctrl+Space, Ctrl+Shift, Alt+1 or 2... Do you know how to fix it?
And also, can you tell me how to let fcitx automatically start when I start KDE? If I add it in ~/.bashrc it will run every time I start a terminal; I tried to add "fcitx &" in ~/.xinitrc after the "startkde" command , together with the the "XMODIFIERS" environment variables, but it doesn't work.
I tried to add "fcitx &" in ~/.xinitrc after the "startkde" command , together with the the "XMODIFIERS" environment variables, but it doesn't work.
-------------------
not after, but before :-)