[openstreetmap/openstreetmap-website] Non-English error message? (#1702)

mmd notifications at github.com
Sun Apr 29 19:47:00 UTC 2018


> Mostly it doesn't matter because our own API errors are all in english I think and don't go through the translations but the errors that come from rails itself are getting translated.

I wonder if we just can't provide our own :too_long message in English instead? Will that work, i.e. not automatically getting translated by i18n anymore?

node_tag.rb:

```
  validates :node, :presence => true, :associated => true
  validates :k, :v, :allow_blank => true, :length => { :maximum => 255, 
                       :too_long => "is too long (maximum is %{count} characters)" }
  validates :k, :uniqueness => { :scope => :node_id }
```




-- 
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/1702#issuecomment-385276368
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180429/d44ad59d/attachment-0001.html>


More information about the rails-dev mailing list