Replace manual activerecord translations with helpers

This commit is contained in:
Sebastian Serth
2024-04-14 14:00:51 +02:00
committed by Sebastian Serth
parent e551c8a699
commit f8330b39fb
72 changed files with 265 additions and 264 deletions

View File

@ -7,11 +7,11 @@ de:
allow_file_creation: Dateierstellung erlauben
average_score_percentage: Durchschnittliche Bewertung in Prozent
description: Beschreibung
difficulty: Schwierigkeitsgrad
distinct_final_submissions: Endgültige Abgaben
embedding_parameters: Parameter für LTI-Einbettung
execution_environment: Ausführungsumgebung
execution_environment_id: Ausführungsumgebung
expected_difficulty: Schwierigkeitsgrad
files: Dateien
finishing_rate: Abschlussquote
hide_file_tree: Dateibaum verstecken

View File

@ -2,16 +2,16 @@
de:
activerecord:
attributes:
exercise_collections:
exercise_collection:
exercises: Aufgaben
id: ID
name: Name
solutions: Gesamtanzahl Lösungsversuche
submissions: Gesamtanzahl Submissions
submissions: Gesamtanzahl Abgaben
updated_at: Letzte Änderung
use_anomaly_detection: Abweichungen in der Arbeitszeit erkennen
user: Verantwortlicher
users_and_programming_groups: Teilnehmer und Programmiergruppen
user: Verantwortliche:r
users_and_programming_groups: Teilnehmende und Programmiergruppen
models:
exercise_collection:
one: Aufgabesammlung

View File

@ -7,9 +7,12 @@ de:
together: muss zusammen mit %{attribute} definiert werden
models:
exercise:
at_most_one_main_file: dürfen höchstens eine Hauptdatei enthalten
late_submission_deadline_not_alone: darf nicht ohne eine reguläre Abgabefrist verwendet werden
late_submission_deadline_not_before_submission_deadline: darf nicht vor der reguläre Abgabefrist liegen
attributes:
files:
at_most_one_main_file: dürfen höchstens eine Hauptdatei enthalten
late_submission_deadline:
not_alone: darf nicht ohne eine reguläre Abgabefrist verwendet werden
not_before_submission_deadline: darf nicht vor der reguläre Abgabefrist liegen
internal_user:
attributes:
password:

View File

@ -2,7 +2,7 @@
de:
activerecord:
attributes:
request_for_comments:
request_for_comment:
close: Fenster schließen
comments: Kommentare
execution_environment: Sprache

View File

@ -5,6 +5,7 @@ de:
tip:
description: Beschreibung
example: Beispiel
file_type: Dateityp
title: Titel
models:
tip:

View File

@ -7,11 +7,11 @@ en:
allow_file_creation: Allow file creation
average_score_percentage: Average Score Percentage
description: Description
difficulty: Difficulty
distinct_final_submissions: Distinct Final Submissions
embedding_parameters: LTI Embedding Parameters
execution_environment: Execution Environment
execution_environment_id: Execution Environment
expected_difficulty: Difficulty
files: Files
finishing_rate: Finishing Rate
hide_file_tree: Hide File Tree

View File

@ -2,7 +2,7 @@
en:
activerecord:
attributes:
exercise_collections:
exercise_collection:
exercises: Exercises
id: ID
name: Name

View File

@ -4,12 +4,15 @@ en:
errors:
messages:
at_least: or %{attribute} must be defined
together: has to be set along with %{attribute}
together: must be defined along with %{attribute}
models:
exercise:
at_most_one_main_file: must include at most one main file
late_submission_deadline_not_alone: must not be used without a regular submission deadline
late_submission_deadline_not_before_submission_deadline: must not be before the submission deadline passed
attributes:
files:
at_most_one_main_file: must include at most one main file
late_submission_deadline:
not_alone: must not be used without a regular submission deadline
not_before_submission_deadline: must not be before the submission deadline passed
internal_user:
attributes:
password:

View File

@ -2,7 +2,7 @@
en:
activerecord:
attributes:
request_for_comments:
request_for_comment:
close: Close window
comments: Comments
execution_environment: Language

View File

@ -5,6 +5,7 @@ en:
tip:
description: Description
example: Example
file_type: File Type
title: Title
models:
tip: