Last modified: 2014-11-14 09: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 T69732, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67732 - API self-documentation should not be localized.
API self-documentation should not be localized.
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
: i18n, need-volunteer
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-09 14:46 UTC by Daniel Kinzler
Modified: 2014-11-14 09:32 UTC (History)
6 users (show)

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


Attachments

Description Daniel Kinzler 2014-07-09 14:46:47 UTC
Several of our API modules use system messages to generate self-documentation, especially in the getPossibleErrors method. However, by convention, the API self-documentation should be english only. Consequently, all these messages are currently marked as DO NOT TRANSLATE in the qqq.json file. So, using messages there is pointless and misleading.

The messages used in getPossibleErrors correspond to API error codes, and could be used for localizing errors reported using the dieError() or dieException() methods (see bug 64874). To do this, replace the message access in getPossibleErrors with a literal string, remove the DO NOT TRANSLATE marker in the qqq.json file, and replace calls to dieUsage with dieError or dieException, respectively.
Comment 1 Helder 2014-07-13 17:51:05 UTC
I disagree that "the API self-documentation should be english only". It should be translatable, and the translations should be shown at [[Special:ApiSandbox]] (Bug 67950).
Comment 2 Daniel Kinzler 2014-07-30 09:51:51 UTC
@Helder: the current consensus is that API error messages and self-documentation is english only. If you want to change this, please make an RDF for mediawiki core. This bug is making Wikibase compliant with the conventions defined for core.
Comment 3 db [inactive,noenotif] 2014-08-10 19:39:38 UTC
possible errors were removed with Gerrit change #152760 from core

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


Navigation
Links