Hi!

In rails 4, how do you translate model and attributes names for models
with accepts_nested_attributes_for? Everything works fine except for the
error messages of the nested model.

Here's what I have so far (without my attempt to translate the nested
model:

activerecord:
  errors:
    <<: *errors
  models:
    player: Giocatore
    score: Punteggio
  attributes:
    player:
      some_field: Blah...
    score:
      points: Punti

When a player is created, I have a nested form that allows the creation
of an initial score, therefore the Player model has:
accepts_nested_attributes_for :scores

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/ac89964b7ade75cbbf7bb327fbd65bf3%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to