Last modified: 2012-01-10 13:44:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T35630, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 33630 - Incorrect use of wfMsg in Linker.php, or parser cache bug
Incorrect use of wfMsg in Linker.php, or parser cache bug
Status: RESOLVED DUPLICATE of bug 32686
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
unspecified
All All
: Unprioritized minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-10 03:18 UTC by Zhen Lin
Modified: 2012-01-10 13:44 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Zhen Lin 2012-01-10 03:18:45 UTC
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.
Comment 1 Niklas Laxström 2012-01-10 07:09:23 UTC
See also r107941.
Comment 2 Zhen Lin 2012-01-10 10:10:33 UTC
This seems to be the same as bug 32686, actually. Apologies. (But I'm having the problem in MediaWiki 1.18, not 1.19.)
Comment 3 Siebrand Mazeland 2012-01-10 13:44:08 UTC

*** This bug has been marked as a duplicate of bug 32686 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links