Manual:Digit2html.php
Appearance
MediaWiki version: | ≥ 1.11 |
MediaWiki file: digit2html.php | |
---|---|
Location: | maintenance/language/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | Digit2Html |
Details
digit2html.php file is a maintenance script to check digit transformation.
For Hindi, Arabic, and other languages with their own numeral systems, MediaWiki uses local numerals instead of Western-style (0-9) numerals in some areas of the interface, as configured by the $digitTransformTable
mapping array in the system messages file. This script checks this digit transformation.
Options/Arguments
This script does not take any options or arguments.
Usage
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' => '९', # � ];