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

@@ -5,7 +5,7 @@
table(border=1)
thead
tr
td = t('activerecord.attributes.exercise.title', locale: :de)
td = Exercise.human_attribute_name('title', locale: :de)
td = t('exercises.statistics.average_worktime', locale: :de)
td = t('shared.actions', locale: :de)
tbody
@@ -24,7 +24,7 @@ table(border=1)
table(border=1)
thead
tr
td = t('activerecord.attributes.exercise.title', locale: :en)
td = Exercise.human_attribute_name('title', locale: :en)
td = t('exercises.statistics.average_worktime', locale: :en)
td = t('shared.actions', locale: :en)
tbody