]> pere.pagekite.me Git - homepage.git/blob - linux/glibc/howto.html
Add stylesheet.
[homepage.git] / linux / glibc / howto.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html lang="en">
3 <head>
4 <title>How to write a GNU libc locale</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6 <meta http-equiv="Content-Language" content="en">
7 <link rel="stylesheet" type="text/css" href="http://i18n.skolelinux.no/stilsett.css" id="nn1">
8 <link rel="stylesheet" type="text/css" href="http://i18n.skolelinux.no/utskrift.css" media="print" id="nn2">
9
10 </head>
11
12 <body>
13 <div class="topp">
14 <h1>How to write a GNU libc locale</h1>
15 <address>by Petter Reinholdtsen</address>
16 </div>
17
18 <div class="meny">
19 <a href="./">Back</a>
20 </div>
21
22 <div class="hovuddel">
23
24 <p>This is a draft document explaining how to write locale files
25 for GNU libc. It will not go into details, but reference
26 specifications. It will on the other hand mention some of the
27 pitfalls, and try to document the current practice.</p>
28
29 <h2>How to choose the locale file name</h2>
30
31 - how to choose the file name
32
33 <h2>Category order</h2>
34
35 <p>To make it easier to compare locales with each other, I
36 recommend using the same order for the categories in all
37 locales. Any order will do, so I picked the order used in most
38 locales, and decided to recommend this order:</p>
39
40 <ol>
41 <li>LC_IDENTIFICATION
42 <li>LC_CTYPE
43 <li>LC_COLLATE
44 <li>LC_MONETARY
45 <li>LC_NUMERIC
46 <li>LC_TIME
47 <li>LC_MESSAGES
48 <li>LC_PAPER
49 <li>LC_NAME
50 <li>LC_ADDRESS
51 <li>LC_TELEPHONE
52 <li>LC_MEASUREMENT
53 </ol>
54
55 <h2>Reuse when possible</h2>
56
57 - "copy" from existing locales if the content should be identical
58
59 <h2>LD_INDENTIFICATION</h2>
60
61 - standard refs in the LD_INDENTIFICATION
62
63 <h2>LC_MESSAGES</h2>
64
65 - yes/no expr should have the form ^[yYnN<extra>], without 0 and 1
66
67 <h2>Standard documents and specifications</h2>
68
69 </div>
70
71 <hr>
72 <address><a href="mailto:pere@hungry.com">Petter Reinholdtsen</a></address>
73 <!-- Created: Sun Mar 21 18:14:42 CET 2004 -->
74 <!-- hhmts start -->
75 Last modified: Sat May 15 11:56:09 CEST 2004
76 <!-- hhmts end -->
77 </body>
78 </html>