UTF-8: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
mNo edit summary
Tgurr (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
LINGUAS="de"
LINGUAS="de"
LANGUAGE="de"
LANGUAGE="de"
</pre>
}}
This is the default installed by OpenRC, but ensure it's set:
{{File|/etc/rc.conf|
<pre>
unicode="YES"
</pre>
</pre>
}}
}}
Line 31: Line 24:
}}
}}


and activate it via {{Root|env-update}}.
and activate it via {{Root|env-update}}


Now change your keyboard layout:
Now change your keyboard layout:
{{File|/etc/conf.d/keymaps|
{{File|/etc/conf.d/keymaps|
<pre>
<pre>
keymap="de-latin1"
keymap="de"
</pre>
</pre>
}}
}}


And last but not least your console font:
And at last your console font:
{{File|/etc/conf.d/consolefont|
{{File|/etc/conf.d/consolefont|
<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"