Difference between revisions of "Funtoo Linux Localization"
Revision as of 16:23, December 30, 2012
Read Your Language
A newly installed Funtoo Linux does not able to read all the languages. You want to read the stuff, say, in Mozilla Firefox. You need to install fonts - A good sign that you have not installed the proper fonts is that the following characters appear as boxes with numbers inside: 日本語フォント
Check if you have your language installed (Chinese) by using the fc-list command from the media-libs/fontconfig ebuild:
# fc-list :lang=zh
A easier way to get the correct font installed is copy this to /etc/portage/make.conf (Simplified Chinese)
# LANGUAGE="en_US zh_CN"
After editing the file, run emerge:
# emerge -avuDN world
If you are lucky, the right font will be installed, and your apps will also be able to use Chinese as the default language. But in case you not have the right font installed in this way, you need to install them manually.
# emerge media-fonts/kochi-substitute
# emerge media-fonts/arphicfonts
# emerge media-fonts/baekmuk-fonts
Set Default Language
Suppose you are able to read your languages and you want to go further to set the default Languages for your apps, such as xfce4.
/etc/locale.gen and /etc/env.d/02locale are used to support your local language. The following are examples for French Canadian. You can look in /usr/share/i18n/SUPPORTED for the default list of supported combinations or look in /usr/share/i18n/locales to determine values to use.
# nano -w /etc/locale.gen
Copy this value to your file (French Canadian)
To set the default language globally:
# nano -w /etc/env.d/02locale
Copy this to your file (French Canadian)
After editing the files, generate a localized environment:
# locale-gen && env-update && source /etc/profile
You can also set the default language per user by set the LANG and LANGUAGE environment variable in ~/.profile, and then logout and login.
Funtoo Linux defaults to a US English keyboard. If you are using another type of keyboard, edit /etc/conf.d/keymaps and set keymap to your keyboard model. For example, cf for French Canadian keyboard, fr for French Azerty.
# nano -w /etc/conf.d/keymaps
ibus is an Intelligent Input Bus for Linux.
# emerge -av ibus
You also need to install language table for ibus (Chinese)
# emerge -av ibus-table-chinese