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

@ -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 = "Контакты" },
] }
]

View file

@ -6,15 +6,15 @@ title = "Технические пособия для анархистов"
<br>
<br>
**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)**
<p><strong><a href="/series">See all guides
<p><strong><a href="/series">Смотреть все пособия
<span class="icon is-small">
<img src="/images/arrow-color.png">
</span>

View file

@ -1,5 +1,5 @@
+++
title = "Contact"
title = "Контакты"
sort_by = "date"
paginate_by = 5
+++

View file

@ -1,12 +1,12 @@
+++
title = "Glossary"
title = "Словарь"
sort_by = "date"
paginate_by = 5
+++
<br>
<div class="column is-8 is-offset-2">
> This glossary defines terms commonly used in AnarSec articles.
> В этом словаре даются определения терминов, которые часто используются в статьях на AnarSec
### Asynchronous Communication

View file

@ -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/"]
+++

View file

@ -1,5 +1,5 @@
+++
title = "Recommendations"
title = "Рекомендации"
sort_by = "date"
paginate_by = 5
+++

View file

@ -1,5 +1,5 @@
+++
title = "Search"
title = "Поиск"
sort_by = "date"
paginate_by = 5
+++
@ -10,6 +10,6 @@ paginate_by = 5
<form action="https://duckduckgo.com/" method="get">
<input type="hidden" name="sites" value="anarsec.guide">
<input type="search" name="q">
<input type="submit" value="Search">
<input type="submit" value="Поиск">
</form>
</div>

View file

@ -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*
*Скоро ожидается*
</div>

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"