I made a little hack for the translation plugin to link the question mark to the translated relevant page ONLY IF about page BEGINS with the translation namespace, else link is built as usual. Please try to replace (around line 131)
if($this->getConf('about')){
$out .= '<sup>'.html_wikilink($this->getConf('about'),'?').'</sup>';
}
by
if($this->getConf('about')){
if($this->tns && strpos($this->getConf('about'),$this->tns) === 0){
$aboutpage = $this->tns.':'.$this->_currentLang().':'.preg_replace('/'.$this->tns.'/', '', $this->getConf('about'));
}else{
$aboutpage = $this->getConf('about');
}
$out .= '<sup>'.html_wikilink($aboutpage,'?').'</sup>';
}
EDIT: I replaced
!== by
=== (that was what I originaly wanted). Now it only works if the 'about page' begins with the translation namespace. Else link is built as usual.
EDIT2: oops, still doesn't work, but soon! Walter, the link is relative, so if you set it to 'explanation', when you're in
trans:fr:page, it will lead you to
trans:fr:explanation. Works here.
EDIT3: Relative thing works only if you don't have subnamespaces below the translation one. Anyway, now it works, I replaced
$this->getConf('about') by
preg_replace('/'.$this->tns.'/', '', $this->getConf('about')) (and added
Else link is built as usual. in the first EDIT.
Sorry for this mess if you read the previous versions.