]> pere.pagekite.me Git - homepage.git/blob - linux/glibc/howto.html
Remove redundant name.
[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 </div>
16
17 <div class="meny">
18 <a href="./">Back</a>
19 </div>
20
21 <div class="hovuddel">
22
23 <p>This is a draft document explaining how to write locale files
24 for GNU libc. It will not go into details, but reference
25 specifications. It will on the other hand mention some of the
26 pitfalls, and try to document the current practice.</p>
27
28 <h2>How to choose the locale file name</h2>
29
30 - how to choose the file name
31
32 <h2>Category order</h2>
33
34 <p>To make it easier to compare locales with each other, I
35 recommend using the same order for the categories in all
36 locales. Any order will do, so I picked the order used in most
37 locales, and decided to recommend this order:</p>
38
39 <ol>
40 <li>LC_IDENTIFICATION
41 <li>LC_CTYPE
42 <li>LC_COLLATE
43 <li>LC_MONETARY
44 <li>LC_NUMERIC
45 <li>LC_TIME
46 <li>LC_MESSAGES
47 <li>LC_PAPER
48 <li>LC_NAME
49 <li>LC_ADDRESS
50 <li>LC_TELEPHONE
51 <li>LC_MEASUREMENT
52 </ol>
53
54 <h2>Reuse when possible</h2>
55
56 - "copy" from existing locales if the content should be identical
57
58 <h2>LD_INDENTIFICATION</h2>
59
60 - standard refs in the LD_INDENTIFICATION
61
62 <h2>LC_MESSAGES</h2>
63
64 - yes/no expr should have the form ^[yYnN<extra>], without 0 and 1
65
66 <h2>Standard documents and specifications</h2>
67
68 </div>
69
70 <hr>
71 <address><a href="mailto:pere@hungry.com">Petter Reinholdtsen</a></address>
72 <!-- Created: Sun Mar 21 18:14:42 CET 2004 -->
73 <!-- hhmts start -->
74 Last modified: Sat May 15 11:56:09 CEST 2004
75 <!-- hhmts end -->
76 </body>
77 </html>