Last modified: 2014-08-22 23:05:07 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 T71905, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69905 - Tooltip "page does not exist" for red links is displayed in interface language of the last user who edited the page
Tooltip "page does not exist" for red links is displayed in interface languag...
Status: RESOLVED DUPLICATE of bug 32686
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.24rc
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-22 15:13 UTC by Edward Chernenko
Modified: 2014-08-22 23:05 UTC (History)
12 users (show)

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


Attachments

Description Edward Chernenko 2014-08-22 15:13:50 UTC
I. How to reproduce the issue:

1) Switch your interface language to A (where A is a language different from the default language of this wiki).
2) Edit any page that has a redlink.
3) Logout. Open the page you just edited and put a mouse over the redlink.

The tooltip will be shown in language A.
But it must be shown in the default language of this wiki.

II. Impact: foreign interwiki bots change tooltips on every article they touch.

III. Possible cause: this interface message is somehow cached improperly. action=purge restores the correct value.
Comment 1 Edward Chernenko 2014-08-22 15:19:44 UTC
The interface message in question is [[MediaWiki:Red-link-title]]
Comment 2 Edward Chernenko 2014-08-22 15:27:04 UTC
Suggested fix.

diff -up a/Linker.php b/Linker.php
--- a/Linker.php	2014-08-22 19:25:52.676415475 +0400
+++ b/Linker.php	2014-08-22 19:25:52.255413597 +0400
@@ -345,7 +345,7 @@ class Linker {
 		} elseif ( in_array( 'known', $options ) ) {
 			$defaults['title'] = $target->getPrefixedText();
 		} else {
-			$defaults['title'] = wfMessage( 'red-link-title', $target->getPrefixedText() )->text();
+			$defaults['title'] = wfMessage( 'red-link-title', $target->getPrefixedText() )->inContentLanguage()->text();
 		}
 
 		# Finally, merge the custom attribs with the default ones, and iterate
Comment 3 Andre Klapper 2014-08-22 16:12:49 UTC
Thanks for taking the time to report this and investigating!

If you feel like cooking a patch, you are welcome to use Developer access
  https://www.mediawiki.org/wiki/Developer_access
to submit this as a Git branch directly into Gerrit:
  https://www.mediawiki.org/wiki/Git/Tutorial
Putting your branch in Git makes it easier to review it quickly. If you don't want to set up Git/Gerrit, you can also use https://tools.wmflabs.org/gerrit-patch-uploader/
Thanks again!
Comment 4 Umherirrender 2014-08-22 17:33:18 UTC
see also or duplicate: bug 32686
Comment 5 Nemo 2014-08-22 23:05:07 UTC
This is a vexata quaestio; several attempts were made and failed.

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