From: Mark A. Hershberger Date: Tue, 5 Jan 2010 08:40:50 +0000 (+0000) Subject: Add documentation for $wgVariantArticlePath X-Git-Tag: 1.31.0-rc.0~38412 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Category:Foo?a=commitdiff_plain;h=1760fd620294f55e6c11f640323d10166a6f9c1c;p=lhc%2Fweb%2Fwiklou.git Add documentation for $wgVariantArticlePath --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 74c8785e54..c32952bd8d 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -151,7 +151,6 @@ $wgStylePath = false; ///< defaults to "{$wgScriptPath}/skins" $wgStyleDirectory = false; ///< defaults to "{$IP}/skins" $wgStyleSheetPath = &$wgStylePath; $wgArticlePath = false; ///< default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo -$wgVariantArticlePath = false; $wgUploadPath = false; ///< defaults to "{$wgScriptPath}/images" $wgUploadDirectory = false; ///< defaults to "{$IP}/images" $wgHashedUploadDirectory = true; @@ -1037,6 +1036,22 @@ $wgDefaultLanguageVariant = false; */ $wgDisabledVariants = array(); +/** + * Like $wgArticlePath, but on multi-variant wikis, this provides a + * path format that describes which parts of the URL contain the + * language variant. For Example: + * + * $wgLanguageCode = 'sr'; + * $wgVariantArticlePath = '/$2/$1'; + * $wgArticlePath = '/wiki/$1'; + * + * A link to /wiki/ would be redirected to /sr/Главна_страна + * + * It is important that $wgArticlePath not overlap with possible values + * of $wgVariantArticlePath. + */ +$wgVariantArticlePath = false;///< defaults to false + /** * Show a bar of language selection links in the user login and user * registration forms; edit the "loginlanguagelinks" message to