From 876752cabd8d855140c65a951d2cedc291bf76ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 8 Feb 2013 04:47:55 +0000 Subject: [PATCH] Expand $wgLanguageCode documentation Includes warning for bug 44747 Change-Id: Ib18c988731afcbe94703bb4e2ca47effa58e2904 --- includes/DefaultSettings.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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'; /** -- 2.20.1