]> pere.pagekite.me Git - homepage.git/blobdiff - linux/glibc/howto.html
Mention RFC 3066.
[homepage.git] / linux / glibc / howto.html
index f3b604191c08daac012085ff2b94cdc472db6a87..ff4d6f45409c8de4c9a37a03314c2cb0bccbefb6 100644 (file)
@@ -1,13 +1,24 @@
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
+<html lang="en">
   <head>
     <title>How to write a GNU libc locale</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+    <meta http-equiv="Content-Language" content="en">
+    <link rel="stylesheet" type="text/css" href="http://i18n.skolelinux.no/stilsett.css" id="nn1">
+    <link rel="stylesheet" type="text/css" href="http://i18n.skolelinux.no/utskrift.css" media="print" id="nn2">
+
   </head>
 
   <body>
+    <div class="topp">
     <h1>How to write a GNU libc locale</h1>
+    </div>
+
+    <div class="meny">
+      <a href="./">Back</a>
+    </div>
 
-    <address>by Petter Reinholdtsen</address>
+    <div class="hovuddel">
 
     <p>This is a draft document explaining how to write locale files
       for GNU libc.  It will not go into details, but reference
 
     <h2>How to choose the locale file name</h2>
 
-    - how to choose the file name
+      <p>Locale names consist of three parts.  The language code, the
+       country/region code, and the optional modifier.  The format is
+       language_REGION@modifier.  The language code is a code from
+       ISO 639.  The two-letter code is prefered, but a three letter
+       code is accepted if no two-letter code is available.  The
+       country/region code is a code from ISO 3166.  If the language
+       or region in question is missing in the ISO standard, one need
+       to get the ISO standard updated before the locale will be
+       included in glibc.</p>
+
+      <p>Little is known about the requirements for the naming of
+       modifiers.  The following modifiers are currently used:
+       abegede, cyrillic, euro and saaho.  This might indicate that
+       lower case letters are prefered in modifier names.</p>
+
+      <p>It is recommended to follow RFC 3066 when selecting locale
+       names.</p>
+
+      <ul>
+
+       <li><a href="http://www.unicode.org/onlinedat/countries.html">ISO
+           3166</a></li>
+
+       <li><a href="http://www.loc.gov/standards/iso639-2/">ISO 639</a></li>
+
+       <li><a href="http://rfc.sunsite.dk/rfc/rfc3066.html"> RFC 3066
+           - Tags for the Identification of Languages</a></li>
+           
+      </ul>
 
     <h2>Category order</h2>
 
 
     <h2>Standard documents and specifications</h2>
 
+    </div>
+
     <hr>
     <address><a href="mailto:pere@hungry.com">Petter Reinholdtsen</a></address>
 <!-- Created: Sun Mar 21 18:14:42 CET 2004 -->
 <!-- hhmts start -->
-Last modified: Sat May 15 11:56:09 CEST 2004
+Last modified: Tue Jul 27 09:03:37 CEST 2004
 <!-- hhmts end -->
   </body>
 </html>