mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-07-28 00:55:37 -04:00
ru strings
This commit is contained in:
parent
c5461319e5
commit
c77d0b0763
10 changed files with 67 additions and 48 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue