Skip to content

Commit

Permalink
update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jul 30, 2024
1 parent 8628d2a commit 33f9642
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app/views/application/_edit_interest_stars.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%label.form-label.text-gray= t "people_skills.interest"
%label.form-label.text-gray= ti "people_skills.interest"
.rate
= ff.radio_button :interest, 5, { checked: ff.object.interest == 5, id: "star5#{ff.object.skill.id}", "data-action": "change->people-skills#rateSkill" }
%label{for: "star5#{ff.object.skill.id}", title: "text", id: "star-label5#{ff.object.skill.id}", class: "star5"} 5 stars
Expand Down
2 changes: 1 addition & 1 deletion app/views/application/_show_interest_stars.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%label.form-label.text-gray= t "people_skills.interest"
%label.form-label.text-gray= ti "people_skills.interest"
.rate.rate-show
%input{type: "radio", value: 5, id: "star5#{person_skill.id}",
checked: person_skill.interest == 5, disabled: true}/
Expand Down
2 changes: 1 addition & 1 deletion app/views/people_skills/_search_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"data-skills-level-target": "switch", onchange: "this.form.submit()"
%div.w-25.d-flex.flex-column.align-items-center
%span.fs-6.text-gray
= t "people_skills.interest"
= ti "people_skills.interest"
.rate
- 5.downto(1) do |index|
= form.radio_button "interest[#{row_number}]", index, id: "row#{row_number}_star#{index}", checked: index == filter_params.interest_of_row(row_number), onClick: "this.form.submit()"
Expand Down
60 changes: 41 additions & 19 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ de:
level: Level
skill: Skill
person:
activities:
one: Station
other: Stationen
advanced_trainings:
one: Weiterbildung
other: Weiterbildungen
birthdate: Geburtsdatum
competence_notes: Notizen Member
department: Organisationseinheit
dual_citizen: Doppelbürger
educations:
one: Ausbildung
other: Ausbildungen
email: Email
languages:
one: Sprache
Expand All @@ -35,26 +44,17 @@ de:
one: Funktion
other: Funktionen
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:
roles:
one: Funktion
other: Funktionen
shortname: Kurzname
skills:
one: Skill
other: Skills
title: Abschluss
project:
description: Beschreibung
role: Rolle und Aufgaben
Expand Down Expand Up @@ -102,13 +102,6 @@ de:
profile-not-found: Profil konnte nicht gefunden werden.
valid_percent_range: muss zwischen 0 und 200 liegen.
global:
filter:
all: Alle
new: Neue
rated: Bewertet
unrated: Nicht bewertet
default: Default
search: '%{target} suchen'
date:
from: Von
month: Monat
Expand All @@ -127,6 +120,13 @@ de:
sign_in_with: Mit %{provider} anmelden
sign_out: Abmelden
'false': Nein
filter:
all: Alle
default: Default
new: Neue
rated: Bewertet
search: "%{target} suchen"
unrated: Nicht bewertet
link:
cancel: Abbrechen
export: Exportieren
Expand Down Expand Up @@ -212,6 +212,22 @@ de:
search:
new_profile: Neues Profil
updated_at: Zuletzt bearbeitet
people-skills:
certificate: Certificato
core-competence: Competenza di base
filter:
all: Tutti
rated: Valutazione
unrated: Non valutato
interest: Interesse per
levels:
expert: Esperto
junior: Junior
level: Esperienza
professional: Professionale
senior: Senior
trainee: Apprendista
unweighted: Non valutato
people_skills:
global:
link:
Expand All @@ -229,5 +245,11 @@ de:
radar: Radar
skill: Skill
subcategory: Subkategorie
header:
all: Tutti
category: Categoria
default: Predefinito
new: Nuovo
search: Capacità di ricerca
show:
title: 'Skill: %{title} (%{amount} Members)'
28 changes: 28 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ en:
level: Level
skill: Skill
person:
activities:
one: Station
other: Stations
advanced_trainings:
one: Further training
other: Further training
birthdate: Birthdate
competence_notes: Notes Member
department: Department
dual_citizen: Dual citizens
educations:
one: Education
other: Trainings
email: Email
languages:
one: Language
Expand All @@ -35,7 +44,16 @@ en:
one: Function
other: Functions
picture: Image
projects:
one: Project
other: Projects
roles:
one: Function
other: Functions
shortname: Short name
skills:
one: Skill
other: Skills
title: Degree
project:
description: Description
Expand Down Expand Up @@ -102,6 +120,13 @@ en:
sign_in_with: 'Log in with %{provider} '
sign_out: Log out
'false': 'No'
filter:
all: All
default: Default
new: New
rated: Rated
search: "%{target} search"
unrated: Not rated
link:
cancel: Cancel
export: Export
Expand All @@ -114,6 +139,9 @@ en:
skillset: Skillset
new: New
people_skills:
certificate: Certificate
core-competence: Core competence
interest: Interest
levels:
expert: Expert
junior: Junior
Expand Down
28 changes: 28 additions & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ fr:
level: Niveau
skill: Compétence
person:
activities:
one: Station
other: Stations
advanced_trainings:
one: Formation continue
other: Formations continues
birthdate: Date de naissance
competence_notes: Notes Member
department: Département
dual_citizen: Double nationalité
educations:
one: Formation
other: Formations
email: Email
languages:
one: Langue
Expand All @@ -35,7 +44,16 @@ fr:
one: Fonction
other: Fonctions
picture: Image
projects:
one: Projet
other: Projets
roles:
one: Fonction
other: Fonctions
shortname: Nom court
skills:
one: Compétence
other: Compétences
title: Conclusion
project:
description: Description
Expand Down Expand Up @@ -102,6 +120,13 @@ fr:
sign_in_with: 'S''inscrire avec %{provider} '
sign_out: Se désinscrire
'false': Non
filter:
all: Tous les
default: Défaut
new: Nouveau
rated: Évalué
search: "%{target} cherchent"
unrated: Non évalué
link:
cancel: Annuler
export: Exporter
Expand All @@ -114,6 +139,9 @@ fr:
skillset: Kit de compétences
new: Nouveau
people_skills:
certificate: Certificat
core-competence: Compétence clé
interest: Intérêt
levels:
expert: Expert
junior: Junior
Expand Down
28 changes: 28 additions & 0 deletions config/locales/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,19 @@ it:
level: Livello
skill: Abilità
person:
activities:
one: Stazione
other: Stazioni
advanced_trainings:
one: Formazione continua
other: Formazione continua
birthdate: Data di nascita
competence_notes: Note Membro
department: Unità organizzativa
dual_citizen: Doppi cittadini
educations:
one: Istruzione
other: Programmi di formazione
email: E-mail
languages:
one: Lingua
Expand All @@ -35,7 +44,16 @@ it:
one: Funzione
other: Funzioni
picture: Immagine
projects:
one: Progetto
other: Progetti
roles:
one: Funzione
other: Funzioni
shortname: Nome breve
skills:
one: Abilità
other: Competenze
title: Conclusione
project:
description: Descrizione del
Expand Down Expand Up @@ -102,6 +120,13 @@ it:
sign_in_with: "%{provider} Accedere con"
sign_out: Disconnettersi
'false': 'No'
filter:
all: Tutti
default: Predefinito
new: Nuovo
rated: Valutazione
search: "%{target} ricerca"
unrated: Non valutato
link:
cancel: Annullamento
export: Esportazione
Expand All @@ -114,6 +139,9 @@ it:
skillset: Competenze
new: Nuovo
people_skills:
certificate: Certificato
core-competence: Competenza di base
interest: Interesse per
levels:
expert: Esperto
junior: Junior
Expand Down
2 changes: 1 addition & 1 deletion spec/domain/people_search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
search_term = 'duckduck'
people = PeopleSearch.new(search_term).entries
person = people[0]
expect(person[:found_in]).to eq('Projects')
expect(person[:found_in]).to eq('Projekte')
end

it 'finds in which person attribute the search term has been found' do
Expand Down
2 changes: 1 addition & 1 deletion spec/features/edit_people_skills_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def not_rated_default_skills(person)
expect(page).to have_content(person_skill.skill.title)
end

expect(page).to have_content('Trainee', count: not_rated_default_skills.count)
expect(page).to have_content('Azubi', count: not_rated_default_skills.count)

expect(not_rated_default_skills.pluck(:interest).all?(&:zero?)).to be(true)

Expand Down

0 comments on commit 33f9642

Please sign in to comment.