Jump to content

Manual:$wgExtraLanguageNames

From mediawiki.org
This page is a translated version of the page Manual:$wgExtraLanguageNames and the translation is 75% complete.
言語、地域、文字エンコードの設定: $wgExtraLanguageNames
Names.php 内の既定の言語名に対するオーバーライドのリスト。
導入されたバージョン:1.12.0 (r28212)
除去されたバージョン:使用中
許容される値:(文字列の配列)
既定値:[]

詳細

includes/languages/data/Names.php 内の既定の言語名に対するオーバーライドのリストです。

$wgExtraLanguageNames['xyz'] = '言語名';

Many BCP-47 tags are not supported out of the box by MediaWiki. If you need to add one, make sure that the array key is fully lowercase even if uppercase characters are part of the standard version of the code. 例:

$wgExtraLanguageNames["ja-latn-hepburn"] = "Japanese in Latin script using Hepburn romanisation";
# Do not write "ja-Latn-hepburn"

注記

You may need to also add the prefix to $wgExtraInterlanguageLinkPrefixes for it to actually behave as an interlanguage link when defined.

関連項目