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:
Pierre de La Morinerie 2021-09-09 13:15:52 -05:00
parent b1ac364cdf
commit 95d1cd6992
4 changed files with 10 additions and 10 deletions

View file

@ -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')

View file

@ -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

View file

@ -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

View file

@ -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