Manual:listVariants.php
MediaWiki バージョン: | ≧ 1.24 |
MediaWiki ファイル: listVariants.php | |
---|---|
場所: | maintenance/language/ |
ソース コード: | master • 1.42.3 • 1.41.4 • 1.39.10 |
クラス: | ListVariants |
詳細
listVariants.php ファイルは、言語変種をすべて列挙するメンテナンス スクリプトです。
オプション/引数
引数 | 説明 | 必須かどうか |
---|---|---|
--flat | Output variants in a flat list | 省略可能 |
--json | Output variants as JSON | 省略可能 |
使用法
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" ] }