Skip to content
Snippets Groups Projects
Commit 35167d2e authored by Julian's avatar Julian
Browse files

Translate PersonalNote table correctly

parent a70ebfb5
No related branches found
No related tags found
1 merge request!232Resolve "Fix translations in person overview"
Pipeline #32099 passed with warnings
......@@ -105,10 +105,10 @@ class PersonalNoteTable(tables.Table):
order_by=A("order_teachers"),
)
subject = tables.Column(verbose_name=_("Subject"), accessor=A("subject"))
absent = tables.Column()
late = tables.Column()
absent = tables.Column(verbose_name=_("Absent"))
late = tables.Column(verbose_name=_("Tardiness"))
excused = tables.Column(verbose_name=_("Excuse"))
extra_marks = tables.Column(verbose_name="Extra marks", accessor=A("extra_marks__all"))
extra_marks = tables.Column(verbose_name=_("Extra marks"), accessor=A("extra_marks__all"))
def render_groups(self, value, record):
if isinstance(record.register_object, LessonPeriod):
......@@ -126,7 +126,7 @@ class PersonalNoteTable(tables.Table):
return (
render_to_string(
"components/materialize-chips.html",
dict(content="Absent", classes="red white-text"),
dict(content=_("Absent"), classes="red white-text"),
)
if value
else ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment