Manual:listVariants.php
From Linux Web Expert
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.24
<translate> MediaWiki version:</translate> |
MediaWiki file: listVariants.php | |
---|---|
Location: | maintenance/language/ |
Source code: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Classes: | ListVariants |
Details
listVariants.php file is a maintenance script that lists all language variants.
Options/Arguments
Argument | Description | Required? |
---|---|---|
--flat | Output variants in a flat list | <translate> Optional</translate> |
--json | Output variants as JSON | <translate> Optional</translate> |
Usage
php maintenance/language/listVariants.php [ --flat| --json ]
Terminal
$ php maintenance/language/listVariants.php --json { "ban": [ "ban", "ban-bali", "ban-x-dharma", "ban-x-palmleaf", "ban-x-pku" ], "crh": [ "crh", "crh-cyrl", "crh-latn" ], "gan": [ "gan", "gan-hans", "gan-hant" ], "iu": [ "iu", "ike-cans", "ike-latn" ], "kk": [ "kk", "kk-cyrl", "kk-latn", "kk-arab", "kk-kz", "kk-tr", "kk-cn" ], "ku": [ "ku", "ku-arab", "ku-latn" ], "shi": [ "shi", "shi-tfng", "shi-latn" ], "sr": [ "sr", "sr-ec", "sr-el" ], "tg": [ "tg", "tg-latn" ], "uz": [ "uz", "uz-latn", "uz-cyrl" ], "zh": [ "zh", "zh-hans", "zh-hant", "zh-cn", "zh-hk", "zh-mo", "zh-my", "zh-sg", "zh-tw" ] }