diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-09-14 13:18:58 +0200 |
commit | 8f416baead93a48e5799e44b8bd2e2c4859f4e04 (patch) | |
tree | cd47ac55eb80a39e3225e8b4f3161b88ea16c2cf /maintenance/language/digit2html.php | |
parent | d7d08bd1a17618c7d77a6b9b2989e9f7293d6ed6 (diff) |
auf Version 1.11 aktualisiert; Login-Bug behoben
Diffstat (limited to 'maintenance/language/digit2html.php')
-rw-r--r-- | maintenance/language/digit2html.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/maintenance/language/digit2html.php b/maintenance/language/digit2html.php new file mode 100644 index 00000000..3b690461 --- /dev/null +++ b/maintenance/language/digit2html.php @@ -0,0 +1,24 @@ +<?php +require( '../commandLine.inc' ); + +# A list of unicode numerals is available at: +# http://www.fileformat.info/info/unicode/category/Nd/list.htm +$langs = array( 'Ar', 'As', 'Bh', 'Bo', 'Dz', 'Fa', 'Gu', 'Hi', 'Km', 'Kn', 'Ks', 'Lo', 'Ml', 'Mr', 'Ne', 'New', 'Or', 'Pa', 'Pi', 'Sa' ); + +foreach( $langs as $code ) { + $filename = Language::getMessagesFileName( $code ); + echo "Loading language [$code] ... "; + unset( $digitTransformTable ); + require_once( $filename ); + if( !isset( $digitTransformTable ) ) { + print "\$digitTransformTable not found\n"; + continue; + } + + print "OK\n\$digitTransformTable = array(\n"; + foreach( $digitTransformTable as $latin => $translation ) { + $htmlent = utf8ToHexSequence( $translation ); + print "'$latin' => '$translation', # &#x$htmlent;\n"; + } + print ");\n"; +} |