From 1760fd620294f55e6c11f640323d10166a6f9c1c Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Tue, 5 Jan 2010 08:40:50 +0000 Subject: [PATCH] Add documentation for $wgVariantArticlePath --- includes/DefaultSettings.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 -- 2.20.1