mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-08 06:42:56 -04:00
ru strings
This commit is contained in:
parent
c5461319e5
commit
c77d0b0763
10 changed files with 67 additions and 48 deletions
|
@ -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