Skip to content

Commit

Permalink
locale ru
Browse files Browse the repository at this point in the history
  • Loading branch information
andyoknen committed Nov 25, 2024
1 parent 99b26f6 commit 110eaf3
Show file tree
Hide file tree
Showing 7 changed files with 411 additions and 55 deletions.
32 changes: 16 additions & 16 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,30 +78,30 @@ export default defineUserConfig({
// navbar
navbar: navbarRu,
selectLanguageName: 'Русский',
selectLanguageText: '选择语言',
selectLanguageAriaLabel: '选择语言',
selectLanguageText: 'Выбрать язык',
selectLanguageAriaLabel: 'Выбрать язык',
// sidebar
sidebar: sidebarRu,
// page meta
editLinkText: '在 GitHub 上编辑此页',
lastUpdatedText: '上次更新',
contributorsText: '贡献者',
editLinkText: 'Редактировать эту страницу на GitHub',
lastUpdatedText: 'Последнее обновление',
contributorsText: 'Участники',
// custom containers
tip: '提示',
warning: '注意',
danger: '警告',
tip: 'Совет',
warning: 'Предупреждение',
danger: 'Опасность',
// 404 page
notFound: [
'这里什么都没有',
'我们怎么到这来了?',
'这是一个 404 页面',
'看起来我们进入了错误的链接',
'Здесь ничего нет',
'Как мы сюда попали?',
'Это страница 404',
'Похоже, мы перешли по неправильной ссылке',
],
backToHome: '返回首页',
backToHome: 'Вернуться на главную',
// a11y
openInNewWindow: '在新窗口打开',
toggleColorMode: '切换颜色模式',
toggleSidebar: '切换侧边栏',
openInNewWindow: 'Открыть в новом окне',
toggleColorMode: 'Переключить цветовой режим',
toggleSidebar: 'Переключить боковую панель',
},
},

Expand Down
34 changes: 17 additions & 17 deletions docs/.vuepress/configs/navbar/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export const navbarEn: NavbarOptions = [
{
text: 'Get Started',
children: [
'/guide/getting-started.md',
'/guide/easy-node/',
'/guide/full-node/',
'guide/getting-started.md',
'guide/easy-node/',
'guide/full-node/',
],
},
{
text: 'Monetization',
children: [
'/guide/monetization/',
'guide/monetization/',
],
},
],
Expand All @@ -34,29 +34,29 @@ export const navbarEn: NavbarOptions = [
{
text: 'Blockchain Node',
children: [
'/dev/node/get-started.md',
'/dev/node/source.md',
'/dev/node/building.md',
'/dev/node/usage.md',
'/dev/node/rpc.md',
'dev/node/get-started.md',
'dev/node/source.md',
'dev/node/building.md',
'dev/node/usage.md',
'dev/node/rpc.md',
],
},
{
text: 'Proxy & API',
children: [
'/dev/api/introduction.md',
'/dev/api/get-started.md',
'/dev/api/rpc.md',
'/dev/api/miniapps.md',
'dev/api/introduction.md',
'dev/api/get-started.md',
'dev/api/rpc.md',
'dev/api/miniapps.md',
],
},
{
text: 'Applications',
children: [
'/dev/apps/introduction.md',
'/dev/apps/get-started.md',
'/dev/apps/mini-apps.md',
'/dev/apps/barteron-app.md',
'dev/apps/introduction.md',
'dev/apps/get-started.md',
'dev/apps/mini-apps.md',
'dev/apps/barteron-app.md',
],
},
],
Expand Down
60 changes: 59 additions & 1 deletion docs/.vuepress/configs/navbar/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,63 @@ import type { NavbarOptions } from '@vuepress/theme-default'
import { VERSION } from '../meta.js'

export const navbarRu: NavbarOptions = [

{
text: 'User Center',
children: [
{
text: 'Get Started',
children: [
'guide/getting-started.md',
'guide/easy-node/',
'guide/full-node/',
],
},
{
text: 'Monetization',
children: [
'guide/monetization/',
],
},
],
},
{
text: 'Developer Docs',
children: [
{
text: 'Platform Overview',
children: [
'dev/introduction.md',
'dev/CONTRIBUTING.md',
],
},
{
text: 'Blockchain Node',
children: [
'dev/node/get-started.md',
'dev/node/source.md',
'dev/node/building.md',
'dev/node/usage.md',
'dev/node/rpc.md',
],
},
{
text: 'Proxy & API',
children: [
'dev/api/introduction.md',
'dev/api/get-started.md',
'dev/api/rpc.md',
'dev/api/miniapps.md',
],
},
{
text: 'Applications',
children: [
'dev/apps/introduction.md',
'dev/apps/get-started.md',
'dev/apps/mini-apps.md',
'dev/apps/barteron-app.md',
],
},
],
},
] as NavbarOptions
56 changes: 56 additions & 0 deletions docs/.vuepress/configs/sidebar/ru.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,61 @@
import type { SidebarOptions } from '@vuepress/theme-default'

