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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.13
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.12 2004/02/12 22:25:42 dertobi123 Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.13 2004/04/11 10:52:16 cam Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/doc/en/guide-localization.xml"> 5<guide link="/doc/en/guide-localization.xml">
6<title>Gentoo Linux Localization Guide</title> 6<title>Gentoo Linux Localization Guide</title>
7<author title="Author"> 7<author title="Author">
47Make sure that the three-letter timezone indicator (in this case "CET") 47Make sure that the three-letter timezone indicator (in this case "CET")
48is correct for your area. 48is correct for your area.
49</note> 49</note>
50 50
51<note> 51<note>
52You can set the value of <i>TZ</i> to be everything after the 52You can set the value of <c>TZ</c> to be everything after the
53<path>/usr/share/zoneinfo</path> in your shell rc file 53<path>/usr/share/zoneinfo</path> in your shell rc file
54(<path>.bash_profile</path> for bash) for a user-level setting. In this case 54(<path>.bash_profile</path> for bash) for a user-level setting. In this case
55<i>TZ="Europe/Berlin"</i>. 55<c>TZ="Europe/Berlin"</c>.
56</note> 56</note>
57 57
58</body> 58</body>
59</section> 59</section>
60</chapter> 60</chapter>
68In most Gentoo Linux installations, your system clock is set to 68In most Gentoo Linux installations, your system clock is set to
69UTC (or GMT, Greenwhich Mean Time) and then your timezone is 69UTC (or GMT, Greenwhich Mean Time) and then your timezone is
70taken into account to determine the actual, local time. If, 70taken into account to determine the actual, local time. If,
71for some reason, you need your system clock not to be in UTC, 71for some reason, you need your system clock not to be in UTC,
72you will need to edit <path>/etc/rc.conf</path> and change the 72you will need to edit <path>/etc/rc.conf</path> and change the
73value of <i>CLOCK</i>. 73value of <c>CLOCK</c>.
74</p> 74</p>
75 75
76<pre caption="local vs. GMT clock"> 76<pre caption="local vs. GMT clock">
77<codenote>recommended:</codenote> 77<codenote>recommended:</codenote>
78CLOCK="UTC" 78CLOCK="UTC"
88<title>POSIX Locale</title> 88<title>POSIX Locale</title>
89<section> 89<section>
90<body> 90<body>
91 91
92<p> 92<p>
93The next step is to set the <i>LANG</i> shell variable, which 93The next step is to set the <c>LANG</c> shell variable, which
94is used by your shell and window manager (and some other 94is used by your shell and window manager (and some other
95applications). Valid values can be found in 95applications). Valid values can be found in
96<path>/usr/share/locale</path> and generally take the form 96<path>/usr/share/locale</path> and generally take the form
97<i>ab_CD</i>, where <i>ab</i> is your two letter language code 97<c>ab_CD</c>, where <c>ab</c> is your two letter language code
98and <i>CD</i> is your two letter country code. The <i>_CD</i> 98and <c>CD</c> is your two letter country code. The <c>_CD</c>
99is left off if your language is only (or primarily) spoken in 99is left off if your language is only (or primarily) spoken in
100one country. <i>LANG</i> can be set in 100one country. <c>LANG</c> can be set in
101<path>/etc/profile</path> if you want it to take effect 101<path>/etc/profile</path> if you want it to take effect
102system-wide, or in <path>~/.bashrc</path> as a user-specific 102system-wide, or in <path>~/.bashrc</path> as a user-specific
103setting. 103setting.
104</p> 104</p>
105 105
106<pre caption="setting the POSIX locale"> 106<pre caption="setting the POSIX locale">
107export LANG="de_DE@euro" 107export LANG="de_DE@euro"
108</pre> 108</pre>
109 109
110<note> 110<note>
111Appended <i>@euro</i> to your locale if you want to use the new Euro 111Appended <c>@euro</c> to your locale if you want to use the new Euro
112currency symbol (&#8364;) 112currency symbol (&#8364;)
113</note> 113</note>
114 114
115</body> 115</body>
116</section> 116</section>
121<section> 121<section>
122<body> 122<body>
123 123
124<p> 124<p>
125The keyboard layout used by the console is set in 125The keyboard layout used by the console is set in
126<path>/etc/rc.conf</path> by the <i>KEYMAP</i> variable. 126<path>/etc/rc.conf</path> by the <c>KEYMAP</c> variable.
127Valid values can be found in 127Valid values can be found in
128<path>/usr/share/keymaps/<i>{arch}</i>/</path>. 128<path>/usr/share/keymaps/<c>{arch}</c>/</path>.
129<path>i386</path> has further subdivisions into layout 129<path>i386</path> has further subdivisions into layout
130(<path>qwerty/</path>, <path>azerty/</path>, etc.). Some 130(<path>qwerty/</path>, <path>azerty/</path>, etc.). Some
131languages have multiple options, so you may wish to experiment 131languages have multiple options, so you may wish to experiment
132to decide which one fits your needs best. 132to decide which one fits your needs best.
133</p> 133</p>
147<section> 147<section>
148<body> 148<body>
149 149
150<p> 150<p>
151The keyboard layout to be used by the X server is specified 151The keyboard layout to be used by the X server is specified
152in <path>/etc/X11/XF86Config</path> by the <i>XkbLayout</i> 152in <path>/etc/X11/XF86Config</path> by the <c>XkbLayout</c>
153option. 153option.
154</p> 154</p>
155 155
156<pre caption="setting the X keymap"> 156<pre caption="setting the X keymap">
157 Section "InputDevice" 157 Section "InputDevice"
188<section> 188<section>
189<body> 189<body>
190 190
191<p> 191<p>
192In order to get your console to display the Euro symbol, you 192In order to get your console to display the Euro symbol, you
193will need to set <i>CONSOLEFONT</i> in 193will need to set <c>CONSOLEFONT</c> in
194<path>/etc/rc.conf</path> to a file found in 194<path>/etc/rc.conf</path> to a file found in
195<path>/usr/share/consolefonts/</path> (without the 195<path>/usr/share/consolefonts/</path> (without the
196<c>.psfu.gz</c>). <c>lat9w-16</c> has the Euro symbol. 196<c>.psfu.gz</c>). <c>lat9w-16</c> has the Euro symbol.
197</p> 197</p>
198 198
210<title>Most Applications</title> 210<title>Most Applications</title>
211<body> 211<body>
212 212
213<p> 213<p>
214Getting the Euro symbol to work properly in X is a little 214Getting the Euro symbol to work properly in X is a little
215bit tougher. The first thing you should do is change the <i> 215bit tougher. The first thing you should do is change the <c>fixed</c>
216fixed</i> and <i>variable</i> definitions in 216and <c>variable</c> definitions in
217<path>/usr/X11R6/lib/X11/fonts/misc/fonts.alias</path> to end 217<path>/usr/X11R6/lib/X11/fonts/misc/fonts.alias</path> to end
218in <i>iso8859-15</i> instead of <i>iso8859-1</i>. 218in <c>iso8859-15</c> instead of <c>iso8859-1</c>.
219</p> 219</p>
220 220
221<pre caption="setting default X fonts"> 221<pre caption="setting default X fonts">
222fixed -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15 222fixed -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15
223variable -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-15 223variable -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-15

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20