Expand $wgLanguageCode documentation
authorNiklas Laxström <niklas.laxstrom@gmail.com>
Fri, 8 Feb 2013 04:47:55 +0000 (04:47 +0000)
committerNiklas Laxström <niklas.laxstrom@gmail.com>
Fri, 8 Feb 2013 04:50:31 +0000 (04:50 +0000)
Includes warning for bug 44747

Change-Id: Ib18c988731afcbe94703bb4e2ca47effa58e2904

includes/DefaultSettings.php

index 3b76c57..54f2a92 100644 (file)
@@ -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';
 
 /**