Skip to content

🌐 Add Russian translation for docs/ru/docs/index.md - #5289

Merged
tiangolo merged 3 commits into
fastapi:masterfrom
impocode:docs/index-ru
Aug 26, 2022
Merged

tiangolo merged 3 commits into
fastapi:masterfrom
impocode:docs/index-ru

Conversation

@impocode

Copy link
Copy Markdown
Contributor

No description provided.

@codecov

codecov Bot commented Aug 19, 2022 •

Copy link
Copy Markdown

Codecov Report

Merging #5289 (f13dac9) into master (ab8988f) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master     #5289   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          533       533           
  Lines        13725     13755   +30     
=========================================
+ Hits         13725     13755   +30     
Impacted Files Coverage Δ
fastapi/routing.py 100.00% <0.00%> (ø)
fastapi/openapi/docs.py 100.00% <0.00%> (ø)
fastapi/dependencies/utils.py 100.00% <0.00%> (ø)
tests/test_dependency_cache.py 100.00% <0.00%> (ø)
tests/test_validate_response.py 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit d6ac0b5 at: https://62fff65d82d48a39e4ef64cd--fastapi.netlify.app

@impocode impocode changed the title docs: update index.md docs for Russian docs: translate index.md docs for Russian Aug 19, 2022
@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 17b6aa3 at: https://62fff8f45f3879428c89217d--fastapi.netlify.app

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 22e115d at: https://62fffb03330a643ddf1b9ad4--fastapi.netlify.app

Comment thread docs/ru/docs/index.md Outdated
</p>
<p align="center">
<em>FastAPI framework, high performance, easy to learn, fast to code, ready for production</em>
<em>Фреймворк FastAPI, высокая производительность, простота в изучении, быстрота написания кода, готовность к производству</em>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Фреймворк FastAPI, **высокопроизводительный**, **простой в изучении** * и т.д.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это уже, наверное, десятая попытка перевода главной страницы ))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@impocode impocode Aug 24, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это уже, наверное, десятая попытка перевода главной страницы ))

Честно, я даже не видел)) Надо было глянуть прежде чем править.

@impocode impocode Aug 24, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Я вижу несколько вариантов перевода.

Все слова который описывают фреймворк отвечают на вопрос:

  1. Какой?:

1.1 Высокопроизводительный
1.2 Простой в изучении, простой при изучении, простой в освоении (еще как вариант можно использовать слово "прост", например "прост в изучении")
1.3 Быстрый в написании кода, быстрый при написании кода
1.4 Готовый к производству, готовый к внедрению в производство

  1. Это?(FastAPI это?)

2.1 Высокопроизводительность, высокая производительность
2.2 Простота в изучении, простота при изучении, простота изучения, простота освоения
2.3 Быстрый в написании кода, быстрый при написании кода, быстрый кодинг
2.4 Готовность к производству, готовность к внедрению в производство

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В оригинале написано, как "FastAPI (это) ...", но, вероятно, предложение от @Winand вполне достаточное, тем более, что этот блок текста повторяется часто в документации.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Голосую за перевод @Winand

Comment thread docs/ru/docs/index.md
</a>
<a href="https://pypi.org/project/fastapi" target="_blank">
<img src="https://badge.fury.io/py/fastapi.svg" alt="Package version">
<img src="https://img.shields.io/pypi/pyversions/fastapi.svg?color=%2334D058" alt="Supported Python versions">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the matter of this changes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Взял из английской версии главной страницы. Чтобы было однообразно.

Comment thread docs/ru/docs/index.md Outdated
Comment on lines +35 to +36
* **Быстрота разработки**: Увеличьте скорость разработки примерно на 200–300%. *
* **Меньше ошибок**: Сократите примерно на 40 % ошибок, вызванных человеком (разработчиком). *

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сокращает
Увеличивает
Я думаю в этих предложениях более подходящими являются такие варианты переводов. НО - я могу ошибаться.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Увеличивает скорость разработки
Сокращает количество ошибок

Это имеется ввиду?

Вообще я пытался отталкиваться от того как это будет восприниматься при чтении. То есть тут такая часть.

Ключевые особенности:

(Ключевые особенности какие?)

- Скорость
- Быстрота разработки
- Меньше ошибок(или меньшее кол-во ошибок при разработке)
- Интуитивно понятный(тут на самом деле немного не то, то есть нет ответа на вопрос "какие?", но и с альтернативой сложно. Если есть варианты можете предложить)

и т.д.

То есть если писать, что-то типа "сокращает" или "увеличивает" то это ответ на вопрос "что FastAPI делает?" и надо везде написать в таком стиле, а это уже проблема так как не везде это подходит.

@impocode impocode Aug 24, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

В тоже время(сейчас заметил) надо тогда и дальше в этом стиле написать. Лёгкость, краткость, надёжность и т.д.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вероятно ты прав, я тоже не посмотрел. Нужно уже у Себастиана спросить поддерживать ли однообразность перевода во всем тексте

Comment thread docs/ru/docs/index.md Outdated
## Отзывы

"_[...] I'm using **FastAPI** a ton these days. [...] I'm actually planning to use it for all of my team's **ML services at Microsoft**. Some of them are getting integrated into the core **Windows** product and some **Office** products._"
"_В последнее время я много где использую **FastAPI**. [...] На самом деле я планирую использовать его для всех **служб машинного обучения моей команды в Microsoft**. Некоторые из них интегрируются в основной продукт **Windows**, а некоторые — в продукты **Office**._"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

служб машинного обучения - скорее всего подразумевается как сервисов или же приложений для

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Могу поправить на "сервисов машинного обучения...", думаю это будет более близкое по смыслу. Вариант приложений для как мне кажется не очень подходит.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Согласен - сервисов машинного обучения, хорошо звучит

Comment thread docs/ru/docs/index.md Outdated
### Создание

* Create a file `main.py` with:
* Создайте файл `main.py` с:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Возможно лучше дополнить Создайте файл 'main.py' с содежимым: или что-то на подобии?

@impocode impocode Aug 24, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RobotToI
Как на счет "со следующим содержимым"?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Супер

Comment thread docs/ru/docs/index.md Outdated
* **WebSockets**
* **GraphQL**
* extremely easy tests based on `requests` and `pytest`
* Объявление **параметров** из других мест, таких как: **заголовки**, **куки**, **поля формы** и **файлы**.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь тоже самое со словом куки - оно хоть и есть в русском, даже если мы его только что придумали, но использовать его наверное не стоит и лучше использовать английского предка)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread docs/ru/docs/index.md
* Очень мощная и простая в использовании система **<abbr title="также известная как компоненты, ресурсы, провайдеры, сервисы, инъекции">внедрения зависимостей</abbr>**.
* Безопасность и аутентификация, включая поддержку **OAuth2** с **токенами JWT** и **HTTP Basic** аутентификацию.
* Более продвинутые (но столь же простые) методы объявления **глубоко вложенных моделей JSON** (спасибо Pydantic).
* **GraphQL** интеграция с <a href="https://strawberry.rocks" class="external-link" target="_blank">Strawberry</a> и другими библиотеками.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У вас немного выше переехал GraphQL чем должен быть

@impocode impocode Aug 24, 2022 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RobotToI

Это не у меня, это у оригинала))

4b968c4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ой(

Comment thread docs/ru/docs/index.md Outdated
* **CORS**
* **Cookie Sessions**
* ...and more.
* **Сеансы файлов Cookie**

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Возможно Cookie сеансы(сессии) будет более корректно?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Только это куки сеансов/сессий.
Такие штуки, которые позволяют продолжить конкретный прерванный сеанс.

Comment thread docs/ru/docs/index.md Outdated
Независимые тесты TechEmpower показывают приложения **FastAPI**, работающие под управлением Uvicorn, как <a href="https://www.techempower.com/benchmarks/#section=test&runid=7464e520-0dc2-473d-bd34-dbdfd7e85911&hw=ph&test=query&l=zijzen-7" class="external-link" target="_blank">один из самых быстрых доступных фреймворков Python</a>, уступающий только самим Starlette и Uvicorn (используемых внутри FastAPI). (*)

To understand more about it, see the section <a href="https://fastapi.tiangolo.com/benchmarks/" class="internal-link" target="_blank">Benchmarks</a>.
Чтобы узнать больше об этом, см. раздел <a href="https://fastapi.tiangolo.com/benchmarks/" class="internal-link" target="_blank">Тесты</a>.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не совсем понятно какие Тесты - возможно стоит указать что это тесты производительности?

Comment thread docs/ru/docs/index.md
* <a href="https://github.com/ijl/orjson" target="_blank"><code>orjson</code></a> - Обязательно, если вы хотите использовать `ORJSONResponse`.

You can install all of these with `pip install fastapi[all]`.
Вы можете установить все это с помощью `pip install "fastapi[all]"`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А в чем суть двойных кавычек?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сделал по аналогии с оригиналом.

https://github.com/tiangolo/fastapi/blob/master/docs/en/docs/index.md#optional-dependencies

@tiangolo tiangolo changed the title docs: translate index.md docs for Russian 🌐 Add Russian translation for docs/ru/docs/index.md Aug 22, 2022
@tiangolo tiangolo added lang-all Translations lang-ru Russian translations awaiting-review labels Aug 22, 2022
@github-actions github-actions Bot mentioned this pull request Aug 22, 2022
Comment thread docs/ru/docs/index.md Outdated
* **Быстрота разработки**: Увеличьте скорость разработки примерно на 200–300%. *
* **Меньше ошибок**: Сократите примерно на 40 % ошибок, вызванных человеком (разработчиком). *
* **Интуитивно понятный**: Отличная поддержка редактора. <abbr title="также известное как автозаполнение, автодополнение, IntelliSense">Автозавершение</abbr> везде. Меньше времени на отладку.
* **Легкий**: Разработан так, чтобы его было легко использовать и осваивать. Меньше времени на чтение документов.

@Xewus Xewus Aug 22, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

чтение документов

документации

Comment thread docs/ru/docs/index.md Outdated
</p>
<p align="center">
<em>FastAPI framework, high performance, easy to learn, fast to code, ready for production</em>
<em>Фреймворк FastAPI, высокая производительность, простота в изучении, быстрота написания кода, готовность к производству</em>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это уже, наверное, десятая попытка перевода главной страницы ))

Comment thread docs/ru/docs/index.md Outdated
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.

The key features are:
FastAPI — это современный, быстрый (высокопроизводительный) веб-фреймворк для создания API-интерфейсов с Python 3.6+ на основе стандартных подсказок типов Python.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API-интерфейсов с Python 3.6+

Последняя буква в API - это и есть интерфейс.
В данном случае with это не c, а скорее используя.

Comment thread docs/ru/docs/index.md Outdated
* **Меньше ошибок**: Сократите примерно на 40 % ошибок, вызванных человеком (разработчиком). *
* **Интуитивно понятный**: Отличная поддержка редактора. <abbr title="также известное как автозаполнение, автодополнение, IntelliSense">Автозавершение</abbr> везде. Меньше времени на отладку.
* **Легкий**: Разработан так, чтобы его было легко использовать и осваивать. Меньше времени на чтение документов.
* **Короткий**: Сведите к минимуму дублирование кода. Несколько функций из каждого объявления параметра. Меньше ошибок.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Несколько функций из каждого объявления параметра

Не понятно, что имеется ввиду.. С буквальным переводом справятся и роботы.

Каждый объявленный параметр - определяет несколько функций.

Comment thread docs/ru/docs/index.md Outdated
* **Легкий**: Разработан так, чтобы его было легко использовать и осваивать. Меньше времени на чтение документов.
* **Короткий**: Сведите к минимуму дублирование кода. Несколько функций из каждого объявления параметра. Меньше ошибок.
* **Надежный**: Получите готовый к работе код. С автоматической интерактивной документацией.
* **На основе стандартов**: На основе (и полностью совместимых) открытых стандартов для API: <a href="https://github.com/OAI/OpenAPI-Specification" class="external-link" target="_blank">OpenAPI</a> (ранее известном как Swagger) и <a href="https://json-schema.org/" class="external-link" target="_blank">JSON Schema</a>.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

На основе (и полностью совместимых)

Основан на открытых стандартах API и полностью совместим с ними.

Comment thread docs/ru/docs/index.md
* Преобразование типов Python (`str`, `int`, `float`, `bool`, `list`, etc).
* Объекты `datetime`.
* Объекты `UUID`.
* Модели баз данных.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Модели для баз данных.

Comment thread docs/ru/docs/index.md Outdated
* Если это не так, клиент увидит полезную чёткую ошибку.
* Проверять, есть ли необязательный параметр запроса с именем `q` (например, `http://127.0.0.1:8000/items/foo?q=somequery`) для `GET` запросов.
* Поскольку параметр `q` объявлен с `= None`, он является необязательным.
* Без `None` это было бы необходимо (как тело в случае с `PUT`).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Без None это было бы необходимо

Без None он был бы необходим.

Вам следует попрактиковаться со словом It.

Comment thread docs/ru/docs/index.md Outdated
---

We just scratched the surface, but you already get the idea of how it all works.
Мы только поцарапали поверхность, но вы уже поняли, как все это работает.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

немного капнули

копать != капать

Comment thread docs/ru/docs/index.md Outdated
![editor support](https://fastapi.tiangolo.com/img/vscode-completion.png)

For a more complete example including more features, see the <a href="https://fastapi.tiangolo.com/tutorial/">Tutorial - User Guide</a>.
Более полный пример с дополнительными функциями см. в <a href="https://fastapi.tiangolo.com/tutorial/">Учебном руководстве - Руководство пользователя</a>.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Учебном руководстве - Руководство пользователя

Руководстве пользователя

Comment thread docs/ru/docs/index.md Outdated
* **GraphQL**
* extremely easy tests based on `requests` and `pytest`
* Объявление **параметров** из других мест, таких как: **заголовки**, **куки**, **поля формы** и **файлы**.
* Как установить **ограничения проверки** как `maximum_length` или `regex`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ограничения проверки как

ограничительные ,,,, такие как

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit 20428cf at: https://630718d528099e4b1154c0ce--fastapi.netlify.app

Comment thread docs/ru/docs/index.md Outdated
* **Скорость**: Очень высокая производительность, на уровне **NodeJS** и **Go** (благодаря Starlette и Pydantic). [Один из самых быстрых фреймворков Python](#_10).
* **Быстрота разработки**: Увеличьте скорость разработки примерно на 200–300%. *
* **Меньше ошибок**: Сократите примерно на 40 % ошибок, вызванных человеком (разработчиком). *
* **Меньше ошибок**: Сократите примерно на 40% ошибок, вызванных человеком (разработчиком). *

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Здесь и далее я не буду настаивать на исправлении, но оставлю некоторые комментарии для рассмотрения переводчиком.

на 40% ошибок

на 40% количество ошибок

Comment thread docs/ru/docs/index.md Outdated
## Пример обновления

Now modify the file `main.py` to receive a body from a `PUT` request.
Теперь измените файл `main.py`, чтобы получить тело из `PUT` запроса.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Для этой строки и прочих, где body переводится, как тело .
Да, это наиболее используемый перевод, но на самом деле body означает некую цельную собранную конструкцию.
То есть, если фреймворк считать скелетом, то вместе со всеми навешанными зависимостями будет body .

Касательно данного случая. Читатель, конечно, поймёт о чём речь, но всё же, услышав слово тело , обычно представляется человечское тело, потому, возможно, стоит дополнить тело ответа. В оригинале такого уточнения нет, потому что в английском очень сильную роль играют окружающие контексты.

Comment thread docs/ru/docs/index.md Outdated
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.

The key features are:
FastAPI — это современный, быстрый (высокопроизводительный) веб-фреймворк для создания API используя Python 3.6+ на основе стандартных подсказок типов Python.

@Winand Winand Aug 25, 2022 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

На мой взгляд в старом переводе эта фраза выглядит лучше:

FastAPI - это современный, высокопроизводительный веб-фреймворк для построения API на Python 3.6+, в основе которого лежит стандартная аннотация типов.

Только, кажется, не нужно ставить запятую: "современный высокопроизводительный веб-фреймворк"

@Winand

Winand commented Aug 25, 2022

Copy link
Copy Markdown
Contributor

Неплохо бы ещё сравнить с #2985 и #1363, если там встречаются удачные формулировки, чего им пропадать

@github-actions

Copy link
Copy Markdown
Contributor

📝 Docs preview for commit f13dac9 at: https://630785b2b5a6e60c6a3a430a--fastapi.netlify.app

@impocode

impocode commented Aug 26, 2022 •

Copy link
Copy Markdown
Contributor Author

Неплохо бы ещё сравнить с #2985 и #1363, если там встречаются удачные формулировки, чего им пропадать

@Winand

Я посмотрел эти PR'ы. Думаю, мы уже взяли самые удачные формулировки) В остальном, как мне кажется, там очень много неудачных(неподходящих) переводов(Пример: перевод Note как Хозяйке на заметку😅😆).

Возможно, я что-то мог упустить, проглядеть. Если у вас есть предложения, можете написать.

@tiangolo

Copy link
Copy Markdown
Member

Thanks @impocode! 🍰

And thanks for the reviews @Winand, @RobotToI, @Xewus! ☕

@tiangolo
tiangolo merged commit fd2080a into fastapi:master Aug 26, 2022
@Xewus

Xewus commented Aug 29, 2022

Copy link
Copy Markdown
Contributor

Штош, господа, теперь приглашаю вас поревьюить тут

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-2 lang-all Translations lang-ru Russian translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants