[openstreetmap/openstreetmap-website] Non-English error message? (#1702)
notifications at github.com
Sat Dec 16 10:25:23 UTC 2017
The message is coming from Rails' [translations](https://github.com/svenfuchs/rails-i18n/blob/fe07d45ff6db044c24c93570cc4236a63eb5814f/rails/locale/fr.yml#L136), which means that the locale is being set to French. This should be [set by the client request or user account settings](https://github.com/openstreetmap/openstreetmap-website/blob/30757696bd01b54cb95309fa61cf8b15ce066ff9/app/controllers/application_controller.rb#L300-L308). Is it possible that your user account's default language is set to French, or your browser / HTTP library / web proxy is adding an `Accept-Language` header for French?
The good news is that you can work around this by adding a `[?&]locale=en` GET parameter to force the locale to English, which should override wherever the setting to French is coming from.
Our servers all run with `LANGUAGE` set to `en_GB:en`, and Rails (in classic anglocentrism) defaults to English (i.e: `en_US`). Therefore, it seems unlikely to me that we're setting the language to French on our servers. If you think that this is a bug on our side, please provide a full request/response pair so that we can reproduce the error you are seeing, such as the output from `curl -v`. But please redact the `Authorisation` header to avoid leaking any of your credentials!
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev