diff --git a/src/glossary.typ b/src/glossary.typ index 9a34923..82b8924 100644 --- a/src/glossary.typ +++ b/src/glossary.typ @@ -7,7 +7,7 @@ // Edited: 08.07.2024 // License: MIT -#let glossary(entries) = { +#let glossary(entries, config) = { assert( type(entries) == dictionary, @@ -54,13 +54,13 @@ message: "The optional group of glossary entry `" + k + "` is not a string", ) } else { - let acronym_group = if (context text.lang) == "de" { - "Akronyme" + let acronym_group = if config.lang == "de" { + "Abkürzungsverzeichnis" } else { - "Acronyms" + "List of Acronyms" } - let glossary_group = if (context text.lang) == "de" { + let glossary_group = if config.lang == "de" { "Begriffe" } else { "Glossary" diff --git a/src/lib.typ b/src/lib.typ index d752a4e..0cde410 100644 --- a/src/lib.typ +++ b/src/lib.typ @@ -96,7 +96,7 @@ show-all: true, disable-back-references: true, enable-group-pagebreak: true, - glossary(config.thesis.glossary), + glossary(config.thesis.glossary, config), ) pagebreak(weak: true) diff --git a/template/main.typ b/template/main.typ index 9f4d232..77d6df8 100644 --- a/template/main.typ +++ b/template/main.typ @@ -3,8 +3,8 @@ #import "abstract.typ": abstract, summary #show: dhbw-template.with(( - lang: "en", - region: "en", + lang: "de", + region: "de", draft: false, author: ( name: "Sven Vogel",