Manual:$wgDefaultLanguageVariant

Details
Default variant code, if false, the default will be the language code.

Usage
In LocalSettings.php, one may set: $wgLanguageCode = "de"; $wgDefaultLanguageVariant = "de-formal"; This will use the formal German system messages, but report for javascript the simple contentlanguage="de".