Last modified: 2013-07-22 12:12:38 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 T49791, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47791 - possibles errors of action=createaccount depending on uselang and changed when message is modified onwiki
possibles errors of action=createaccount depending on uselang and changed whe...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.22.0
All All
: Low normal (vote)
: ---
Assigned To: Kunal Mehta (Legoktm)
: easy, i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-28 16:28 UTC by db [inactive,noenotif]
Modified: 2013-07-22 12:12 UTC (History)
7 users (show)

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


Attachments

Description db [inactive,noenotif] 2013-04-28 16:28:03 UTC
The errors, shown by action=paraminfo for a module are usally in english and does not depending on wiki modified messages, because there are hardcoded inside the api.

This is not happen for some of the errors of the action=createaccount module, which makes things bad, because the return result contains mixed languages, very bad.
Comment 1 Alex Monk 2013-04-28 17:02:51 UTC
I don't quite understand what you're talking about. Could you show an example API response which is wrong?
Comment 2 db [inactive,noenotif] 2013-04-28 18:25:33 UTC
Go to

http://de.wikipedia.org/w/api.php?action=paraminfo&modules=createaccount&format=jsonfm

Search for "errors"

You will see some english text and by "wrongpassword" a german text.

For message "acct_creation_throttle_hit" you can see, that there is the locally created message is used ([[de:MediaWiki:acct_creation_throttle_hit]])

All other modules (for example modules=edit) response only a english text. The error messages of that module on action=createaccount are also not in english, action=edit always response error text in english.
Comment 3 Brad Jorsch 2013-04-29 14:12:13 UTC
Should be easy to fix, if someone wants to bother. Just chain ->inLanguage( 'en' )->useDatabase( false ) onto the wfMessage() calls.

See also bug 45843.
Comment 4 Gerrit Notification Bot 2013-07-22 09:45:29 UTC
Change 75081 had a related patch set uploaded by Legoktm:
Possible error messages for action=createaccount should be in English and not show local modifications

https://gerrit.wikimedia.org/r/75081
Comment 5 Gerrit Notification Bot 2013-07-22 12:11:34 UTC
Change 75081 merged by jenkins-bot:
Possible error messages for action=createaccount should be in English and not show local modifications

https://gerrit.wikimedia.org/r/75081

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


Navigation
Links