Jump to content

Příručka:$wgExtraLanguageNames

From mediawiki.org
This page is a translated version of the page Manual:$wgExtraLanguageNames and the translation is 75% complete.
Nastavení jazyka, regionálního kódování a kódování znaků: $wgExtraLanguageNames
Seznam názvů jazyků nebo přepsání výchozích názvů v Names.php.
Zavedeno od verze:1.12.0 (r28212)
Odstraněno od verze:stále se používá
Povolené hodnoty:(pole řetězců)
Výchozí hodnota:[]

Podrobnosti

Seznam názvů jazyků nebo přepsání výchozích názvů v includes/languages/data/Names.php .

$wgExtraLanguageNames['xyz'] = 'Název jazyka';

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. For example:

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

Notes

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