Handbuch:$wgDefaultLanguageVariant

This page is a translated version of the page Manual:$wgDefaultLanguageVariant and the translation is 50% complete.
Einstellungen für Sprache, Region und Zeichenkodierung: $wgDefaultLanguageVariant
Default language variant.
Eingeführt in Version:1.9.0 (r18754)
Entfernt in Version:weiterhin vorhanden
Erlaubte Werte:(string) oder false
Standardwert:false

Details

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.

Verwendung

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".

Siehe auch