diff --git a/config.toml b/config.toml index e5c84a0..da15421 100644 --- a/config.toml +++ b/config.toml @@ -145,29 +145,29 @@ title = "AnarSec" [languages.ru.translations] language_name = "ru" -language_selection = "Language" -search = "Search" -published = "Published on" -edited = "Last edited on" -letter = "Letter booklet" -a4 = "A4 booklet" -read = "Read More" -contents = "Contents" -categories = "Categories" -defensive = "Defensive" -offensive = "Offensive" -tags = "Tags" -beginner = "beginner" -e2ee = "e2ee" -intermediate = "intermediate" -intro = "intro" -linux = "linux" -metadata = "metadata" -mobile = "mobile" -opsec = "opsec" -qubes = "qubes" -tails = "tails" -windows = "windows" +language_selection = "Язык" +search = "Поиск" +published = "Опубликовано" +edited = "Последняя редакция" +letter = "Буклет в формате письма" +a4 = "Буклет в формате А4" +read = "Читать еще" +contents = "Оглавление" +categories = "Категории" +defensive = "Защита" +offensive = "Нападение" +tags = "Тэги" +beginner = "для начинающих" +e2ee = "Шифрование" +intermediate = "Средний уровень" +intro = "Введение" +linux = "Linux" +metadata = "Метаданные" +mobile = "Мобильные устройства" +opsec = "Операционная безопасность" +qubes = "Qubes" +tails = "Tails" +windows = "Windows" [extra] navbar_items = [ @@ -200,11 +200,11 @@ navbar_items = [ { url = "$BASE_URL/pt/contact/", name = "Contact" }, ] }, { code = "ru", nav_items = [ - { url = "$BASE_URL/ru/posts/", name = "Guides" }, - { url = "$BASE_URL/ru/series/", name = "Series" }, - { url = "$BASE_URL/ru/recommendations/", name = "Recommendations" }, - { url = "$BASE_URL/ru/glossary/", name = "Glossary" }, - { url = "$BASE_URL/ru/contact/", name = "Contact" }, + { url = "$BASE_URL/ru/posts/", name = "Пособия" }, + { url = "$BASE_URL/ru/series/", name = "Серии" }, + { url = "$BASE_URL/ru/recommendations/", name = "Рекомендации" }, + { url = "$BASE_URL/ru/glossary/", name = "Словарь" }, + { url = "$BASE_URL/ru/contact/", name = "Контакты" }, ] } ] diff --git a/content/_index.ru.md b/content/_index.ru.md index 9f8dfc6..a6d4233 100644 --- a/content/_index.ru.md +++ b/content/_index.ru.md @@ -6,15 +6,15 @@ title = "Технические пособия для анархистов"

-**You want a quick overview of our** **[advice for all anarchists?](/ru/recommendations)** +**Хотите краткий обзор наших** **[советов для всех анархистов?](/ru/recommendations)** -**You need to** **[do action research or write an anonymous communique?](/posts/tails)** +**Вам нужна** **[информация для проведения акции или вы хотите распространить анонимное заявление?](/posts/tails)** -**You need** **[increased security against malware?](/posts/qubes)** +**Вам нужно** **[повысить защиту против вредоносных программ?](/posts/qubes)** -**You want to** **[protect your digital devices from covert house visits by law enforcement?](/posts/tamper)** +**Вы хотите** **[защитить свои цифровые устройства на случай внезапного визита полиции?](/posts/tamper)** -

See all guides +

Смотреть все пособия diff --git a/content/contact/_index.ru.md b/content/contact/_index.ru.md index cceb4eb..c4b09e9 100644 --- a/content/contact/_index.ru.md +++ b/content/contact/_index.ru.md @@ -1,5 +1,5 @@ +++ -title = "Contact" +title = "Контакты" sort_by = "date" paginate_by = 5 +++ diff --git a/content/glossary/_index.ru.md b/content/glossary/_index.ru.md index a6ab73e..035c1c1 100644 --- a/content/glossary/_index.ru.md +++ b/content/glossary/_index.ru.md @@ -1,12 +1,12 @@ +++ -title = "Glossary" +title = "Словарь" sort_by = "date" paginate_by = 5 +++

-> This glossary defines terms commonly used in AnarSec articles. +> В этом словаре даются определения терминов, которые часто используются в статьях на AnarSec ### Asynchronous Communication diff --git a/content/posts/_index.ru.md b/content/posts/_index.ru.md index cb8f251..9f86498 100644 --- a/content/posts/_index.ru.md +++ b/content/posts/_index.ru.md @@ -1,6 +1,7 @@ +++ -title = "Guides" +title = "Пособия" sort_by = "date" paginate_by = 10 +description = "Остальные пособия доступны на английском" aliases = ["/ru/posts/e2ee/","/ru/posts/grapheneos/","/ru/posts/linux/","/ru/posts/metadata/","/ru/posts/qubes/","/ru/posts/tails/","/ru/posts/tails-best/","/ru/posts/tamper/"] +++ diff --git a/content/recommendations/_index.ru.md b/content/recommendations/_index.ru.md index 54af7ab..6883f91 100644 --- a/content/recommendations/_index.ru.md +++ b/content/recommendations/_index.ru.md @@ -1,5 +1,5 @@ +++ -title = "Recommendations" +title = "Рекомендации" sort_by = "date" paginate_by = 5 +++ diff --git a/content/search/_index.ru.md b/content/search/_index.ru.md index fb1bc1b..29b07d8 100644 --- a/content/search/_index.ru.md +++ b/content/search/_index.ru.md @@ -1,5 +1,5 @@ +++ -title = "Search" +title = "Поиск" sort_by = "date" paginate_by = 5 +++ @@ -10,6 +10,6 @@ paginate_by = 5
- +
diff --git a/content/series/_index.ru.md b/content/series/_index.ru.md index 2ca557c..242b1e3 100644 --- a/content/series/_index.ru.md +++ b/content/series/_index.ru.md @@ -1,5 +1,5 @@ +++ -title = "Series" +title = "Серии" description = "" sort_by = "date" paginate_by = 5 @@ -9,7 +9,7 @@ paginate_by = 5 AnarSec это ресурс который призван помочь анархистам ориентироваться во враждебном мире технологий — подборка пособий по обеспечению цифровой безопасности и анонимности, а также по проведению хакерских атак. Все пособия доступны в виде буклетов, чтобы их можно было распечатать и будут постоянно обновляться. -## Defensive +## Защита ### Tails * [Tails for Anarchists](/posts/tails/) @@ -18,18 +18,18 @@ AnarSec это ресурс который призван помочь анар ### Qubes OS * [Qubes OS for Anarchists](/posts/qubes/) -### Phones +### Телефоны * [**Избавься от шпиона в твоем кармане**](/ru/posts/nophones/) * [GrapheneOS for Anarchists](/posts/grapheneos/) -### General +### Общие вопросы * [Linux Essentials](/posts/linux/) * [Remove Identifying Metadata From Files](/posts/metadata/) * [Encrypted Messaging for Anarchists](/posts/e2ee/) * [Make Your Electronics Tamper-Evident](/posts/tamper/) -## Offensive +## Нападение -*Coming soon* +*Скоро ожидается* diff --git a/layout/anarsec_article.typ b/layout/anarsec_article.typ index f22091d..c2ce6e4 100644 --- a/layout/anarsec_article.typ +++ b/layout/anarsec_article.typ @@ -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]]) show link: it => { it.body diff --git a/layout/python/anarsec_article_to_pdf.py b/layout/python/anarsec_article_to_pdf.py index 462e48e..9b79272 100644 --- a/layout/python/anarsec_article_to_pdf.py +++ b/layout/python/anarsec_article_to_pdf.py @@ -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"