fix wrong glossary and acronym group language (#50)
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 27s Details

This commit is contained in:
Sven Vogel 2024-08-26 15:08:03 +02:00
parent dd6a9ccce0
commit 410c753339
3 changed files with 8 additions and 8 deletions

View File

@ -7,7 +7,7 @@
// Edited: 08.07.2024 // Edited: 08.07.2024
// License: MIT // License: MIT
#let glossary(entries) = { #let glossary(entries, config) = {
assert( assert(
type(entries) == dictionary, type(entries) == dictionary,
@ -54,13 +54,13 @@
message: "The optional group of glossary entry `" + k + "` is not a string", message: "The optional group of glossary entry `" + k + "` is not a string",
) )
} else { } else {
let acronym_group = if (context text.lang) == "de" { let acronym_group = if config.lang == "de" {
"Akronyme" "Abkürzungsverzeichnis"
} else { } else {
"Acronyms" "List of Acronyms"
} }
let glossary_group = if (context text.lang) == "de" { let glossary_group = if config.lang == "de" {
"Begriffe" "Begriffe"
} else { } else {
"Glossary" "Glossary"

View File

@ -96,7 +96,7 @@
show-all: true, show-all: true,
disable-back-references: true, disable-back-references: true,
enable-group-pagebreak: true, enable-group-pagebreak: true,
glossary(config.thesis.glossary), glossary(config.thesis.glossary, config),
) )
pagebreak(weak: true) pagebreak(weak: true)

View File

@ -3,8 +3,8 @@
#import "abstract.typ": abstract, summary #import "abstract.typ": abstract, summary
#show: dhbw-template.with(( #show: dhbw-template.with((
lang: "en", lang: "de",
region: "en", region: "de",
draft: false, draft: false,
author: ( author: (
name: "Sven Vogel", name: "Sven Vogel",