Last modified: 2014-11-17 09:46: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 T61693, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59693 - Submit button text displays in wrong language
Submit button text displays in wrong language
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
InputBox (Other open bugs)
unspecified
All All
: Normal major with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-05 19:39 UTC by Yair Rand
Modified: 2014-11-17 09:46 UTC (History)
5 users (show)

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


Attachments

Description Yair Rand 2014-01-05 19:39:57 UTC
The language of the value attribute of the <input type="submit"> elements in <inputbox>s is always set to the language setting that the user who most recently edited the page had while editing, instead of the language of the user currently viewing the page.

Steps to reproduce:
1. Go to a page with some <inputbox>s, such as https://www.mediawiki.org/wiki/Extension:InputBox
2. Change language settings to a different language (such as, say, Chinese: https://www.mediawiki.org/wiki/Extension:InputBox?setlang=zh )
3. Go to the edit page ( https://www.mediawiki.org/wiki/Extension:InputBox?action=edit ) and click "Save page" or equivalent.
4. Set language back to original language (assuming English: https://www.mediawiki.org/wiki/Extension:InputBox?setlang=en ). The content of the input elements remain in the other language.
Comment 1 Kunal Mehta (Legoktm) 2014-01-14 03:44:31 UTC
In the InputBox class I see:

// Split caches by language, to make sure visitors do not see a cached
// version in a random language (since labels are in the user language)
$this->mParser->getOptions()->getUserLangObj();


Which was added in I69ade88bb43f73404965b7cb63e88b824561d988 by Hoo (cc'd).
Comment 2 Marius Hoch 2014-02-01 15:40:22 UTC
This has probably the same cause as bug 60715

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


Navigation
Links