Funtoo Linux Localization/pt-br
Definir Idioma Padrão
No Funtoo, há dois arquivos de configuração responsáveis suas configurações de idioma:
/etc/env.d/00basic. O primeiro arquivo contém somente en_US.UTF-8 locale habilitado. O ultimo é um arquivo padrão embarcado que vem a partir do stage3 e responsável pelo en_US.UTF-8 locale system-wide. não recomendado editar.
Os passos a seguir lhe guiarão através do processo de editar o idioma padrão do sistema (default system language), utilizando o francês canadense como um exemplo.
Primeiro você terá que editar
# nano -w /etc/locale.gen
Especifique sua localidade preferida com o formato de caracter acompanhante (Você vai preferir principalmente UTF-8):
It is recommended to keep the preconfigured en_US.UTF-8 locale as a fallback.
en_US.UTF-8 UTF-8 fr_CA.UTF-8 UTF-8
To determine an appropriate locale for your system, you should take a look into
/usr/share/i18n/SUPPORTED for the default list of supported combinations or check the
/usr/share/i18n/locales/ directory for a list of valid values.
You are strongly advised to use at least one UTF-8 locale since some applications may require it.
Now, those locales need to be generated:
# locale-gen * Generating 2 locales (this might take a while) with 1 jobs * (1/2) Generating en_US.UTF-8 ... [ ok ] * (2/2) Generating fr_CA.UTF-8 ... [ ok ] * Generation complete
Once done, you can apply your locale settings system-wide. First display all available options:
$ eselect locale list Available targets for the LANG variable:  C  POSIX  fr_CA.utf8  en_US.utf8 * [ ] (free form)
The blue star indicates the current default system locale. You can now change it according your wishes:
# eselect locale set 3 Setting LANG to fr_CA.utf8 ... Run ". /etc/profile" to update the variable in your shell.
Alternatively, you can set the default locale manually. This file should be created first with your prefered editor:
You can verify your actions using:
$ eselect locale show LANG variable in profile: fr_CA.utf8
For an immediate effect it is required to reload the environment:
# env-update && source /etc/profile >>> Regenerating /etc/ld.so.cache...
Congratulations! You have successfully set up your default language on Funtoo.
Portage uses a special variable
LINGUAS that defines what localizations/translations get installed by default. By default,
LINGUAS in unset, which will result in all available localizations being installed by Portage.
It is possible to customize the setting of
LINGUAS by setting it in
# LINGUAS="en_US zh_CN"
LINGUAS variable should use spaces between each localization name.
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
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
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