Last modified: 2014-05-29 10:32:48 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:").
Cannot reproduce :/
Created attachment 14477 [details] screenshot This was what I saw after Nikerabbit's test edit to the page.
Okay I can see it with Incognito mode logged out. Perhaps my regular user account has some cache busting trigger.
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.