From b9a6ff11893aced126dd7ee0aa735184e2fcfda2 Mon Sep 17 00:00:00 2001 From: Yanick Minder Date: Tue, 30 Jul 2024 09:47:17 +0200 Subject: [PATCH] fix translations of cv search --- config/locales/de.yml | 18 ++++++++++++++++++ spec/features/cv_search_spec.rb | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/config/locales/de.yml b/config/locales/de.yml index 249268851..0fba4c7fc 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -37,6 +37,24 @@ de: picture: Bild shortname: Kurzname title: Abschluss + projects: + one: Projekt + other: Projekte + activities: + one: Station + other: Stationen + advanced_trainings: + one: Weiterbildung + other: Weiterbildungen + educations: + one: Ausbildung + other: Ausbildungen + roles: + one: Funktion + other: Funktionen + skills: + one: Skill + other: Skills project: description: Beschreibung role: Rolle und Aufgaben diff --git a/spec/features/cv_search_spec.rb b/spec/features/cv_search_spec.rb index 44bcc8002..6d3833444 100644 --- a/spec/features/cv_search_spec.rb +++ b/spec/features/cv_search_spec.rb @@ -66,7 +66,7 @@ expect(page).to have_content("Keine Resultate") page.check('search_skills') expect(page).not_to have_content("Keine Resultate") - check_search_results(Skill.model_name.human(count: 2)) + check_search_results(Skill.model_name.human.pluralize) link = person_people_skills_path(person, q: skill_title, rating: 1) expect(page).to have_link(href: link) end