Manual:ListVariants.php
Appearance
Outdated translations are marked like this.
Versão MediaWiki: | ≥ 1.24 |
Arquivo MediaWiki: listVariants.php | |
---|---|
Local: | maintenance/language/ |
Código fonte: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | ListVariants |
Detalhes
O arquivo listVariants.php é um script de manutenção que lista todas as variantes de idioma.
Options/Arguments
Argument | Description | Required? |
---|---|---|
--flat | Output variants in a flat list | Optional |
--json | Output variants as JSON | Optional |
Usage
php maintenance/run.php language/listVariants [ --flat| --json ]
Terminal
$ php maintenance/run.php language/listVariants --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" ] }
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.