Hello guys,
I have a self written Multilanguage extension for MediaWiki using <country> tag for selective text display depending from user language settings. It interacts with the LanguageSelector which I installed in the version for my MediaWiki 1.23.
The extension is working fine, but I get some weird output like..
UNIQ64ea7d5fb1d3858c-country-00000000-QINU on my page.
Here the Extension Function:
function wfArticleSectionCheck() {
global $wgParser;
$wgParser->setHook("country","wfRenderArticleSectionCheck");
}
function wfRenderArticleSectionCheck($input, $args, $parser) {
global $wgLanguageCode, $wgLang;
$lan = $wgLang->getCode();
if(strpos($args['lan'], $lan) !== false) {
$output = $parser->recursiveTagParse($input);
return $output;
}
}
Here is my setup..
MediaWiki 1.23
PHP 5.3.3
MySQL 5.1.67
Thank you.