Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -151,7 +151,6 @@ |
152 | 152 | $wgStyleDirectory = false; ///< defaults to "{$IP}/skins" |
153 | 153 | $wgStyleSheetPath = &$wgStylePath; |
154 | 154 | $wgArticlePath = false; ///< default to "{$wgScript}/$1" or "{$wgScript}?title=$1", depending on $wgUsePathInfo |
155 | | -$wgVariantArticlePath = false; |
156 | 155 | $wgUploadPath = false; ///< defaults to "{$wgScriptPath}/images" |
157 | 156 | $wgUploadDirectory = false; ///< defaults to "{$IP}/images" |
158 | 157 | $wgHashedUploadDirectory = true; |
— | — | @@ -1038,6 +1037,22 @@ |
1039 | 1038 | $wgDisabledVariants = array(); |
1040 | 1039 | |
1041 | 1040 | /** |
| 1041 | + * Like $wgArticlePath, but on multi-variant wikis, this provides a |
| 1042 | + * path format that describes which parts of the URL contain the |
| 1043 | + * language variant. For Example: |
| 1044 | + * |
| 1045 | + * $wgLanguageCode = 'sr'; |
| 1046 | + * $wgVariantArticlePath = '/$2/$1'; |
| 1047 | + * $wgArticlePath = '/wiki/$1'; |
| 1048 | + * |
| 1049 | + * A link to /wiki/ would be redirected to /sr/Главна_страна |
| 1050 | + * |
| 1051 | + * It is important that $wgArticlePath not overlap with possible values |
| 1052 | + * of $wgVariantArticlePath. |
| 1053 | + */ |
| 1054 | +$wgVariantArticlePath = false;///< defaults to false |
| 1055 | + |
| 1056 | +/** |
1042 | 1057 | * Show a bar of language selection links in the user login and user |
1043 | 1058 | * registration forms; edit the "loginlanguagelinks" message to |
1044 | 1059 | * customise these |