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.
Version: unspecified
Severity: normal
Whiteboard: u=dev c=backend p=0
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=64874
https://bugzilla.wikimedia.org/show_bug.cgi?id=67950
https://bugzilla.wikimedia.org/show_bug.cgi?id=35074