Skip to content

Commit

Permalink
regenerate language files
Browse files Browse the repository at this point in the history
  • Loading branch information
kcinay055679 committed Jul 30, 2024
1 parent dd4f8eb commit 63d9759
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 162 deletions.
15 changes: 2 additions & 13 deletions app/helpers/i18n_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,17 @@ def association_owner_key(assoc, key)
k << key.to_s
end

def inheritable_translation_defaults(key, partial) # rubocop:disable Metrics/MethodLength,Metrics/AbcSize
def inheritable_translation_defaults(key, partial)
defaults = []
current = controller.class
while current < ActionController::Base
folder = current.controller_path
if folder.present?
folders = get_all_parent_folders(folder)
folders += get_all_parent_folders(folder.gsub('/', '.'), '.')
folders = folders.uniq.sort_by(&:length).reverse
folders.each do |f|
append_controller_translation_keys(defaults, f, partial, key)
end
append_controller_translation_keys(defaults, folder, partial, key)
end
current = current.superclass
end
defaults << :"global.#{key}"
defaults.uniq
end

def append_controller_translation_keys(defaults, folder, partial, key)
Expand All @@ -87,9 +81,4 @@ def append_controller_translation_keys(defaults, folder, partial, key)
defaults << :"#{folder}.global.#{key}"
end

def get_all_parent_folders(folder, splitter = '/')
folder.split(splitter).inject([]) do |acc, part|
acc.empty? ? [part] : acc + ["#{acc.last}#{splitter}#{part}"]
end.reverse
end
end
40 changes: 9 additions & 31 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,6 @@ de:
welcome: Willkommen bei
new:
personals: Personalien
people_skills:
edit_form:
rate: Bewerten
unrate: Nicht bewerten
index:
new_skills_to_rate: Neue Skills zur Bewertung
scroll_to_menu:
link:
add: Skill hinzufügen
profile:
add_function: Funktion hinzufügen
add_language: Sprache hinzufügen
Expand All @@ -212,22 +203,15 @@ 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/people_skills:
edit_form:
rate: Bewerten
unrate: Nicht bewerten
index:
new_skills_to_rate: Neue Skills zur Bewertung
scroll_to_menu:
link:
add: Skill hinzufügen
people_skills:
global:
link:
Expand All @@ -245,11 +229,5 @@ 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)'
66 changes: 22 additions & 44 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ en:
advanced_trainings:
one: Further training
other: Further training
birthdate: Birthdate
birthdate: Date of birth
competence_notes: Notes Member
department: Department
department: Organizational unit
dual_citizen: Dual citizens
educations:
one: Education
Expand All @@ -36,7 +36,7 @@ en:
languages:
one: Language
other: Languages
location: Place
location: Location
marital_status: Marital status
name: Name
nationality: Nationality
Expand All @@ -54,7 +54,7 @@ en:
skills:
one: Skill
other: Skills
title: Degree
title: Conclusion
project:
description: Description
role: Role and tasks
Expand All @@ -65,7 +65,7 @@ en:
category: Category
models:
activity: Station
advanced_training: Advanced training
advanced_training: Further training
company:
one: Company
other: Companies
Expand Down Expand Up @@ -97,8 +97,8 @@ en:
messages:
cannot_remove: must not be deleted.
invalid_date_range: must be before the end date.
max_size_10MB: should not be larger than 10MB.
max_size_error: should not be larger than 10MB.
max_size_10MB: must not be larger than 10MB.
max_size_error: must not be larger than 10MB.
profile-not-found: Profile could not be found.
valid_percent_range: must be between 0 and 200.
global:
Expand All @@ -112,10 +112,10 @@ en:
year: Year
devise:
admin: "(Admin)"
admin_panel: Admin Panel
admin_panel: Admin area
devise: Motto
mockdata: Mockdata
no_omniauth_providers: An error, no Omniauth providers are available, please contact the administrator.
no_omniauth_providers: An error has occurred, there are no Omniauth providers available, please contact the administrator.
sign_in: Log in
sign_in_with: 'Log in with %{provider} '
sign_out: Log out
Expand Down Expand Up @@ -145,10 +145,10 @@ en:
levels:
expert: Expert
junior: Junior
level: Experience
level: Level
professional: Professional
senior: Senior
trainee: Trainee
trainee: Apprentice
unweighted: Not rated
search:
found_in: Found in
Expand Down Expand Up @@ -186,48 +186,32 @@ en:
welcome: Welcome to
new:
personals: Personal details
people_skills:
edit_form:
rate: Rate
unrate: Do not rate
index:
new_skills_to_rate: New skills for evaluation
scroll_to_menu:
link:
add: Add skill
profile:
add_function: Add function
add_language: Add language
change_image: Change picture
core_competences: Core competencies
personals: Personal data
personals: Personal details
upload_image: Upload image
scroll_to_menu:
activities: Station
advanced-trainings: Advanced trainings
advanced-trainings: Further training
core-competences: Core competencies
educations: Trainings
personal-data: Personal data
projects: Projects
search:
new_profile: New profile
updated_at: Last edited
people-skills:
certificate: Certificate
core-competence: Core competence
filter:
all: All
rated: Rated
unrated: Not rated
interest: Interest
levels:
expert: Expert
junior: Junior
level: Experience
professional: Professional
senior: Senior
trainee: Trainee
unweighted: Not rated
people/people_skills:
edit_form:
rate: Rate
unrate: Do not rate
index:
new_skills_to_rate: New skills for evaluation
scroll_to_menu:
link:
add: Add skill
people_skills:
global:
link:
Expand All @@ -245,11 +229,5 @@ en:
radar: Radar
skill: Skill
subcategory: Subcategory
header:
all: All
category: Category
default: Default
new: New
search: Search skills
show:
title: 'Skill: %{title} (%{amount} Members)'
52 changes: 15 additions & 37 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fr:
other: Formations continues
birthdate: Date de naissance
competence_notes: Notes Member
department: Département
department: Unité organisationnelle
dual_citizen: Double nationalité
educations:
one: Formation
Expand All @@ -37,7 +37,7 @@ fr:
one: Langue
other: Langues
location: Lieu
marital_status: Statut marital
marital_status: État civil
name: Nom
nationality: Nationalité
person_roles:
Expand Down Expand Up @@ -112,7 +112,7 @@ fr:
year: Année
devise:
admin: "(Admin)"
admin_panel: Panneau d'administration
admin_panel: Zone d'administration
devise: Devise
mockdata: Mockdata
no_omniauth_providers: Une erreur s'est produite, aucun fournisseur Omniauth n'est disponible, veuillez contacter l'administrateur.
Expand Down Expand Up @@ -145,10 +145,10 @@ fr:
levels:
expert: Expert
junior: Junior
level: Expérience
level: Niveau
professional: Professionnel
senior: Senior
trainee: Stagiaire
trainee: Apprenti
unweighted: Non évalué
search:
found_in: Trouvé dans
Expand Down Expand Up @@ -182,19 +182,10 @@ fr:
link:
add: Nouveau profil
index:
choose_create_person: Choisis une personne ou saisis un nouveau profil
choose_create_person: Sélectionne une personne ou saisis un nouveau profil
welcome: Bienvenue chez
new:
personals: Données personnelles
people_skills:
edit_form:
rate: Évaluer
unrate: Ne pas évaluer
index:
new_skills_to_rate: Nouvelles compétences pour l'évaluation
scroll_to_menu:
link:
add: Ajouter une compétence
profile:
add_function: Ajouter une fonction
add_language: Ajouter une langue
Expand All @@ -212,22 +203,15 @@ fr:
search:
new_profile: Nouveau profil
updated_at: Dernièrement édité
people-skills:
certificate: Certificat
core-competence: Compétence clé
filter:
all: Tous les
rated: Évalué
unrated: Non évalué
interest: Intérêt
levels:
expert: Esperto
junior: Junior
level: Esperienza
professional: Professionnel
senior: Senior
trainee: Apprendista
unweighted: Non valutato
people/people_skills:
edit_form:
rate: Évaluer
unrate: Ne pas évaluer
index:
new_skills_to_rate: Nouvelles compétences pour l'évaluation
scroll_to_menu:
link:
add: Ajouter une compétence
people_skills:
global:
link:
Expand All @@ -245,11 +229,5 @@ fr:
radar: Radar
skill: Compétence
subcategory: Sous-catégorie
header:
all: Tous les
category: Catégorie
default: Défaut
new: Nouveau
search: Chercher des compétences
show:
title: 'Compétence : %{title} (%{amount} Members)'
Loading

0 comments on commit 63d9759

Please sign in to comment.