export const sidebarRu: SidebarOptions = {
'/ru/guide/': [
{
text: 'Users',
children: [
'guide/getting-started.md',
'guide/monetization/',
'guide/easy-node/',
'guide/full-node/',
],
},
],

'/ru/dev/': [
{
text: 'Developers',
children: [
'introduction.md',
'CONTRIBUTING.md',
],
},
],
'/ru/dev/node': [
{
text: 'Blockchain Node',
children: [
'get-started.md',
'source.md',
'building.md',
'usage.md',
'rpc.md',
],
},
],
'/ru/dev/api': [
{
text: 'Proxy & API',
children: [
'todo.md',
'introduction.md',
'get-started.md',
'rpc.md',
'miniapps.md',
],
},
],
'/ru/dev/apps': [
{
text: 'Applications',
children: [
'introduction.md',
'get-started.md',
'mini-apps.md',
'barteron-app.md',
],
},
],

}
33 changes: 16 additions & 17 deletions docs/dev/node/get-started.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,30 @@
# Начало работы
# Getting Started

Добро пожаловать в документацию по проекту Pocketnet Core. Этот документ предназначен для ознакомления с работой над кодом узла блокчейна для сети Pocketnet. Pocketnet Core в основном написан на C++ и является форком Bitcoin, что определяет наличие множества параллелей с ним.
Welcome to the documentation for the Pocketnet Core project. This document is intended to familiarize you with the blockchain node code for the Pocketnet network. Pocketnet Core is primarily written in C++ and is a fork of Bitcoin, which means there are many parallels with it.

## Что такое наша сеть?
## What is the Pocketnet Network?

Pocketnet представляет собой одноранговую сеть, которая поддерживает работу блокчейна с возможностью хранения открытых данных внутри блокчейна для создания отказоустойчивого хранилища. Узлы в сети Pocketnet называются Pocketnet Core и являются своего рода точками входа в сеть. Каждый узел хранит полную копию данных и выполняет функции базы данных, валидатора и веб-сервера. Основное назначение такой сети — хранение данных, защищенных стандартными механизмами шифрования, применяемыми в блокчейне Биткоин для защиты транзакций. Данные в сети не шифруются на уровне узла, но подписаны ключом автора и защищены от подделки.
Pocketnet is a peer-to-peer network that supports blockchain operations with the ability to store open data within the blockchain to create a fault-tolerant storage. Nodes in the Pocketnet network are called Pocketnet Core and serve as entry points to the network. Each node stores a full copy of the data and functions as a database, validator, and web server. The main purpose of such a network is to store data protected by standard encryption mechanisms used in the Bitcoin blockchain to secure transactions. Data in the network is not encrypted at the node level but is signed with the author's key and protected from tampering.

В качестве альтернатив, решающих аналогичные задачи, можно привести следующие проекты:
Alternative projects that solve similar tasks include:
- [BitTorrent](https://www.bittorrent.com/)
- [IPFS](https://ipfs.tech/)
- [FileCoin](https://filecoin.io/)

Каждый из этих проектов имеет свои преимущества и недостатки, Pocketnet отличается следующими особенностями:
- Сеть Pocketnet обладает механизмами хранения небольших объемов данных, защищенных шифрованием, что гарантирует пользователю их подлинность.
- Узлы Pocketnet оснащены встроенным RPC веб-сервером, который позволяет работать с данными так, как если бы они хранились на классическом веб-сервере.
- Узлы Pocketnet не требуют авторизации для доступа к данным, необходим только приватный ключ — привет интернету web3.
- Транзакции в сети делятся на "денежные", плата за которые определяется динамически в зависимости от размера, и "социальные", плата за которые фиксирована и составляет 1 минимальную единицу койна (1 сатоши), что позволяет строить разнообразные приложения, не требуя существенной платы за использование.
Each of these projects has its advantages and disadvantages, and Pocketnet is distinguished by the following features:
- The Pocketnet network has mechanisms for storing small amounts of data protected by encryption, ensuring their authenticity for the user.
- Pocketnet nodes are equipped with a built-in RPC web server, allowing data to be accessed as if it were stored on a classic web server.
- Pocketnet nodes do not require authorization to access data; only a private key is needed — welcome to the web3 internet.
- Transactions in the network are divided into "monetary," for which the fee is determined dynamically based on size, and "social," for which the fee is fixed at 1 minimum coin unit (1 satoshi), allowing for the creation of various applications without requiring significant usage fees.

## Source Code

## Исходный код
Pocketnet is based on the [Bitcoin](https://github.com/bitcoin/bitcoin) code, so most of the mechanisms and logic of Bitcoin are applied in Pocketnet. More details about the project structure and source code are described in the [Source Code](source.md) section.

Pocketnet базируется на коде [Bitcoin](https://github.com/bitcoin/bitcoin), поэтому большая часть механизмов и логики Биткоин применяется и в Pocketnet. Более подробно о структуре проекта и исходном коде описано в разделе [Исходный Код](/dev/node/source.md)
## Building and Environment Setup

## Сборка и настройка окружение
Various compilation options, release processes, and IDE setup instructions are described in the [Building](building.md) section.

Разнообразные варианты компиляции, процессы выпуска релизов, а также инструкции по настройке IDE, описаны в разделе [Building](/dev/node/building.md).
## Usage

## Использование

Загрузка, запуск и работа с узлами PocketnetCore подробно описаны в разделе [Usage](/dev/node/usage.md).
Loading, launching, and working with PocketnetCore nodes are detailed in the [Usage](usage.md) section.
Loading

0 comments on commit 110eaf3

Please sign in to comment.