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
// 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"

View File

@ -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)

View File

@ -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",