el strings

This commit is contained in:
anarsec 2024-11-25 12:30:23 -05:00
parent b186d25403
commit 1c7c1c6649
No known key found for this signature in database
12 changed files with 68 additions and 49 deletions

View file

@ -52,6 +52,9 @@
#if lang == "fr" [
#text(18pt)[Série: #category]
]
#if lang == "el" [
#text(18pt)[Σειρά: #category]
]
]
]
@ -72,6 +75,13 @@
#text()[Le symbole de dague #super[] près d'un mot indique qu'une entrée existe dans le glossaire pour ce mot. Ai ferri corti.]
]
#if lang == "el" [
#set align(center + bottom)
#text()[Αυτή η έκδοση της μπροσούρας τροποποιήθηκε τελευταία φορά στις #lastediteddate. Επισκέψου το anarsec.guide/el για να δεις εάν έχει ενημερωθεί από τότε.]
#text()[Το σύμβολο στιλέτο #super[] σε μια λέξη σημαίνει ότι υπάρχει μια καταχώριση στο γλωσσάρι για αυτήν. Ai ferri corti.]
]
]
// set headings
@ -116,6 +126,9 @@
else if lang == "fr" {
rec = "Annexe: Recommendations"
}
else if lang == "el" {
rec = "Παράρτημα: Προτάσεις"
}
let glossaryFootnote = state("x", [#footnote[anarsec.guide/glossary]<glossary-footnote>])
show link: it => {
it.body

View file

@ -143,7 +143,7 @@ class Converter:
if self.post_lang == 'fr':
markdown_content += f"\n\n# Annexe: Recommendations\n\n{recommendations}\n\n"
if self.post_lang == 'el':
markdown_content += f"\n\n# Appendix: Recommendations\n\n{recommendations}\n\n"
markdown_content += f"\n\n# Παράρτημα: Προτάσεις\n\n{recommendations}\n\n"
if self.post_lang == 'pt':
markdown_content += f"\n\n# Appendix: Recommendations\n\n{recommendations}\n\n"
if self.post_lang == 'ru':
@ -168,7 +168,7 @@ class Converter:
if self.post_lang == 'fr':
markdown_content += "\n\n# Annexe: Glossaire\n\n"
if self.post_lang == 'el':
markdown_content += "\n\n# Appendix: Glossary\n\n"
markdown_content += "\n\n# Παράρτημα: Γλωσσάρι\n\n"
if self.post_lang == 'pt':
markdown_content += "\n\n# Appendix: Glossary\n\n"
if self.post_lang == 'ru':
@ -205,6 +205,11 @@ class Converter:
category = 'Défensif'
if category == 'Offensive':
category = 'Offensif'
if self.post_lang == 'el':
if category == 'Defensive':
category = 'Άμυνα'
if category == 'Offensive':
category = 'Επίθεση'
# Build the full typst file
full_typst_path = pathlib.Path(workingDirectory) / f"{self.post_id}-full.typ"