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

@ -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"