/[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.55 Revision 1.56
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.55 2009/06/14 09:16:34 nightmorph Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.56 2009/06/15 19:59:58 nightmorph 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">
30This guide should help users localize their Gentoo Linux distribution to any 30This guide should help users localize their Gentoo Linux distribution to any
31European locale. It uses Germany as a case-study, since it is translated from 31European locale. It uses Germany as a case-study, since it is translated from
32the German doc. Includes configuration for use of the euro currency symbol. 32the German doc. Includes configuration for use of the euro currency symbol.
33</abstract> 33</abstract>
34 34
35<version>1.41</version> 35<version>1.42</version>
36<date>2009-06-14</date> 36<date>2009-06-15</date>
37 37
38<chapter> 38<chapter>
39<title>Time zone</title> 39<title>Time zone</title>
40<section> 40<section>
41<body> 41<body>
214Most typically users only set the LANG variable on the global basis. This 214Most typically users only set the LANG variable on the global basis. This
215example is for a unicode German locale: 215example is for a unicode German locale:
216</p> 216</p>
217 217
218<pre caption="Setting the default system locale in /etc/env.d/02locale"> 218<pre caption="Setting the default system locale in /etc/env.d/02locale">
219LANG="de_DE.UTF-8 UTF-8" 219LANG="de_DE.UTF-8"
220LC_COLLATE="C" 220LC_COLLATE="C"
221</pre> 221</pre>
222 222
223<note> 223<note>
224Use <c>de_DE@euro ISO-8859-15</c> as your LANG if you want to use the Euro 224Use <c>de_DE@euro ISO-8859-15</c> as your LANG if you want to use the Euro
225currency symbol (€) 225currency symbol (€).
226</note> 226</note>
227 227
228<p> 228<p>
229It's also possible, and pretty common especially in a more traditional UNIX 229It's also possible, and pretty common especially in a more traditional UNIX
230environment, to leave the global settings unchanged, i.e. in the "<c>C</c>" 230environment, to leave the global settings unchanged, i.e. in the "<c>C</c>"
231locale. Users can still specify their preferred locale in their own shell RC 231locale. Users can still specify their preferred locale in their own shell RC
232file: 232file:
233</p> 233</p>
234 234
235<pre caption="Setting the user locale in ~/.bashrc"> 235<pre caption="Setting the user locale in ~/.bashrc">
236export LANG="de_DE.UTF-8 UTF-8" 236export LANG="de_DE.UTF-8"
237export LC_COLLATE="C" 237export LC_COLLATE="C"
238</pre> 238</pre>
239 239
240<p> 240<p>
241Another way of configuring system is to leave it in the default C locale, but 241Another way of configuring system is to leave it in the default C locale, but
242enable UTF-8 character representation at the same time. This option is achieved 242enable UTF-8 character representation at the same time. This option is achieved
243using the following settings in <path>/etc/env.d/02locale</path>: 243using the following settings in <path>/etc/env.d/02locale</path>:
244</p> 244</p>
245 245
246<pre caption="Using traditional C locale while specifying UTF-8"> 246<pre caption="Using traditional C locale while specifying UTF-8">
247LC_CTYPE=de_DE.UTF-8 UTF-8 247LC_CTYPE=de_DE.UTF-8
248</pre> 248</pre>
249 249
250<p> 250<p>
251Using the above snippet, users will be able to see localized file names 251Using the above snippet, users will be able to see localized file names
252properly, while not being forced to your preferred language. 252properly, while not being forced to your preferred language.

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

  ViewVC Help
Powered by ViewVC 1.1.20