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

       Web browser: ---
             Bug #: 33630
           Summary: Incorrect use of wfMsg in Linker.php, or parser cache
                    bug
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: Internationalization
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


In Linker.php we have

    $defaults['title'] = wfMsg( 'red-link-title', $target->getPrefixedText() );

which causes the tooltip text "$1 (page does not exist)" to be translated to
the user's interface language. This seems reasonable enough, but unfortunately
this also gets saved into the parser cache. As such, other users may see the
link title translated into the wrong language. It seems that the right thing to
do is to use wfMsgForContent instead of wfMsg.

To reproduce, change the interface language to, say, Interlingua, and save an
edit to any (new) page with red links. The red links will have their tooltip
text in Interlingua even when viewed anonymously. For some reason I have
difficulty reproducing this problem on pages which already exist.

-- 
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