Author: hououji2000
Description:
When using
$wgLanguageCode = "zh_hant";
When click "登入/建立新賬號" (in English should be Login / Create User), link, the page render fail.
It go to a URL
http://localhost/mediawiki/index.php?title=Special:%C7%94%A8%E6%88%B7%E7%99%BB%E5%85%A5&returnto=%E9%A6%96%E9%A0%81
(instead of the normal should be :
http://localhost/mediawiki/index.php?title=Special:%E7%94%A8%E6%88%B7%E7%99%BB%E5%85%A5&returnto=%E9%A6%96%E9%A0%81
attention, after 'Special' is different, from %E7, go to %C7)
I have trace that, this different is come from the php function ucfirst(), at the file ./include/SpecialPage.php (about line 584).
And I just make a hot fix
FROM
return ucfirst( $name );
TO
return $wgContLang->ucfirst( $name );
By now on, every thing seem OK.
Version: 1.14.x
Severity: critical
OS: Windows Vista
Platform: PC