Podręcznik:$wgDefaultLanguageVariant

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgDefaultLanguageVariant and the translation is 40% complete.
Other languages:
English • ‎español • ‎français • ‎polski • ‎русский • ‎日本語
Site customization: $wgDefaultLanguageVariant
Default language variant.
Wprowadzono w wersji:1.9.0 (r18754)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(string) or false
Domyślna wartość:false

Szczegóły

Default variant code, if false, the default will be the language code. Only works when it is defined as a variant in the LanguageConverter class of that language.

Użycie

In LocalSettings.php, one may set:

$wgLanguageCode  = "sr";
$wgDefaultLanguageVariant = "sr-el";

This will use Serbian system messages in Latin-script, but report for javascript the simple contentlanguage="sr".

Zobacz też