/[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.9 Revision 1.10
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.9 2003/11/15 00:35:19 neysx Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.10 2003/11/21 18:33:33 aaby 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"><mail link="holler@ahsoftware.de"> 7<author title="Author"><mail link="holler@ahsoftware.de">
8 Alexander Holler</mail> 8 Alexander Holler</mail>
9</author> 9</author>
10<author title="Translator/Editor"><mail link="slucy@uchicago.edu"> 10<author title="Translator/Editor"><mail link="slucy@uchicago.edu">
11 Steven Lucy</mail> 11 Steven Lucy</mail>
12</author> 12</author>
13<author title="Editor"> 13<author title="Editor">
14 <mail link="bennyc@gentoo.org">Benny Chuang</mail> 14 <mail link="bennyc@gentoo.org">Benny Chuang</mail>
15</author> 15</author>
16<abstract> 16<abstract>
17This guide should help users localize their Gentoo Linux distribution to any 17This guide should help users localize their Gentoo Linux distribution to any
23<title>Timezone</title> 23<title>Timezone</title>
24<section> 24<section>
25 <body> 25 <body>
26 <p>In order to keep time properly, 26 <p>In order to keep time properly,
27 <path>/etc/localtime</path> must point to the correct time zone 27 <path>/etc/localtime</path> must point to the correct time zone
28 data file. Look around in <path>/usr/share/zoneinfo/</path> 28 data file. Look around in <path>/usr/share/zoneinfo/</path>
29 and pick your timezone or a near-by big city. 29 and pick your timezone or a near-by big city.
30<pre caption="setting the timezone"> 30<pre caption="setting the timezone">
31# <i>ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</i> 31# <i>ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime</i>
32# <i>date</i> 32# <i>date</i>
33Sun Feb 16 08:26:44 CET 2003 33Sun Feb 16 08:26:44 CET 2003
34</pre> 34</pre>
35<note>Make sure that the three-letter timezone indicator (in this case "CET") 35<note>Make sure that the three-letter timezone indicator (in this case "CET")
36is correct for your area.</note> 36is correct for your area.</note>
37<note>You can set the value of <i>TZ</i> to be everything after the 37<note>You can set the value of <i>TZ</i> to be everything after the
38<path>/usr/share/zoninfo</path> in your shell rc file 38<path>/usr/share/zoneinfo</path> in your shell rc file
39(<path>.bash_profile</path> for bash) for a user-level setting. In this case 39(<path>.bash_profile</path> for bash) for a user-level setting. In this case
40<i>TZ="Europe/Berlin"</i>.</note> 40<i>TZ="Europe/Berlin"</i>.</note>
41 </p> 41 </p>
42 </body> 42 </body>
43</section> 43</section>
44</chapter> 44</chapter>
45 45
46<chapter> 46<chapter>
47<title>System Clock</title> 47<title>System Clock</title>
48<section> 48<section>
49 <body> 49 <body>
50 <p> 50 <p>
51 In most Gentoo Linux installations, your system clock is set to 51 In most Gentoo Linux installations, your system clock is set to
52 UTC (or GMT, Greenwhich Mean Time) and then your timezone is 52 UTC (or GMT, Greenwhich Mean Time) and then your timezone is
53 taken into account to determine the actual, local time. If, 53 taken into account to determine the actual, local time. If,
64 </p> 64 </p>
65 </body> 65 </body>
66</section> 66</section>
67</chapter> 67</chapter>
68 68
69<chapter> 69<chapter>
70<title>POSIX Locale</title> 70<title>POSIX Locale</title>
71<section> 71<section>
72 <body> 72 <body>
73 <p> 73 <p>
74 The next step is to set the <i>LANG</i> shell variable, which 74 The next step is to set the <i>LANG</i> shell variable, which
75 is used by your shell and window manager (and some other 75 is used by your shell and window manager (and some other
76 applications). Valid values can be found in 76 applications). Valid values can be found in
77 <path>/usr/share/locale</path> and generally take the form 77 <path>/usr/share/locale</path> and generally take the form
78 <i>ab_CD</i>, where <i>ab</i> is your two letter language code 78 <i>ab_CD</i>, where <i>ab</i> is your two letter language code
79 and <i>CD</i> is your two letter country code. the <i>_CD</i> 79 and <i>CD</i> is your two letter country code. The <i>_CD</i>
80 is left off if your language is only (or primarily) spoken in 80 is left off if your language is only (or primarily) spoken in
81 one country. <i>LANG</i> can be set in 81 one country. <i>LANG</i> can be set in
82 <path>/etc/profile</path> if you want it to take effect 82 <path>/etc/profile</path> if you want it to take effect
83 system-wide, or in <path>~/.bashrc</path> as a user-specific 83 system-wide, or in <path>~/.bashrc</path> as a user-specific
84 setting. 84 setting.
85<pre caption="setting the POSIX locale"> 85<pre caption="setting the POSIX locale">
86 export LANG="de_DE@euro" 86 export LANG="de_DE@euro"
87</pre> 87</pre>
88<note>Appended <i>@euro</i> to your locale if you want to use the new Euro 88<note>Appended <i>@euro</i> to your locale if you want to use the new Euro
89currency symbol (&#8364;)</note> 89currency symbol (&#8364;)</note>
90 </p> 90 </p>
91 </body> 91 </body>
92</section> 92</section>
93</chapter> 93</chapter>
94 94
115</section> 115</section>
116</chapter> 116</chapter>
117 117
118<chapter> 118<chapter>
119<title>Keyboard layout for the X server</title> 119<title>Keyboard layout for the X server</title>
120<section> 120<section>
121 <body> 121 <body>
122 <p>The keyboard layout to be used by the X server is specified 122 <p>The keyboard layout to be used by the X server is specified
123 in <path>/etc/X11/XF86Config</path> by the <i>XkbLayout</i> 123 in <path>/etc/X11/XF86Config</path> by the <i>XkbLayout</i>
124 option. 124 option.
125<pre caption="setting the X keymap"> 125<pre caption="setting the X keymap">
126 Section "InputDevice" 126 Section "InputDevice"
127 Identifier "Keyboard1" 127 Identifier "Keyboard1"
128 ... 128 ...
129 Option "XkbLayout" "de" 129 Option "XkbLayout" "de"
130 # Option XkbVariant" "nodeadkeys" 130 # Option "XkbVariant" "nodeadkeys"
131 ... 131 ...
132</pre> 132</pre>
133 </p> 133 </p>
134 </body> 134 </body>
135</section> 135</section>
136</chapter> 136</chapter>
137 137
138<chapter> 138<chapter>
139<title>The Euro Symbol for the Console</title> 139<title>The Euro Symbol for the Console</title>
140<section> 140<section>
141 <body> 141 <body>
142 <p> 142 <p>
143 In order to get your console to display the Euro symbol, you 143 In order to get your console to display the Euro symbol, you
144 will need to set <i>CONSOLEFONT</i> in 144 will need to set <i>CONSOLEFONT</i> in
145 <path>/etc/rc.conf</path> to a file found in 145 <path>/etc/rc.conf</path> to a file found in

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20