added translation for title page

This commit is contained in:
Sven Vogel 2024-03-28 21:27:28 +01:00
parent 50639bce0a
commit 3cfb0cf9c8
1 changed files with 80 additions and 25 deletions

View File

@ -27,25 +27,46 @@
#prelude.largetext(prelude.info.typ)
// number of semester
Praxisphase des #prelude.info.semester Studienjahrs
#if prelude.format.language == "de" [
Praxisphase des #prelude.info.semester Studienjahrs
] else if prelude.format.language == "en" [
Practical phase of the #prelude.info.semester academic year
] else [
#panic("no translation for language: ", prelude.format.language)
]
// fakulty
#pad(top: 0.5cm)[
#if prelude.format.language == "de" [
an der Fakultät für #prelude.info.fakultät
#linebreak()
im Studiengang #prelude.info.studiengang
] else if prelude.format.language == "en" [
at the Faculty of #prelude.info.fakultät
#linebreak()
in the degree program #prelude.info.studiengang
] else [
#panic("no translation for language: ", prelude.format.language)
]
]
// university
#pad(top: 0.5cm)[
#if prelude.format.language == "de" [
an der
] else if prelude.format.language == "en" [
at
] else [
#panic("no translation for language: ", prelude.format.language)
]
#linebreak()
#prelude.info.universität
]
#set align(bottom + left)
#table(
#if prelude.format.language == "de" [
#table(
columns: 2,
align: left,
stroke: none,
@ -67,15 +88,49 @@ Praxisphase des #prelude.info.semester Studienjahrs
"Abgabedatum:",
prelude.info.abgabe
)
)
] else if prelude.format.language == "en" [
#table(
columns: 2,
align: left,
stroke: none,
"Author:",
prelude.info.autor,
"Editing period:",
prelude.info.bearbeitungszeitraum,
"Matriculation number, course:",
str(prelude.info.matrikelnummer) + ", " + prelude.info.studiengang,
"Training company:",
prelude.info.betrieb,
"Company supervisor:",
prelude.info.betreuer,
"Submission date:",
prelude.info.abgabe
)
] else [
#panic("no translation for language: ", prelude.format.language)
]
#pad(
top: 1cm,
grid(
// set width of columns
// we need two, so make both half the page width
columns: (50%, 50%),
align(left, "Unterschrift des betrieblichen Betreuers"),
columns: (60%, 40%),
align(left, if prelude.format.language == "de" [
Unterschrift des betrieblichen Betreuers
] else if prelude.format.language == "en" [
Signature of the company supervisor
] else [
#panic("no translation for language: ", prelude.format.language)
]
),
align(right, {line(length: 6cm)})
)
)