1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
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">
14 <h1>How to write a GNU libc locale
</h1>
15 <address>by Petter Reinholdtsen
</address>
22 <div class=
"hovuddel">
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>
29 <h2>How to choose the locale file name
</h2>
31 - how to choose the file name
33 <h2>Category order
</h2>
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>
55 <h2>Reuse when possible
</h2>
57 - "copy" from existing locales if the content should be identical
59 <h2>LD_INDENTIFICATION
</h2>
61 - standard refs in the LD_INDENTIFICATION
65 - yes/no expr should have the form ^[yYnN
<extra>], without
0 and
1
67 <h2>Standard documents and specifications
</h2>
72 <address><a href=
"mailto:pere@hungry.com">Petter Reinholdtsen
</a></address>
73 <!-- Created: Sun Mar 21 18:14:42 CET 2004 -->
75 Last modified: Sat May
15 11:
56:
09 CEST
2004