From: Niklas Laxström Date: Fri, 8 Feb 2013 04:47:55 +0000 (+0000) Subject: Expand $wgLanguageCode documentation X-Git-Tag: 1.31.0-rc.0~20756^2 X-Git-Url: http://git.cyclocoop.org/%22.%24redirect_annul.%22?a=commitdiff_plain;h=876752cabd8d855140c65a951d2cedc291bf76ee;p=lhc%2Fweb%2Fwiklou.git Expand $wgLanguageCode documentation Includes warning for bug 44747 Change-Id: Ib18c988731afcbe94703bb4e2ca47effa58e2904 --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 3b76c5763e..54f2a92cd6 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2189,7 +2189,21 @@ $wgUsePrivateIPs = false; * @{ */ -/** Site language code, should be one of ./languages/Language(.*).php */ +/** + * Site language code. See languages/Names.php for languages supported by + * MediaWiki out of the box. Not all languages listed there have translations, + * see languages/messages/ for the list of languages with some localisation. + * + * Warning: Don't use language codes listed in $wgDummyLanguageCodes like "no" + * for Norwegian (use "nb" instead), or things will break unexpectedly. + * + * This defines the default interface language for all users, but users can + * change it in their preferences. + * + * This also defines the language of pages in the wiki. The content is wrapped + * in a html element with lang=XX attribute. This behaviour can be overriden + * via hooks, see Title::getPageLanguage. + */ $wgLanguageCode = 'en'; /**