Manual:$wgDefaultLanguageVariant

From MediaWiki.org
Jump to: navigation, search
Site customization: $wgDefaultLanguageVariant
Default variant code, if false, the default will be the language code.
Introduced in version: 1.9.0 (r18754)
Removed in version: still in use
Allowed values: (string) or false
Default value: false

Other settings: Alphabetical | By Function


[edit] 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.

[edit] Usage

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

[edit] See also

Language: English  • Français • 日本語 • Русский
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox