Bonjour,

J'essaie de configurer un wiki multilingue. J'ai suivi les instructions de la page http://www.mediawiki.org/wiki/Help:Interwiki_linking/fr.
J'ai donc installé trois wikis différents: fr, en et pool, dans des dossiers séparés et avec les noms de dossier différents.

J'ai modifié mes fichiers de configuration de façon à avoir un fichier de configuration commun CentralSettings.php, et un fichier LocalSettings.php contenant le reste des paramètres propres à chaque wiki multilingue. Le wiki pool garde son LocalSettings.php propre.

Je gère bien la gestion des images à travers le wiki pool, mais par contre les liens entre les wiki posent un problème.
En effet, les liens que j'obtiens sont du type: http://wiki.org/http://wiki.org/Titre. En fait, au lieu de remplacer l'Url complète, il remplace uniquement le titre.
Je ne comprends pas d'où vient le problème. Peut-être parce que mon hébergement ne me permet pas de gérer les sous-noms de domaine et que mes adresses sont du type http://adresse.com/wiki_fr et non http://fr.adresse.com/wiki


Bref, je ne sais plus bien dans quelle direction chercher.


Je vous remercie d'avance pour votre aide!

Voici le code de ces fichiers:
fichier: LocalSettings de wiki_fr:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
require_once('../wiki_pool/CentralSettings.php');
 
## The URL base path to the directory containing the wiki;
## defaults for all runtime URL paths are based off of this.
$wgScriptPath       = "/~convictum/wiki_fr";
$wgLocalInterwiki   = "fr";
 
 
# MySQL specific settings
$wgDBprefix         = "mw_fr_";
 
$wgLanguageCode = "fr";
fichier CentralSettings de wiki_pool:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
 
## This page is called by wiki's LocalSettings.php file.
## It gathers the common parameters for all the wikis others than the pool-wiki.
## It makes it easier to change the parameters since there's only one file to modify.
## Below are common parameters. Local parameters are still in other wiki's LocalSettings.php file.
## To make a parameter depend  on a wiki, just move it from this file to each LocalSettings.php file.
 
# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
	$IP = MW_INSTALL_PATH;
} else {
	$IP = dirname( __FILE__ );
}
 
$path = array( $IP, "$IP/includes", "$IP/languages" );
set_include_path( implode( PATH_SEPARATOR, $path ) . PATH_SEPARATOR . get_include_path() );
 
require_once( "$IP/includes/DefaultSettings.php" );
 
# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );
 
if ( $wgCommandLineMode ) {
	if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
		die( "This script must be run from the command line\n" );
	}
}
 
## Uncomment this to disable output compression
# $wgDisableOutputCompression = true;
 
$wgSitename         = "Convictum";
$wgLogo				= "http://convictum.campus.ecp.fr/wiki_pool/images/Logo_wiki.png";
 
$wgScriptExtension  = ".php";
 
 
## For a detailed description of the following switches see
## http://www.mediawiki.org/wiki/Extension:Email_notification 
## and http://www.mediawiki.org/wiki/Extension:Email_notification
## There are many more options for fine tuning available see
## /includes/DefaultSettings.php
## UPO means: this is also a user preference option
$wgEnotifUserTalk = true; # UPO
$wgEnotifWatchlist = true; # UPO
$wgEmailAuthentication = true;
 
 
## For more information on customizing the URLs please see:
## http://www.mediawiki.org/wiki/Manual:Short_URL
 
$wgEnableEmail      = true;
$wgEnableUserEmail  = true;
 
 
 
# MySQL table options to use during installation or update
$wgDBTableOptions   = "TYPE=InnoDB";
 
# Experimental charset support for MySQL 4.1/5.0.
$wgDBmysql5 = false;
 
# Postgres specific settings
$wgDBport           = "5432";
$wgDBmwschema       = "mediawiki";
$wgDBts2schema      = "public";
 
## Shared memory settings
$wgMainCacheType = CACHE_NONE;
$wgMemCachedServers = array();
 
## To enable image uploads, make sure the 'images' directory
## is writable, then set this to true:
$wgEnableUploads       = false;
# $wgUseImageMagick = true;
# $wgImageMagickConvertCommand = "/usr/bin/convert";
 
## If you want to use image uploads under safe mode,
## create the directories images/archive, images/thumb and
## images/temp, and make them all writable. Then uncomment
## this, if it's not already uncommented:
$wgHashedUploadDirectory = false;
 
## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX           = false;
 
 
## Default skin: you can change the default skin. Use the internal symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue', 'monobook':
$wgDefaultSkin = 'monobook';
 
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
# $wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes your license/copyright
$wgRightsUrl = "";
$wgRightsText = "";
$wgRightsIcon = "";
# $wgRightsCode = ""; # Not yet used
 
$wgDiff3 = "";
 
# When you make changes to this configuration file, this will make
# sure that cached pages are cleared.
$configdate = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
$wgCacheEpoch = max( $wgCacheEpoch, $configdate );
 
# Support of Ajax for the extension CategoryTree
$wgUseAjax = true;
require_once( "{$IP}/extensions/CategoryTree/CategoryTree.php" );
 
# Below parameters are used for multi-wikis. It defines the use of the pool-wiki, which contains all files	
$wgUploadNavigationUrl = "http://perso.campus.ecp.fr/~convictum/wiki_pool/index.php/Special:Upload";
$wgUseSharedUploads = true;
$wgSharedUploadPath = "http://perso.campus.ecp.fr/~convictum/wiki_pool/images/";
$wgSharedUploadDirectory = "/(LOCALPATH)/POOL-FOLDER/images/";
$wgHashedSharedUploadDirectory = false;
$wgFetchCommonsDescriptions = true;
$wgSharedUploadDBname = "bdd";  # nom de la base de données du poolwiki
$wgSharedUploadDBprefix = "mw_pool_"; # préfixe du nom de la table pour le poolwiki
$wgRepositoryBaseUrl = "http://perso.campus.ecp.fr/~convictum/wiki_pool/index.php/Image:";
 
 
?>