Last modified: 2014-08-02 02:02:02 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 T37074, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35074 - Make API error messages translatable
Make API error messages translatable
Status: NEW
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.19
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
https://www.mediawiki.org/w/index.php...
: i18n
: 45753 (view as bug list)
Depends on: 45843
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-09 01:17 UTC by Helder
Modified: 2014-08-02 02:02 UTC (History)
8 users (show)

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


Attachments

Description Helder 2012-03-09 01:17:53 UTC
Currently, if we do a call such as
https://pt.wikipedia.org/w/api.php?action=LOREM+IPSUM&format=jsonfm
there will be an error message
>"info": "Unrecognized value for parameter 'action': LOREM IPSUM"

This kind of messages from API (errors and warnings) should be translatable into the user language.
Comment 1 Niklas Laxström 2012-03-09 06:48:51 UTC
We should not complicate API itself with i18n too much, but we can certainly make it easier for applications using API by providing localised error message through an API module or RL module for example.
Comment 2 Sam Reed (reedy) 2012-03-09 16:32:25 UTC
(In reply to comment #1)
> We should not complicate API itself with i18n too much, but we can certainly
> make it easier for applications using API by providing localised error message
> through an API module or RL module for example.

I'd agree with something along those lines.

Just because someone is using it on a non english wiki (especially in WMFs case), doesn't mean they want their error messages localised.

Having some map (though, we probably need to ensure unique error codes), to be able to request a localised version would be sane
Comment 3 Brad Jorsch 2013-03-05 21:25:21 UTC
*** Bug 45753 has been marked as a duplicate of this bug. ***

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


Navigation
Links