ru strings

This commit is contained in:
anarsec 2024-11-30 16:22:59 -05:00
parent c5461319e5
commit c77d0b0763
No known key found for this signature in database
10 changed files with 67 additions and 48 deletions

View file

@ -55,6 +55,9 @@
#if lang == "el" [
#text(18pt)[Σειρά: #category]
]
#if lang == "ru" [
#text(18pt)[Серии: #category]
]
]
]
@ -82,6 +85,13 @@
#text()[Το σύμβολο στιλέτο #super[] σε μια λέξη σημαίνει ότι υπάρχει μια καταχώριση στο γλωσσάρι για αυτήν. Ai ferri corti.]
]
#if lang == "ru" [
#set align(center + bottom)
#text()[Эта версия зина была последний раз обновлена #lastediteddate. Зайдите на сайт anarsec.guide/ru и посмотрите, нет ли более поздних редакций.]
#text()[Символ #super[] означает, что этот термин есть в словаре. Ai ferri corti.]
]
]
// set headings
@ -129,6 +139,9 @@
else if lang == "el" {
rec = "Παράρτημα: Προτάσεις"
}
else if lang == "ru" {
rec = "Приложение: Рекомендации"
}
let glossaryFootnote = state("x", [#footnote[anarsec.guide/glossary]<glossary-footnote>])
show link: it => {
it.body

View file

@ -147,7 +147,7 @@ class Converter:
if self.post_lang == 'pt':
markdown_content += f"\n\n# Appendix: Recommendations\n\n{recommendations}\n\n"
if self.post_lang == 'ru':
markdown_content += f"\n\n# Appendix: Recommendations\n\n{recommendations}\n\n"
markdown_content += f"\n\n# Приложение: Рекомендации\n\n{recommendations}\n\n"
# Make all images paths relative in the Markdown content
for extension in ["jpg", "png", "webp", "jpeg", "gif"]:
@ -172,7 +172,7 @@ class Converter:
if self.post_lang == 'pt':
markdown_content += "\n\n# Appendix: Glossary\n\n"
if self.post_lang == 'ru':
markdown_content += "\n\n# Appendix: Glossary\n\n"
markdown_content += "\n\n# Приложение: Словарь\n\n"
for entry, entry_content in glossary.items():
if entry in glossary_entries:
markdown_content += f"""
@ -210,6 +210,11 @@ class Converter:
category = 'Άμυνα'
if category == 'Offensive':
category = 'Επίθεση'
if self.post_lang == 'ru':
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"