[openstreetmap/openstreetmap-website] Forcing English language error response for /api/0.6/user/details (#2227)
mmd
notifications at github.com
Sat May 18 17:53:18 UTC 2019
/api/0.6/user/details is one of the very few API calls to return localized error messages. While this is good to convene some message to a mapper, in case they have been blocked, it's more difficult for editing applications like JOSM to figure out what happened.
Here's the code in question:
https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/api_controller.rb#L71-L84
We were wondering if it would be feasible to always include an English language text in the HTTP header field "Error", and show a localized version the HTTP body, as is today. Would that be a reasonable thing to do?
_Follow up discussion for https://josm.openstreetmap.de/ticket/17722_
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/2227
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190518/e17b000d/attachment.html>
More information about the rails-dev
mailing list