<h2>Reuse when possible</h2>
- - "copy" from existing locales if the content should be identical
+ <p>One should avoid cut-n-paste when possible, and instead use
+ the <tt>copy</tt> statement to include sections from locales
+ with identical content.</p>
<h2>LD_IDENTIFICATION</h2>
- - standard refs in the LD_IDENTIFICATION
+ <p>The category entries are references to the standard used when
+ writing the given section. The standard refs should have
+ quotes around them, and should not use the <U#>
+ notation. They should normally look something like this:</p>
- - quotes around the text
-
- - no <U#>, use normal ASCII
+ <blockquote><pre>
+category "i18n:1997";LC_IDENTIFICATION
+ </pre></blockquote>
<h2>LC_MESSAGES</h2>
- - yes/no expr should have the form ^[yYnN<extra>], without 0 and 1
- and without trailing ".*".
+ <p>Then yesexpr and noexpr entries should have the form
+ <tt>^[yY<extra>]</tt> and <tt>^[nN<extra>]</tt>,
+ without 0 and 1 and without trailing "<tt>.*</tt>". The
+ reason is to make sure the expressions have the same form as
+ the expressions used in the C/POSIX locale (<tt>^[yY]</tt> and
+ <tt>^[nN]</tt>).</p>
<h2>Standard documents and specifications</h2>
localedef -i de_DE@euro -c -f ISO-8859-15 de_DE
LANG=de_DE date
</pre>
+
+ <p>I've made a small tool <a href="check-locale">check-locale</a>
+ capable of detecting a few common mistakes with locales</p>
</div>
<address><a href="mailto:pere@hungry.com">Petter Reinholdtsen</a></address>
<!-- Created: Sun Mar 21 18:14:42 CET 2004 -->
<!-- hhmts start -->
-Last modified: Mon Aug 9 08:30:26 CEST 2004
+Last modified: Mon Dec 20 20:17:59 CET 2004
<!-- hhmts end -->
</body>
</html>