Last modified: 2014-05-29 10:32:48 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 T62823, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60823 - "Other languages" message is cached in the wrong language when the page is saved
"Other languages" message is cached in the wrong language when the page is saved
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-04 12:27 UTC by Kevin Israel (PleaseStand)
Modified: 2014-05-29 10:32 UTC (History)
6 users (show)

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


Attachments
screenshot (134.46 KB, image/png)
2014-02-04 12:59 UTC, Kevin Israel (PleaseStand)
Details

Description Kevin Israel (PleaseStand) 2014-02-04 12:27:49 UTC
Steps to reproduce:

1. In Preferences, set your language to, for example, Polish.
2. Go to a translatable page such as <https://meta.wikimedia.org/wiki/Tech/News/2014/07>.
3. Edit that page.
4. Set your language back to English.
5. Force-reload the translatable page.

Expected result:

The text "Other languages:" appears in English, because English is the language of the page.

Actual result:

The text "Other languages:" appears in Polish (as "Inne języki:").
Comment 1 Niklas Laxström 2014-02-04 12:41:50 UTC
Cannot reproduce :/
Comment 2 Kevin Israel (PleaseStand) 2014-02-04 12:59:35 UTC
Created attachment 14477 [details]
screenshot

This was what I saw after Nikerabbit's test edit to the page.
Comment 3 Niklas Laxström 2014-02-04 13:01:54 UTC
Okay I can see it with Incognito mode logged out. Perhaps my regular user account has some cache busting trigger.
Comment 4 Niklas Laxström 2014-05-29 10:32:48 UTC
In PageTranslationHooks::languages() we do split the parser cache by user language, but then we go to use wfMessage() without passing the correct language code in, which might result the wrong language being cached. Not sure why those two languages would be different though.

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


Navigation
Links