Changes

Jump to: navigation, search

Funtoo Linux Localization

399 bytes added, 9 months ago
Marked this version for translation
<languages/>
<translate>
=== Set Default Language ===<!--T:1-->
<!--T:2-->
On Funtoo, there are two configuration files responsible for your language settings: {{f|/etc/locale.gen}} and {{f|/etc/env.d/00basic}}. First file has only en_US.UTF-8 locale enabled. Last one is a default shipped file comes from stage3 and responsible for en_US.UTF-8 locale system-wide. Not recommended to edit.
The following steps will guide you through the process of setting up the default system language, using French Canadian as an example.
{{warning|You are strongly advised to use ''at least one'' UTF-8 locale since some applications may require it.}}
<!--T:3-->
Now, those locales need to be generated:
{{console|body=
}}
<!--T:4-->
Once done, you can apply your locale settings system-wide. First display all available options:
{{console|body=
}}
<!--T:5-->
For an immediate effect it is required to reload the environment:
{{console|body=
Congratulations! You have successfully set up your default language on Funtoo.
=== Portage Settings ===<!--T:6-->
<!--T:7-->
Portage uses a special variable {{c|L10N}} that defines what localizations/translations get installed by default. By default, {{c|L10N}} is unset, which only builds the packages' default language.
<!--T:8-->
It is possible to customize the setting of {{c|L10N}} by setting it in {{f|/etc/portage/make.conf}}:
<!--T:9-->
{{file|lang=bash|name=/etc/portage/make.conf|body=
# Install English (United States) and Chinese (China) translations (if available)
}}
<!--T:10-->
The {{c|LI10N}} variable should use spaces between each localization name. A list of all supported languages can be found in {{f|/usr/portage/profiles/desc/l10n.desc}}.
<!--T:11-->
Some old packages still use the deprecated {{c|LINGUAS}} variable. You can set it in {{f|/etc/portage/make.conf}}:
<!--T:12-->
{{file|lang=bash|name=/etc/portage/make.conf|body=LINGUAS="en_US zh_CN"}}
<!--T:13-->
It uses the same syntax, but uses other language codes which can be found in {{f|/usr/portage/profiles/desc/linguas.desc}}.
<!--T:14-->
After setting the {{c|L10N}} and {{c|LINGUAS}} USE flags you may need to re-emerge some packages:
<!--T:15-->
{{console|body=###i## emerge --ask --newuse --deep --with-bdeps=y @world}}
=== Read Your Language ===<!--T:16-->
<!--T:17-->
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: 日本語フォント
<!--T:18-->
Check if you have your language installed (Chinese) by using the {{c|fc-list}} command from the {{c|media-libs/fontconfig}} ebuild:
<!--T:19-->
{{console|body=
# ##i##fc-list :lang=zh
}}
<!--T:20-->
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.
<!--T:21-->
For Japanese:
<!--T:22-->
{{console|body=
# ##i##emerge media-fonts/kochi-substitute
}}
<!--T:23-->
For Chinese:
{{console|body=
}}
<!--T:24-->
For Korean:
<!--T:25-->
{{console|body=
# ##i##emerge media-fonts/baekmuk-fonts
}}
<!--T:26-->
A very good alternative could be a Noto Fonts by Google, claimed to be a fonts with widest language support:
{{console|body=
}}
=== Keymap ===<!--T:27-->
<!--T:28-->
Funtoo Linux defaults to a US English keyboard. If you are using another type of keyboard, edit {{f|/etc/conf.d/keymaps}} and set keymap to your keyboard model. For example, cf for French Canadian keyboard, fr for French Azerty.
<!--T:29-->
{{console|body=
# ##i##nano -w /etc/conf.d/keymaps
}}
=== Input Method ===<!--T:30-->
<!--T:31-->
ibus is an Intelligent Input Bus for Linux.
<!--T:32-->
{{console|body=
# ##i##emerge -av ibus
}}
<!--T:33-->
You also need to install language table for ibus (Chinese)
<!--T:34-->
{{console|body=
# ##i##emerge -av ibus-table-chinese
Bureaucrats, Administrators, wiki-admins, wiki-staff
6,258
edits

Navigation menu