00001 <?php 00007 require( '../commandLine.inc' ); 00008 00009 # A list of unicode numerals is available at: 00010 # http://www.fileformat.info/info/unicode/category/Nd/list.htm 00011 $langs = array( 'Ar', 'As', 'Bh', 'Bo', 'Dz', 'Fa', 'Gu', 'Hi', 'Km', 'Kn', 'Ks', 'Lo', 'Ml', 'Mr', 'Ne', 'New', 'Or', 'Pa', 'Pi', 'Sa' ); 00012 00013 foreach( $langs as $code ) { 00014 $filename = Language::getMessagesFileName( $code ); 00015 echo "Loading language [$code] ... "; 00016 unset( $digitTransformTable ); 00017 require_once( $filename ); 00018 if( !isset( $digitTransformTable ) ) { 00019 print "\$digitTransformTable not found\n"; 00020 continue; 00021 } 00022 00023 print "OK\n\$digitTransformTable = array(\n"; 00024 foreach( $digitTransformTable as $latin => $translation ) { 00025 $htmlent = utf8ToHexSequence( $translation ); 00026 print "'$latin' => '$translation', # &#x$htmlent;\n"; 00027 } 00028 print ");\n"; 00029 }