UTF-8: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| 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: | |||
{{File|/etc/make.conf| | |||
{{ | |||
<pre> | <pre> | ||
LINGUAS="de" | LINGUAS="de" | ||
| Line 16: | Line 7: | ||
}} | }} | ||
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 30: | Line 14: | ||
}} | }} | ||
and run {{Root|locale-gen}} afterwards. | |||
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 40: | Line 24: | ||
}} | }} | ||
and activate it via {{Root|env-update}} | |||
Now change your keyboard layout: | |||
{{ | {{File|/etc/conf.d/keymaps| | ||
<pre> | <pre> | ||
keymap="de | keymap="de" | ||
</pre> | </pre> | ||
}} | }} | ||
And at last your console font: | |||
{{ | {{File|/etc/conf.d/consolefont| | ||
<pre> | <pre> | ||
consolefont="lat0-16" | consolefont="lat0-16" | ||
</pre> | </pre> | ||
}} | }} | ||
Latest revision as of 01:01, 30 January 2013
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"
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"
And at last your console font:
File: /etc/conf.d/consolefont
consolefont="lat0-16"