UTF-8: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
First set the language variables in your /etc/make.conf, so that programms like KDE, Firefox or OpenOffice.org also install their language packs: | First set the language variables in your /etc/make.conf, so that programms like KDE, Firefox or OpenOffice.org also install their language packs: | ||
{{ | {{File|/etc/make.conf| | ||
<pre> | <pre> | ||
LINGUAS="de" | LINGUAS="de" | ||
| Line 8: | Line 8: | ||
This is the default installed by OpenRC, but ensure it's set: | This is the default installed by OpenRC, but ensure it's set: | ||
{{ | {{File|/etc/rc.conf| | ||
<pre> | <pre> | ||
unicode="YES" | unicode="YES" | ||
| Line 15: | Line 15: | ||
Now edit /etc/locale.gen so that your glibc generates the right locale: | Now edit /etc/locale.gen so that your glibc generates the right locale: | ||
{{ | {{File|/etc/locale.gen| | ||
<pre> | <pre> | ||
de_DE.UTF-8 UTF-8 | de_DE.UTF-8 UTF-8 | ||
| Line 21: | Line 21: | ||
}} | }} | ||
and run {{ | and run {{Root|locale-gen}} afterwards. | ||
Then we need to create a new file to set some system-wide environment variables: | Then we need to create a new file to set some system-wide environment variables: | ||
{{ | {{File|/etc/env.d/02locale| | ||
<pre> | <pre> | ||
LANG="de_DE.utf8" | LANG="de_DE.utf8" | ||
| Line 31: | Line 31: | ||
}} | }} | ||
and activate it via {{ | and activate it via {{Root|env-update}}. | ||
Now change your keyboard layout: | Now change your keyboard layout: | ||
{{ | {{File|/etc/conf.d/keymaps| | ||
<pre> | <pre> | ||
keymap="de-latin1" | keymap="de-latin1" | ||
| Line 41: | Line 41: | ||
And last but not least your console font: | And last but not least your console font: | ||
{{ | {{File|/etc/conf.d/consolefont| | ||
<pre> | <pre> | ||
consolefont="lat0-16" | consolefont="lat0-16" | ||
</pre> | </pre> | ||
}} | }} | ||
Revision as of 17:44, 13 January 2011
First set the language variables in your /etc/make.conf, so that programms like KDE, Firefox or OpenOffice.org also install their language packs:
File: /etc/make.conf
LINGUAS="de" LANGUAGE="de"
This is the default installed by OpenRC, but ensure it's set:
File: /etc/rc.conf
unicode="YES"
Now edit /etc/locale.gen so that your glibc generates the right locale:
File: /etc/locale.gen
de_DE.UTF-8 UTF-8
and run
# locale-gen
afterwards.
Then we need to create a new file to set some system-wide environment variables:
File: /etc/env.d/02locale
LANG="de_DE.utf8" LC_ALL="de_DE.utf8"
and activate it via
# env-update
.
Now change your keyboard layout:
File: /etc/conf.d/keymaps
keymap="de-latin1"
And last but not least your console font:
File: /etc/conf.d/consolefont
consolefont="lat0-16"