aboutsummaryrefslogtreecommitdiff
path: root/book/book.typ
diff options
context:
space:
mode:
Diffstat (limited to 'book/book.typ')
-rw-r--r--book/book.typ4
1 files changed, 2 insertions, 2 deletions
diff --git a/book/book.typ b/book/book.typ
index 39f3cc46..14e617a0 100644
--- a/book/book.typ
+++ b/book/book.typ
@@ -21,7 +21,7 @@
}
#let tr(s) = translations.at(s, default: text(fill: red)[TRANSLATION: #s])
-#let msgstr(o) = if "translated" in o { tr(o.translated) } else { o.text }
+#let msgstr(o) = if "translation" in o { tr(o.translation.id) } else { o.text }
#let element(elem) = if elem.t == "document" [
#for e in elem.es [
@@ -50,7 +50,7 @@
] else if elem.t == "par" [
#par(..elem.es.map(element))
] else if elem.t == "table" [
- #table(columns: elem.cols, ..elem.es.flatten().map(element))
+ #table(columns: elem.es.at(0).len(), ..elem.es.flatten().map(element))
] else [
#elem
]