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
|
||||
%label
|
||||
= form.radio_button :value, Individual::GENDER_FEMALE
|
||||
= t(Individual::GENDER_FEMALE, scope: 'activerecord.attributes.individual.gender_options')
|
||||
= Individual.human_attribute_name('gender.female')
|
||||
|
||||
%label
|
||||
= 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
|
||||
%label
|
||||
= 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
|
||||
= 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
|
||||
.inline-champ
|
||||
|
|
|
@ -6,6 +6,6 @@ en:
|
|||
nom: Last name
|
||||
prenom: First name
|
||||
birthdate: Date de naissance
|
||||
gender_options:
|
||||
"Mme": "Ms"
|
||||
"M.": "Mr"
|
||||
individual/gender:
|
||||
female: Ms
|
||||
male: Mr
|
||||
|
|
|
@ -6,6 +6,6 @@ fr:
|
|||
nom: Nom
|
||||
prenom: Prénom
|
||||
birthdate: Date de naissance
|
||||
gender_options:
|
||||
"Mme": "Madame"
|
||||
"M.": "Monsieur"
|
||||
individual/gender:
|
||||
female: Madame
|
||||
male: Monsieur
|
||||
|
|
Loading…
Reference in a new issue