[Fix #329] Properly translate the “password is too short” error
This commit is contained in:
parent
3c220fe181
commit
227006d87b
2 changed files with 8 additions and 3 deletions
|
@ -113,6 +113,11 @@ fr:
|
|||
format:
|
||||
delimiter: ''
|
||||
activerecord:
|
||||
attributes:
|
||||
user:
|
||||
password: 'Le mot de passe'
|
||||
gestionnaire:
|
||||
password: 'Le mot de passe'
|
||||
errors:
|
||||
messages:
|
||||
blank: "doit être rempli"
|
||||
|
@ -138,7 +143,7 @@ fr:
|
|||
invalid: invalide
|
||||
taken: déjà utilisé
|
||||
password:
|
||||
too_short: ': Le mot de passe est trop court'
|
||||
too_short: 'est trop court'
|
||||
password_confirmation:
|
||||
confirmation: ': Les deux mots de passe ne correspondent pas'
|
||||
invite:
|
||||
|
@ -151,7 +156,7 @@ fr:
|
|||
invalid: invalide
|
||||
taken: déjà utilisé
|
||||
password:
|
||||
too_short: ': Le mot de passe est trop court'
|
||||
too_short: 'est trop court'
|
||||
|
||||
errors:
|
||||
messages:
|
||||
|
|
|
@ -276,7 +276,7 @@ describe NewGestionnaire::AvisController, type: :controller do
|
|||
|
||||
it { expect(created_gestionnaire).to be_nil }
|
||||
it { is_expected.to redirect_to sign_up_gestionnaire_avis_path(avis_id, invited_email) }
|
||||
it { expect(flash.alert).to eq(['Password doit être rempli']) }
|
||||
it { expect(flash.alert).to eq(['Le mot de passe doit être rempli']) }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue