Page MenuHomePhabricator

When use zh_hant, cannot go to the login page.
Closed, ResolvedPublic

Description

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

Details

Reference
bz21986

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:49 PM
bzimport set Reference to bz21986.
bzimport added a subscriber: Unknown Object (MLST).
demon added a comment.Jan 1 2010, 4:15 PM

Done in r60541.