/[gentoo]/xml/htdocs/doc/en/guide-localization.xml
Gentoo

Contents of /xml/htdocs/doc/en/guide-localization.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sat Nov 9 18:47:44 2002 UTC (11 years, 8 months ago) by drobbins
Branch: MAIN
File MIME type: application/xml
try #10030

1 drobbins 1.1 <?xml version='1.0'?>
2     <?xml-stylesheet href="/xsl/guide.xsl" type="text/xsl"?>
3     <guide>
4     <title>Gentoo Linux Localization Instructions</title>
5     <author><mail link="holler@ahsoftware.de">
6     Alexander Holler</mail>
7     </author>
8    
9     <abstract>This instructions explains the few steps you need to follow to use Gentoo Linux
10     with another language than english. It also explains what to do to get the Euro character shown.</abstract>
11    
12     <chapter>
13     <title>Preface</title>
14     <section>
15     <body>
16     <p>As I'm a German I explain how to enable the german language. If you want
17     another language, you just have to replace the german language code <i>de</i> with
18     the corresponding code for your country, e.g. <i>fr</i> for France or <i>es</i> for Spain.
19     </p>
20     </body>
21     </section>
22     </chapter>
23    
24     <chapter>
25     <title>Timezone</title>
26     <section>
27     <body>
28     <p>To enable the right timezone <path>/etc/localtime</path> should point to the
29     appropriate file with the datas for your timezone. You will find those files
30     in <path>/usr/share/zoneinfo/</path>.
31     <pre>
32     # <i>ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</i>
33     </pre>
34     </p>
35     </body>
36     </section>
37     </chapter>
38    
39     <chapter>
40     <title>Hardware clock</title>
41     <section>
42     <body>
43     <p>If your hardware clock is set to local time and not to GMT you have to correct
44     the variable <i>CLOCK</i> in <path>/etc/rc.conf</path>.
45     <pre>
46     CLOCK="local"
47     </pre>
48     </p>
49     </body>
50     </section>
51     </chapter>
52    
53     <chapter>
54     <title>Language</title>
55     <section>
56     <body>
57     <p>Telling programms what language you prefer will be done with the environment variable
58     <i>LANG</i>. If you want to set the language system-wide for all users you should export
59     <i>LANG</i> in <path>/etc/profile</path>. If not, this can be done in through your private
60     <path>.bashrc</path> in your home directory. You can find available languages in
61     <path>/usr/share/i18n/locales</path>.
62     <pre>
63     export LANG="de_DE@euro"
64     </pre>
65     </p>
66     </body>
67     </section>
68     </chapter>
69    
70     <chapter>
71     <title>Keyboard-layout (terminal)</title>
72     <section>
73     <body>
74     <p>The keyboard-layout for terminal sessions is set through <i>KEYMAP</i> in
75     <path>/etc/rc.conf</path>. You will find the appropriate tables in
76     <path>/usr/share/keymaps</path>. If you aren't using composed characters with
77     tildes (e.g. &#245;), accent graph (e.g. &#232;) or similar, you could use the
78     nodeadkeys-variants. This will save you to enter a space after typing letters
79     like ~.
80     <pre>
81     KEYMAP="de-latin1"
82     # KEYMAP="de-latin1-nodeadkeys"
83     </pre>
84     </p>
85     </body>
86     </section>
87     </chapter>
88    
89     <chapter>
90     <title>Keyboard-layout (X server)</title>
91     <section>
92     <body>
93     <p>The keyboard-layout for the X server is set with the option
94     <i>XkbLayout</i> in the file <path>/etc/X11/XF86Config</path>.
95     <pre>
96     Section "InputDevice"
97     Identifier "Keyboard1"
98     ...
99     Option "XkbLayout" "de"
100     # Option XkbVariant" "nodeadkeys"
101     ...
102     </pre>
103     </p>
104     </body>
105     </section>
106     </chapter>
107    
108     <chapter>
109     <title>Euro character (terminal)</title>
110     <section>
111     <body>
112     <p>If you want to see the Euro character in a session without using X, you have
113     to use a console font which contains it. The console font is set with
114     <i>CONSOLEFONT</i> in <path>/etc/rc.conf</path>. Available fonts will be find in
115     <path>/usr/share/consolefonts</path>.
116     <pre>
117     CONSOLEFONT="lat0-16"
118     </pre>
119     </p>
120     </body>
121     </section>
122     </chapter>
123    
124     <chapter>
125     <title>Euro character (X server)</title>
126     <section>
127     <title>General</title>
128     <body>
129     <p>Using the above settings and KDE you should already get the Euro character with
130     Alt-Gr-E in all KDE-programs. Remaining the non-KDE-programs.
131     </p><p>Unfortunately this is not as easy as the settings before. You have to set the right
132     font for every single X-program. So I will just explain how to enable the Euro character
133     for xterm and (X)Emacs. You can change the fonts for programs under X in your private
134     <path>.Xdefaults</path> in your home directory. To enable it for other (new) users you could
135     copy this file to <path>/etc/skel</path>.
136     </p>
137     </body>
138     </section>
139    
140     <section>
141     <title>Euro character for xterm</title>
142     <body>
143     <p>Insert the following in your <path>.Xdefaults</path>:
144     <pre>
145     xterm*font: 7x13euro
146     </pre>
147     </p>
148     </body>
149     </section>
150    
151     <section>
152     <title>Euro character for (X)Emacs</title>
153     <body>
154     <p>For (X)Emacs you define the font in <path>.Xdefaults</path> as shown below:
155     <pre>
156     Emacs.default.attributeFont: -*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-15
157     </pre>
158     </p><p>If you are using XEmacs (not Emacs) you will have to tell him what to do with
159     the <i>EuroSign</i>. This will be done through a definition in
160     <path>.xemacs/init.el</path> in your home directory:
161     <pre>
162     (define-key global-map '(EuroSign) '[&#8364;])
163     </pre>
164     <note>The character in the square brackets is the Euro character.</note>
165     </p>
166     </body>
167     </section>
168    
169     </chapter>
170    
171     <version>$Revision: 1.1 $</version>
172     <date>$Date: 2002/08/31 14:45:40 $</date>
173     </guide>

  ViewVC Help
Powered by ViewVC 1.1.20