i18n: cleanup gender locales
The dot in the localized key messes up with i18n-tasks, and causes false positives for missing strings.
This commit is contained in:
parent
b1ac364cdf
commit
95d1cd6992
4 changed files with 10 additions and 10 deletions
|
@ -3,8 +3,8 @@
|
||||||
Sélectionnez une des valeurs
|
Sélectionnez une des valeurs
|
||||||
%label
|
%label
|
||||||
= form.radio_button :value, Individual::GENDER_FEMALE
|
= form.radio_button :value, Individual::GENDER_FEMALE
|
||||||
= t(Individual::GENDER_FEMALE, scope: 'activerecord.attributes.individual.gender_options')
|
= Individual.human_attribute_name('gender.female')
|
||||||
|
|
||||||
%label
|
%label
|
||||||
= form.radio_button :value, Individual::GENDER_MALE
|
= form.radio_button :value, Individual::GENDER_MALE
|
||||||
= t('activerecord.attributes.individual.gender_options')[Individual::GENDER_MALE.to_sym] # GENDER_MALE contains a point letter
|
= Individual.human_attribute_name('gender.male')
|
||||||
|
|
|
@ -14,10 +14,10 @@
|
||||||
.radios
|
.radios
|
||||||
%label
|
%label
|
||||||
= f.radio_button :gender, Individual::GENDER_FEMALE, required: true
|
= f.radio_button :gender, Individual::GENDER_FEMALE, required: true
|
||||||
= t(Individual::GENDER_FEMALE, scope: 'activerecord.attributes.individual.gender_options')
|
= Individual.human_attribute_name('gender.female')
|
||||||
%label
|
%label
|
||||||
= f.radio_button :gender, Individual::GENDER_MALE, required: true
|
= f.radio_button :gender, Individual::GENDER_MALE, required: true
|
||||||
= t('activerecord.attributes.individual.gender_options')[Individual::GENDER_MALE.to_sym] # GENDER_MALE contains a point letter
|
= Individual.human_attribute_name('gender.male')
|
||||||
|
|
||||||
.flex
|
.flex
|
||||||
.inline-champ
|
.inline-champ
|
||||||
|
|
|
@ -6,6 +6,6 @@ en:
|
||||||
nom: Last name
|
nom: Last name
|
||||||
prenom: First name
|
prenom: First name
|
||||||
birthdate: Date de naissance
|
birthdate: Date de naissance
|
||||||
gender_options:
|
individual/gender:
|
||||||
"Mme": "Ms"
|
female: Ms
|
||||||
"M.": "Mr"
|
male: Mr
|
||||||
|
|
|
@ -6,6 +6,6 @@ fr:
|
||||||
nom: Nom
|
nom: Nom
|
||||||
prenom: Prénom
|
prenom: Prénom
|
||||||
birthdate: Date de naissance
|
birthdate: Date de naissance
|
||||||
gender_options:
|
individual/gender:
|
||||||
"Mme": "Madame"
|
female: Madame
|
||||||
"M.": "Monsieur"
|
male: Monsieur
|
||||||
|
|
Loading…
Reference in a new issue