https://bugzilla.wikimedia.org/show_bug.cgi?id=21986

           Summary: When use zh_hant, cannot go to the login page.
           Product: MediaWiki
           Version: 1.14.1
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Keywords: i18n, utf8
          Severity: critical
          Priority: Normal
         Component: Templates
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to