Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I change the message "Password doesn't match confirmation"

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.

like image 829
suely Avatar asked Jan 25 '12 19:01

suely


1 Answers

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

like image 129
Gazler Avatar answered Oct 18 '22 22:10

Gazler