Manuel:digit2html.php
Appearance
Version de MediaWiki : | ≥ 1.11 |
Fichier MediaWiki : digit2html.php | |
---|---|
Emplacement : | maintenance/language/ |
Code source : | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes : | Digit2Html |
Détails
Le fichier digit2html.php est un script de maintenance pour vérifier la transformation des chiffres.
Pour le Hindou, l'Arabe, et d'autres langues avec leur propres systèmes de nombres, MédiaWiki utilise les chiffres locaux au lieu des chiffre occidentaux (0-9) dans certaines zones de l'interface, comme configuré par le tableau de correspondance $digitTransformTable
dans le fichier de messages systèmes. Ce script vérifie cette transformation de chiffres.
Options et arguments
Ce script n'a pas d'options ni d'arguments.
Utilisation
php maintenance/language/digit2html.php
Terminal
$ php maintenance/language/digit2html.php Loading language [Ar] ... OK $digitTransformTable = [ '0' => '٠', # � '1' => '١', # � '2' => '٢', # � '3' => '٣', # � '4' => '٤', # � '5' => '٥', # � '6' => '٦', # � '7' => '٧', # � '8' => '٨', # � '9' => '٩', # � ]; Loading language [As] ... OK $digitTransformTable = [ '0' => '০', # � '1' => '১', # � '2' => '২', # � '3' => '৩', # � '4' => '৪', # � '5' => '৫', # � '6' => '৬', # � '7' => '৭', # � '8' => '৮', # � '9' => '৯', # � ]; Loading language [Bh] ... Loading language [Bo] ... OK $digitTransformTable = [ '0' => '༠', # � '1' => '༡', # � '2' => '༢', # � '3' => '༣', # � '4' => '༤', # � '5' => '༥', # � '6' => '༦', # � '7' => '༧', # � '8' => '༨', # � '9' => '༩', # � ]; Loading language [Dz] ... OK $digitTransformTable = [ '0' => '༠', # � '1' => '༡', # � '2' => '༢', # � '3' => '༣', # � '4' => '༤', # � '5' => '༥', # � '6' => '༦', # � '7' => '༧', # � '8' => '༨', # � '9' => '༩', # � ]; Loading language [Fa] ... OK $digitTransformTable = [ '0' => '۰', # � '1' => '۱', # � '2' => '۲', # � '3' => '۳', # � '4' => '۴', # � '5' => '۵', # � '6' => '۶', # � '7' => '۷', # � '8' => '۸', # � '9' => '۹', # � '%' => '٪', # � ]; Loading language [Gu] ... OK $digitTransformTable = [ '0' => '૦', # � '1' => '૧', # � '2' => '૨', # � '3' => '૩', # � '4' => '૪', # � '5' => '૫', # � '6' => '૬', # � '7' => '૭', # � '8' => '૮', # � '9' => '૯', # � ]; Loading language [Hi] ... OK $digitTransformTable = [ '0' => '०', # � '1' => '१', # � '2' => '२', # � '3' => '३', # � '4' => '४', # � '5' => '५', # � '6' => '६', # � '7' => '७', # � '8' => '८', # � '9' => '९', # � ]; Loading language [Km] ... OK $digitTransformTable = [ '0' => '០', # � '1' => '១', # � '2' => '២', # � '3' => '៣', # � '4' => '៤', # � '5' => '៥', # � '6' => '៦', # � '7' => '៧', # � '8' => '៨', # � '9' => '៩', # � ]; Loading language [Kn] ... OK $digitTransformTable = [ '0' => '೦', # � '1' => '೧', # � '2' => '೨', # � '3' => '೩', # � '4' => '೪', # � '5' => '೫', # � '6' => '೬', # � '7' => '೭', # � '8' => '೮', # � '9' => '೯', # � ]; Loading language [Ks] ... Loading language [Lo] ... OK $digitTransformTable = [ '0' => '໐', # � '1' => '໑', # � '2' => '໒', # � '3' => '໓', # � '4' => '໔', # � '5' => '໕', # � '6' => '໖', # � '7' => '໗', # � '8' => '໘', # � '9' => '໙', # � ]; Loading language [Ml] ... Loading language [Mr] ... OK $digitTransformTable = [ '0' => '०', # � '1' => '१', # � '2' => '२', # � '3' => '३', # � '4' => '४', # � '5' => '५', # � '6' => '६', # � '7' => '७', # � '8' => '८', # � '9' => '९', # � ]; Loading language [Ne] ... OK $digitTransformTable = [ '0' => '०', # � '1' => '१', # � '2' => '२', # � '3' => '३', # � '4' => '४', # � '5' => '५', # � '6' => '६', # � '7' => '७', # � '8' => '८', # � '9' => '९', # � ]; Loading language [New] ... OK $digitTransformTable = [ '0' => '०', # � '1' => '१', # � '2' => '२', # � '3' => '३', # � '4' => '४', # � '5' => '५', # � '6' => '६', # � '7' => '७', # � '8' => '८', # � '9' => '९', # � ]; Loading language [Or] ... OK $digitTransformTable = [ '0' => '୦', # � '1' => '୧', # � '2' => '୨', # � '3' => '୩', # � '4' => '୪', # � '5' => '୫', # � '6' => '୬', # � '7' => '୭', # � '8' => '୮', # � '9' => '୯', # � ]; Loading language [Pa] ... Loading language [Pi] ... OK $digitTransformTable = [ '0' => '०', # � '1' => '१', # � '2' => '२', # � '3' => '३', # � '4' => '४', # � '5' => '५', # � '6' => '६', # � '7' => '७', # � '8' => '८', # � '9' => '९', # � ]; Loading language [Sa] ... OK $digitTransformTable = [ '0' => '०', # � '1' => '१', # � '2' => '२', # � '3' => '३', # � '4' => '४', # � '5' => '५', # � '6' => '६', # � '7' => '७', # � '8' => '८', # � '9' => '९', # � ];