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

       Web browser: ---
             Bug #: 30245
           Summary: Use full localized name for Special:Log in IRC RC feed
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Recent changes
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: umherirrender_de...@web.de
    Classification: Unclassified


Current the IRC RC feed outputted the name of Special:Log half localized. Only
the namespace is localised but the rest is the canonical form.

Please make it full localized by using, for example, SpecialPage::getTitleFor()

RecentChanges.php: (untested)
 if( $this->mAttribs['rc_type'] == RC_LOG ) {
- $titleObj = Title::newFromText( 'Log/' . $this->mAttribs['rc_log_type'],
NS_SPECIAL );
+ $titleObj = SpecialPage::getTitleFor( 'Log', $this->mAttribs['rc_log_type']
);
 } else {

Thanks.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to