/[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.18 Revision 1.28
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.18 2005/02/05 14:53:36 swift Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.28 2005/06/24 18:04:15 fox2mike 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">
24</author> 24</author>
25 25
26<abstract> 26<abstract>
27This guide should help users localize their Gentoo Linux distribution to any 27This guide should help users localize their Gentoo Linux distribution to any
28European locale. It uses Germany as a case-study, since it is translated from 28European locale. It uses Germany as a case-study, since it is translated from
29the German doc. Includes configuration for use of the Euro currency symbol. 29the German doc. Includes configuration for use of the euro currency symbol.
30</abstract> 30</abstract>
31 31
32<version>1.13</version> 32<version>1.19</version>
33<date>2005-02-05</date> 33<date>2005-06-24</date>
34 34
35<chapter> 35<chapter>
36<title>Timezone</title> 36<title>Time zone</title>
37<section> 37<section>
38<body> 38<body>
39 39
40<p> 40<p>
41In order to keep time properly, <path>/etc/localtime</path> must point to 41In order to keep time properly, <path>/etc/localtime</path> must point to
64</body> 64</body>
65</section> 65</section>
66</chapter> 66</chapter>
67 67
68<chapter> 68<chapter>
69<title>System Clock</title> 69<title>Hardware Clock</title>
70<section> 70<section>
71<body> 71<body>
72 72
73<p> 73<p>
74In most Gentoo Linux installations, your system clock is set to 74In most Gentoo Linux installations, your hardware clock is set to
75UTC (or GMT, Greenwhich Mean Time) and then your timezone is 75UTC (or GMT, Greenwich Mean Time) and then your timezone is
76taken into account to determine the actual, local time. If, 76taken into account to determine the actual, local time. If,
77for some reason, you need your system clock not to be in UTC, 77for some reason, you need your hardware clock not to be in UTC,
78you will need to edit <path>/etc/rc.conf</path> and change the 78you will need to edit <path>/etc/conf.d/clock</path> and change the
79value of <c>CLOCK</c>. 79value of <c>CLOCK</c> from <c>UTC</c> to <c>local</c>.
80</p> 80</p>
81 81
82<pre caption="local vs. GMT clock"> 82<pre caption="local vs. GMT clock">
83<codenote>recommended:</codenote> 83<comment>(recommended:)</comment>
84CLOCK="UTC" 84CLOCK="UTC"
85<codenote>or:</codenote> 85<comment>(or:)</comment>
86CLOCK="local" 86CLOCK="local"
87</pre> 87</pre>
88 88
89</body> 89</body>
90</section> 90</section>
99<p> 99<p>
100A Locale is a set of information that most programs use for determining 100A Locale is a set of information that most programs use for determining
101country and language specific settings. The locales and their data 101country and language specific settings. The locales and their data
102are part of the system library and can be found 102are part of the system library and can be found
103at <path>/usr/share/locale</path> on most systems. A locale name is generally 103at <path>/usr/share/locale</path> on most systems. A locale name is generally
104named <c>ab_CD</c >where <c>ab</c> is your two (or three) letter 104named <c>ab_CD</c> where <c>ab</c> is your two (or three) letter
105language code (as specified in ISO-639) and <c>CD</c> is your two letter country 105language code (as specified in ISO-639) and <c>CD</c> is your two letter country
106code (as specified in ISO-3199). 106code (as specified in ISO-3199).
107</p> 107</p>
108 108
109</body> 109</body>
136</tr> 136</tr>
137<tr> 137<tr>
138 <ti>LC_COLLATE</ti> 138 <ti>LC_COLLATE</ti>
139 <ti> 139 <ti>
140 Define alphabetical ordering of strings. This affects eg. output of sorted 140 Define alphabetical ordering of strings. This affects eg. output of sorted
141 dir listing. 141 directory listing.
142 </ti> 142 </ti>
143</tr> 143</tr>
144<tr> 144<tr>
145 <ti>LC_CTYPE</ti> 145 <ti>LC_CTYPE</ti>
146 <ti> 146 <ti>
182 Defines all locale settings at once. This setting can be overridden by 182 Defines all locale settings at once. This setting can be overridden by
183 individual LC_* settings above or even by LC_ALL. 183 individual LC_* settings above or even by LC_ALL.
184 </ti> 184 </ti>
185</tr> 185</tr>
186</table> 186</table>
187
188<note>
189Even though most programs work with LC_ALL only, some of them misbehave if
190LC_ALL is set but LANG isn't. If you want to play safe, set them <e>both</e>.
191</note>
187 192
188<p> 193<p>
189Most typically users only set the LANG variable and perhaps LC_CTYPE variable 194Most typically users only set the LANG variable and perhaps LC_CTYPE variable
190on user level by adding definitions to shells startup files defining 195on user level by adding definitions to shells startup files defining
191the environment variable manually from command line: 196the environment variable manually from command line:
239<body> 244<body>
240 245
241<p> 246<p>
242You will probably only use one or maybe two locales on your system. Up until now 247You will probably only use one or maybe two locales on your system. Up until now
243after compiling <c>glibc</c> a full set of all available locales has been 248after compiling <c>glibc</c> a full set of all available locales has been
244created. As of now you can activate the <c>userlocales</c> USE flag und specify 249created. As of now you can activate the <c>userlocales</c> USE flag and specify
245only the locales you will need in <path>/etc/locales.build</path>. 250only the locales you will need in <path>/etc/locales.build</path>.
246</p> 251</p>
247 252
248<pre caption="Activate the userlocales USE flag especially for glibc"> 253<pre caption="Activate the userlocales USE flag especially for glibc">
249echo "sys-libs/glibc userlocales" >> /etc/portage/package.use 254echo "sys-libs/glibc userlocales" >> /etc/portage/package.use
274<section> 279<section>
275<body> 280<body>
276 281
277<p> 282<p>
278The keyboard layout used by the console is set in 283The keyboard layout used by the console is set in
279<path>/etc/rc.conf</path> by the <c>KEYMAP</c> variable. 284<path>/etc/conf.d/keymaps</path> by the <c>KEYMAP</c> variable.
280Valid values can be found in 285Valid values can be found in
281<path>/usr/share/keymaps/<c>{arch}</c>/</path>. 286<path>/usr/share/keymaps/<c>{arch}</c>/</path>.
282<path>i386</path> has further subdivisions into layout 287<path>i386</path> has further subdivisions into layout
283(<path>qwerty/</path>, <path>azerty/</path>, etc.). Some 288(<path>qwerty/</path>, <path>azerty/</path>, etc.). Some
284languages have multiple options, so you may wish to experiment 289languages have multiple options, so you may wish to experiment
300<section> 305<section>
301<body> 306<body>
302 307
303<p> 308<p>
304The keyboard layout to be used by the X server is specified 309The keyboard layout to be used by the X server is specified
305in <path>/etc/X11/XF86Config</path> by the <c>XkbLayout</c> 310in <path>/etc/X11/xorg.conf</path> by the <c>XkbLayout</c>
306option. 311option.
307</p> 312</p>
308 313
309<pre caption="setting the X keymap"> 314<pre caption="setting the X keymap">
310 Section "InputDevice" 315 Section "InputDevice"
324<section> 329<section>
325<body> 330<body>
326 331
327<p> 332<p>
328For KDE you have to install the kde-i18n package with the appropriate 333For KDE you have to install the kde-i18n package with the appropriate
329LINGUAS environment variable set:</p> 334LINGUAS variable set:
335</p>
330 336
331<pre caption="Install localized KDE"> 337<pre caption="Install localized KDE">
338# <i>nano -w /etc/make.conf</i>
339<comment>(Add in the LINGUAS variable. For instance, for the German language:)</comment>
340LINGUAS="de"
341
342<comment>(Now install kde-i18n)</comment>
332# <i>LINGUAS="de" emerge kde-i18n</i> 343# <i>emerge kde-i18n</i>
333</pre> 344</pre>
334 345
335</body> 346</body>
336</section> 347</section>
337</chapter> 348</chapter>
388rather than adding a new one. To change our xterm font, for 399rather than adding a new one. To change our xterm font, for
389instance: 400instance:
390</p> 401</p>
391 402
392<pre caption="setting fonts for xterm"> 403<pre caption="setting fonts for xterm">
393<codenote>(in your home directory)</codenote> 404<comment>(in your home directory)</comment>
394# <i>echo 'XTerm*font: fixed' >> .Xresources </i> 405# <i>echo 'XTerm*font: fixed' >> .Xresources </i>
395# <i>xrdb -merge .Xresources</i> 406# <i>xrdb -merge .Xresources</i>
396</pre> 407</pre>
397 408
398</body> 409</body>
424</note> 435</note>
425 436
426</body> 437</body>
427</section> 438</section>
428<section> 439<section>
429<title>Language for OpenOffice</title> 440<title>Language for OpenOffice.org</title>
430<body> 441<body>
431 442
432<note> 443<note>
433Customized default language is not available for openoffice-bin ebuild. The 444Customized default language is not available for openoffice-bin ebuild. The
434default language in the openoffice-bin is ENUS. 445default language in the openoffice-bin is ENUS.
435</note> 446</note>
436 447
437<p> 448<p>
449Please note that this package now uses the LINGUAS variable to
450provide localization. The old LANGUAGE=ENUS|PORT system does <e>not</e> work
438The default language for OpenOffice is set as "ENUS"(01). If you wish to 451anymore. The default language for OpenOffice.org is set as "US English". If you
439change the default language for OpenOffice, check the ebuild for the 452wish to change the default language for OpenOffice.org, check the ebuild for the
440default language code. 453default language code.
441</p> 454</p>
442 455
443<pre caption="emerge openoffice with desired default language"> 456<pre caption="Example: emerge openoffice for german environment">
457# <i>nano -w /etc/make.conf</i>
458<comment>(Add in the LINGUAS variable. For instance, for the German language:)</comment>
459LINGUAS="de"
460
461<comment>(Now install openoffice)</comment>
444# <i>LANGUAGE="01" emerge openoffice</i> 462# <i>emerge openoffice</i>
445<comment>01 is the ENUS language code for openoffice</comment>
446</pre> 463</pre>
447 464
448</body> 465</body>
449</section> 466</section>
450</chapter> 467</chapter>

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.28

  ViewVC Help
Powered by ViewVC 1.1.20