From dd9559de8bea3dee911c287311955bd84e374580 Mon Sep 17 00:00:00 2001 From: D4rkHeart Date: Tue, 5 Nov 2024 17:08:50 +0100 Subject: [PATCH] [WIP] Traductions need to be rework at the end. --- config/locales/en.yml | 12 +++++++++++- config/locales/fr.yml | 14 ++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index f201010..5427c06 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -247,6 +247,14 @@ en: function: main function errors: models: + education: + attributes: + school: + blank: "should be provided" + year_begin: + blank: "can't be blank" + year_end: + blank: "can't be blank" award: attributes: issuer: @@ -261,7 +269,7 @@ en: blank: "should be provided" year_end: blank: "should be present" - year_start: + year_begin: blank: "should be present" name: attributes: @@ -289,6 +297,8 @@ en: tag: blank: "can't be blank" inclusion: "is not included in the list" + messages: + record_invalid : "Sciper must unique" activemodel: errors: models: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 518fc97..4a9e7b2 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -184,7 +184,17 @@ fr: work_experience: "Parcours professionnel" activerecord: errors: + messages: + record_invalid : "Sciper must unique" models: + education: + attributes: + school: + blank: "ne peut pas être vide" + year_begin: + blank: "ne peut pas être vide" + year_end: + blank: "ne peut pas être vide" experience: attributes: base: @@ -222,8 +232,8 @@ fr: blank: "ne peut pas être vide" inclusion: "n'est pas inclus dans la liste" errors: - messages: - not_in_official: "N'est pas inclus dans le nom officiel" + messages: + not_in_official: "Doit être composé de(s) prénom(s) inclus dans le prénom officiel." activemodel: errors: