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.60 2009/11/15 23:51:02 nightmorph Exp $ --> |
2 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/guide-localization.xml,v 1.61 2010/02/14 20:24:37 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"> |
… | |
… | |
30 | This guide should help users localize their Gentoo Linux distribution to any |
30 | This guide should help users localize their Gentoo Linux distribution to any |
31 | European locale. It uses Germany as a case-study, since it is translated from |
31 | European locale. It uses Germany as a case-study, since it is translated from |
32 | the German doc. Includes configuration for use of the euro currency symbol. |
32 | the German doc. Includes configuration for use of the euro currency symbol. |
33 | </abstract> |
33 | </abstract> |
34 | |
34 | |
35 | <version>1.45</version> |
35 | <version>1.46</version> |
36 | <date>2009-11-15</date> |
36 | <date>2010-02-14</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> |
… | |
… | |
308 | <section> |
308 | <section> |
309 | <title>Generating Specific Locales</title> |
309 | <title>Generating Specific Locales</title> |
310 | <body> |
310 | <body> |
311 | |
311 | |
312 | <p> |
312 | <p> |
313 | If you use a locale that isn't available by default, you should use |
|
|
314 | <c>localedef</c> to generate your locale. For instance: |
|
|
315 | </p> |
|
|
316 | |
|
|
317 | <pre caption="Generating a locale using localedef"> |
|
|
318 | # <i>localedef -c -i en_US -f ISO-8859-15 en_US.ISO-8859-15</i> |
|
|
319 | </pre> |
|
|
320 | |
|
|
321 | <p> |
|
|
322 | After having generated the locale, you can export the LANG variable as you see |
|
|
323 | fit. |
|
|
324 | </p> |
|
|
325 | |
|
|
326 | <pre caption="Exporting the LANG variable"> |
|
|
327 | # <i>export LANG="en_US.ISO-8859-15"</i> |
|
|
328 | </pre> |
|
|
329 | |
|
|
330 | <p> |
|
|
331 | Be sure to update the environment after the change: |
|
|
332 | </p> |
|
|
333 | |
|
|
334 | <pre caption="Update the environment"> |
|
|
335 | # <i>env-update && source /etc/profile</i> |
|
|
336 | </pre> |
|
|
337 | |
|
|
338 | <p> |
|
|
339 | After this, you will need to kill your X server by pressing |
|
|
340 | <c>Ctrl-Alt-Backspace</c>, log out, then log in as user. |
|
|
341 | </p> |
|
|
342 | |
|
|
343 | </body> |
|
|
344 | </section> |
|
|
345 | <section> |
|
|
346 | <title>Generating locales for glibc</title> |
|
|
347 | <body> |
|
|
348 | |
|
|
349 | <p> |
|
|
350 | You will probably only use one or maybe two locales on your system. You can |
313 | You will probably only use one or maybe two locales on your system. You can |
351 | specify locales you will need in <path>/etc/locale.gen</path>. |
314 | specify locales you will need in <path>/etc/locale.gen</path>. |
352 | </p> |
315 | </p> |
353 | |
316 | |
354 | <pre caption="Adding locales to /etc/locale.gen"> |
317 | <pre caption="Adding locales to /etc/locale.gen"> |