i know that in config/en.yml I can change the message "this email is already been taken" changing the en.yml file :
en: hello: "Hello world" activerecord: errors: messages: taken: "este mail ya sido utilizado"
but how can I change the message "Password doesn't match confirmation" I tried with password_confirmation and other combinations but don't works! thanks in advance.
Those error messages belong to activerecord.
Just create a new language file with that structure and replace what you need.
activerecord:
errors:
messages:
confirmation: "does not match"
You shouldn't change en.yml as that is for english language strings. You should make a new one for the language you require. You can read about i18n at http://guides.rubyonrails.org/i18n.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With