Gentoo Archives: gentoo-doc-cvs

From: Xavier Neys <neysx@×××××××××××.org>
To: gentoo-doc-cvs@l.g.o
Subject: [gentoo-doc-cvs] cvs commit: guide-localization.xml
Date: Thu, 25 May 2006 16:22:58
Message-Id: 20060525162238.7FFB4644AD@smtp.gentoo.org
1 neysx 06/05/25 16:22:37
2
3 Modified: guide-localization.xml
4 Log:
5 #134032 Mention system locale vs user locale
6
7 Revision Changes Path
8 1.39 xml/htdocs/doc/en/guide-localization.xml
9
10 file : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/guide-localization.xml?rev=1.39&content-type=text/x-cvsweb-markup&cvsroot=gentoo
11 plain: http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/guide-localization.xml?rev=1.39&content-type=text/plain&cvsroot=gentoo
12 diff : http://www.gentoo.org/cgi-bin/viewcvs.cgi/xml/htdocs/doc/en/guide-localization.xml.diff?r1=1.38&r2=1.39&cvsroot=gentoo
13
14 Index: guide-localization.xml
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v
17 retrieving revision 1.38
18 retrieving revision 1.39
19 diff -u -r1.38 -r1.39
20 --- guide-localization.xml 15 May 2006 12:32:31 -0000 1.38
21 +++ guide-localization.xml 25 May 2006 16:22:37 -0000 1.39
22 @@ -1,5 +1,5 @@
23 <?xml version='1.0' encoding='UTF-8'?>
24 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.38 2006/05/15 12:32:31 nightmorph Exp $ -->
25 +<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.39 2006/05/25 16:22:37 neysx Exp $ -->
26 <!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
27
28 <guide link="/doc/en/guide-localization.xml">
29 @@ -29,8 +29,8 @@
30 the German doc. Includes configuration for use of the euro currency symbol.
31 </abstract>
32
33 -<version>1.28</version>
34 -<date>2006-05-15</date>
35 +<version>1.29</version>
36 +<date>2006-05-25</date>
37
38 <chapter>
39 <title>Time zone</title>
40 @@ -45,7 +45,7 @@
41 indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
42 </p>
43
44 -<pre caption="setting the timezone">
45 +<pre caption="Setting the timezone">
46 # <i>cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime</i>
47 # <i>date</i>
48 Sun Feb 16 08:26:44 CET 2003
49 @@ -198,20 +198,36 @@
50 the environment variable manually from command line:
51 </p>
52
53 -<pre caption="setting the German locale">
54 +<pre caption="Setting the user locale in ~/.bashrc">
55 export LANG="de_DE@euro"
56 </pre>
57
58 <note>
59 Append <c>@euro</c> to your locale if you want to use the Euro
60 -currency symbol (&#8364;)
61 +currency symbol (€)
62 </note>
63
64 <p>
65 +It is also possible to set a system-wide locale for all users and programs:
66 +</p>
67 +
68 +<pre caption="Setting the default system locale in /etc/env.d/02locale">
69 +LC_ALL="de_DE@euro"
70 +LANG="de_DE@euro"
71 +</pre>
72 +
73 +<p>
74 +A common practice is to use only per user locale settings and leave the
75 +default system locale unset. In this case system locale defaults to a
76 +special value <c>"C"</c>, which for historical reasons maps to the English
77 +locale.
78 +</p>
79 +
80 +<p>
81 For message based localization to work in programs that support it, you will
82 probably need to have programs compiled with the <c>nls</c> (Native language
83 support) USE flag set. Most of the programs using nls also need the gettext
84 -library to extract and use localized messages. Of course, Gentoo's Portage will
85 +library to extract and use localized messages. Of course, Portage will
86 automatically install it when needed.
87 </p>
88
89 @@ -221,7 +237,11 @@
90 </p>
91
92 <pre caption="Update the environment">
93 +<comment>(For system-wide default locale:)</comment>
94 # <i>env-update &amp;&amp; source /etc/profile</i>
95 +
96 +<comment>(For user-specific locale:</comment>
97 +$ <i>source ~/.bashrc</i>
98 </pre>
99
100 <p>
101 @@ -246,7 +266,7 @@
102 place to set it is <path>/etc/make.conf</path>:
103 </p>
104
105 -<pre caption="setting LINGUAS in make.conf">
106 +<pre caption="Setting LINGUAS in make.conf">
107 # <i>nano -w /etc/make.conf</i>
108 <comment>(Add in the LINGUAS variable. For instance,
109 for German, Finnish and English:)</comment>
110 @@ -344,7 +364,7 @@
111 to decide which one fits your needs best.
112 </p>
113
114 -<pre caption="setting the console keymap">
115 +<pre caption="Setting the console keymap">
116 KEYMAP="de"
117 KEYMAP="de-latin1"
118 KEYMAP="de-latin1-nodeadkeys"
119 @@ -365,7 +385,7 @@
120 option.
121 </p>
122
123 -<pre caption="setting the X keymap">
124 +<pre caption="Setting the X keymap">
125 Section "InputDevice"
126 Identifier "Keyboard1"
127 ...
128 @@ -441,7 +461,7 @@
129 <c>.psfu.gz</c>). <c>lat9w-16</c> has the Euro symbol.
130 </p>
131
132 -<pre caption="setting the console font">
133 +<pre caption="Setting the console font">
134 CONSOLEFONT="lat9w-16"
135 </pre>
136
137 @@ -479,7 +499,7 @@
138 in <c>iso8859-15</c> instead of <c>iso8859-1</c>.
139 </p>
140
141 -<pre caption="setting default X fonts">
142 +<pre caption="Setting default X fonts">
143 fixed -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-15
144 variable -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-15
145 </pre>
146 @@ -497,7 +517,7 @@
147 instance:
148 </p>
149
150 -<pre caption="setting fonts for xterm">
151 +<pre caption="Setting fonts for xterm">
152 <comment>(in your home directory)</comment>
153 $ <i>echo 'XTerm*font: fixed' >> .Xresources </i>
154 $ <i>xrdb -merge .Xresources</i>
155 @@ -524,7 +544,7 @@
156 </p>
157
158 <pre caption="setting the font for xemacs">
159 -(define-key global-map '(EuroSign) '[&#8364;])
160 +(define-key global-map '(EuroSign) '[€])
161 </pre>
162
163 <note>
164
165
166
167 --
168 gentoo-doc-cvs@g.o mailing list