Localisation updates for core messages from Betawiki (2008-01-04 16:36 CET)
[lhc/web/wiklou.git] / maintenance / language / digit2html.php
1 <?php
2 require( '../commandLine.inc' );
3
4 # A list of unicode numerals is available at:
5 # http://www.fileformat.info/info/unicode/category/Nd/list.htm
6 $langs = array( 'Ar', 'As', 'Bh', 'Bo', 'Dz', 'Fa', 'Gu', 'Hi', 'Km', 'Kn', 'Ks', 'Lo', 'Ml', 'Mr', 'Ne', 'New', 'Or', 'Pa', 'Pi', 'Sa' );
7
8 foreach( $langs as $code ) {
9 $filename = Language::getMessagesFileName( $code );
10 echo "Loading language [$code] ... ";
11 unset( $digitTransformTable );
12 require_once( $filename );
13 if( !isset( $digitTransformTable ) ) {
14 print "\$digitTransformTable not found\n";
15 continue;
16 }
17
18 print "OK\n\$digitTransformTable = array(\n";
19 foreach( $digitTransformTable as $latin => $translation ) {
20 $htmlent = utf8ToHexSequence( $translation );
21 print "'$latin' => '$translation', # &#x$htmlent;\n";
22 }
23 print ");\n";
24 }