]> pere.pagekite.me Git - homepage.git/commitdiff
Add some info on how to test a new locale.
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 8 Aug 2004 20:20:50 +0000 (20:20 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Sun, 8 Aug 2004 20:20:50 +0000 (20:20 +0000)
linux/glibc/howto.html

index a7a18a7599cb55713d88c141f152542711289a29..b5e3729a8d6d275fdefd339b95eaec645a11aa6c 100644 (file)
 
     <h2>Standard documents and specifications</h2>
 
+    <h2>Testing the new locale file</h2>
+
+       <p>To test a new locale on a test machine, do the
+       following:</p>
+
+       <ul>
+
+         <li>Copy the new locale to
+           <tt>/usr/share/i18n/locales/<em>filename</em></tt></li>
+
+         <li>Run <tt>localedef -i <em>inputfile</em> -c -f
+             <em>charset<em> <em>locale</em></tt> to generate a
+           binary locale file in
+           <tt>/usr/lib/locale/<em>locale</em>/</tt></li>
+
+         <li>Test it using LANG=<em>locale</em>, for example by
+           running <tt>date</tt></li>
+
+       </ul>
+
+       <p>Example, generating a new <tt>de_DE@euro</tt> locale using
+         the ISO-8859-15 charset and save it as 'de_DE':</p>
+
+       <pre>
+         cp de_DE@euro /usr/share/i18n/locales/de_DE@euro
+         localedef -i de_DE@euro -c -f ISO-8859-15 de_DE
+         LANG=de_DE date
+       </pre>
+       
     </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: Tue Jul 27 09:07:23 CEST 2004
+Last modified: Sun Aug  8 22:21:45 CEST 2004
 <!-- hhmts end -->
   </body>
 </html>