https://bugzilla.wikimedia.org/show_bug.cgi?id=67732
Bug ID: 67732
Summary: API self-documentation should not be localized.
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l