Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 23 additions & 15 deletions _translations/po/ru/guide_start_creating-project.md.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,28 @@
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Project-Id-Version: \n"
"POT-Creation-Date: 2026-01-09 11:54+0000\n"
"PO-Revision-Date: 2025-09-04 11:19+0500\n"
"PO-Revision-Date: 2026-01-21 22:40+0300\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Poedit 3.8\n"

#. type: Title #
#: ../src/guide/start/creating-project.md
#, no-wrap
msgid "Creating a project"
msgstr ""
msgstr "Создание проекта"

#. type: Plain text
#: ../src/guide/start/creating-project.md
msgid "In this guide we'll provide commands for both [Docker](https://docs.docker.com/get-started/get-docker/) and the built-in dev server with everything installed locally."
msgstr ""
msgstr "В этом руководстве мы приведём команды как для [Docker](https://docs.docker.com/get-started/get-docker/), так и для встроенного dev‑сервера, если всё необходимое установлено локально."

#. type: Plain text
#: ../src/guide/start/creating-project.md
Expand All @@ -35,16 +36,19 @@ msgid ""
"> If you want to use another web server,\n"
"> see [\"Configuring web servers\"](../../cookbook/configuring-webservers/general.md).\n"
msgstr ""
"> [!NOTE]\n"
"> Если вы хотите использовать другой веб‑сервер,\n"
"> см. [\"Настройка веб‑серверов\"](../../cookbook/configuring-webservers/general.md).\n"

#. type: Plain text
#: ../src/guide/start/creating-project.md
msgid "We recommend starting with a project template that's a minimal working Yii project implementing some basic features. It can serve as a good starting point for your projects."
msgstr ""
msgstr "Рекомендуем начать с шаблона проекта: это минимальный рабочий проект Yii с базовой функциональностью. Он может стать хорошей отправной точкой для ваших проектов."

#. type: Plain text
#: ../src/guide/start/creating-project.md
msgid "You can create a new project from a template using the [Composer](https://getcomposer.org) package manager:"
msgstr ""
msgstr "Создать новый проект из шаблона можно с помощью [Composer](https://getcomposer.org):"

#. type: Fenced code block (sh)
#: ../src/guide/start/creating-project.md
Expand All @@ -54,10 +58,8 @@ msgstr ""

#. type: Plain text
#: ../src/guide/start/creating-project.md
#, fuzzy
#| msgid "To install the packages, run the following command:"
msgid "Docker users can run the following commands:"
msgstr "Для установки пакетов выполните в консоли следующую команду:"
msgstr "Пользователи Docker могут выполнить следующие команды:"

#. type: Fenced code block (sh)
#: ../src/guide/start/creating-project.md
Expand All @@ -71,7 +73,7 @@ msgstr ""
#. type: Plain text
#: ../src/guide/start/creating-project.md
msgid "If you want development version instead of release one:"
msgstr ""
msgstr "Если вам нужна dev-версия вместо релизной:"

#. type: Fenced code block (sh)
#: ../src/guide/start/creating-project.md
Expand All @@ -86,7 +88,7 @@ msgstr ""
#. type: Plain text
#: ../src/guide/start/creating-project.md
msgid "This installs the latest stable version of the Yii project template in a directory named `your_project`. You can choose a different directory name if you want."
msgstr ""
msgstr "Команда установит последнюю стабильную версию шаблона проекта Yii в директорию `your_project`. При желании можете выбрать другое имя директории."

#. type: Plain text
#: ../src/guide/start/creating-project.md
Expand All @@ -96,11 +98,14 @@ msgid ""
"> If you want to install the latest development version of Yii, you may add `--stability=dev` to the command.\n"
"> Don't use the development version of Yii for production because it may break your running code.\n"
msgstr ""
"> [!TIP]\n"
"> Если хотите установить самую свежую dev-версию Yii, добавьте к команде `--stability=dev`.\n"
"> Не используйте dev-версию Yii в продакшене: она может сломать работающее приложение.\n"

#. type: Plain text
#: ../src/guide/start/creating-project.md
msgid "Go into the newly created directory and run:"
msgstr ""
msgstr "Перейдите в созданную директорию и выполните:"

#. type: Fenced code block (sh)
#: ../src/guide/start/creating-project.md
Expand All @@ -111,7 +116,7 @@ msgstr ""
#. type: Plain text
#: ../src/guide/start/creating-project.md
msgid "For Docker users, run:"
msgstr ""
msgstr "Если вы используете Docker, выполните:"

#. type: Fenced code block (sh)
#: ../src/guide/start/creating-project.md
Expand All @@ -122,7 +127,7 @@ msgstr ""
#. type: Plain text
#: ../src/guide/start/creating-project.md
msgid "Open your browser to the URL `http://localhost/`."
msgstr ""
msgstr "Откройте в браузере адрес `http://localhost/`."

#. type: Plain text
#: ../src/guide/start/creating-project.md
Expand All @@ -132,8 +137,11 @@ msgid ""
"> The HTTP server listens on port 80. If that port is already in use, specify the port via `--port` or, in case of Docker,\n"
"> `DEV_PORT` in the `docker/.env` file.\n"
msgstr ""
"> [!NOTE]\n"
"> HTTP-сервер слушает порт 80. Если он уже занят, укажите порт через `--port` или, в случае Docker,\n"
"> через `DEV_PORT` в файле `docker/.env`.\n"

#. type: Plain text
#: ../src/guide/start/creating-project.md
msgid "![Successful Installation of Yii](/images/guide/start/app-installed.png)"
msgstr ""
msgstr "![Yii успешно установлен](/images/guide/start/app-installed.png)"
47 changes: 23 additions & 24 deletions src/ru/guide/start/creating-project.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
# Creating a project
# Создание проекта

In this guide we'll provide commands for both
[Docker](https://docs.docker.com/get-started/get-docker/) and the built-in
dev server with everything installed locally.
В этом руководстве мы приведём команды как для
[Docker](https://docs.docker.com/get-started/get-docker/), так и для
встроенного dev‑сервера, если всё необходимое установлено локально.

> [!NOTE]
> If you want to use another web server,
> see ["Configuring web servers"](../../cookbook/configuring-webservers/general.md).
> Если вы хотите использовать другой веб‑сервер,
> см. ["Настройка веб‑серверов"](../../cookbook/configuring-webservers/general.md).

We recommend starting with a project template that's a minimal working Yii
project implementing some basic features. It can serve as a good starting
point for your projects.
Рекомендуем начать с шаблона проекта: это минимальный рабочий проект Yii с
базовой функциональностью. Он может стать хорошей отправной точкой для ваших
проектов.

You can create a new project from a template using the
[Composer](https://getcomposer.org) package manager:
Создать новый проект из шаблона можно с помощью
[Composer](https://getcomposer.org):

```sh
composer create-project yiisoft/app your_project
```

Docker users can run the following commands:
Пользователи Docker могут выполнить следующие команды:

```sh
docker run --rm -it -v "$(pwd):/app" --user $(id -u):$(id -g) composer/composer create-project yiisoft/app your_project
sudo chown -R $(id -u):$(id -g) your_project
cd your_project
```

If you want development version instead of release one:
Если вам нужна dev-версия вместо релизной:

```sh
git clone https://github.com/yiisoft/app.git --depth 1 your_project && \
Expand All @@ -36,30 +36,29 @@ rm -rf .git && \
make composer update
```

This installs the latest stable version of the Yii project template in a
directory named `your_project`. You can choose a different directory name
if you want.
Команда установит последнюю стабильную версию шаблона проекта Yii в
директорию `your_project`. При желании можете выбрать другое имя директории.

> [!TIP]
> If you want to install the latest development version of Yii, you may add `--stability=dev` to the command.
> Don't use the development version of Yii for production because it may break your running code.
> Если хотите установить самую свежую dev-версию Yii, добавьте к команде `--stability=dev`.
> Не используйте dev-версию Yii в продакшене: она может сломать работающее приложение.

Go into the newly created directory and run:
Перейдите в созданную директорию и выполните:

```sh
APP_ENV=dev ./yii serve --port=80
```

For Docker users, run:
Если вы используете Docker, выполните:

```sh
make up
```

Open your browser to the URL `http://localhost/`.
Откройте в браузере адрес `http://localhost/`.

> [!NOTE]
> The HTTP server listens on port 80. If that port is already in use, specify the port via `--port` or, in case of Docker,
> `DEV_PORT` in the `docker/.env` file.
> HTTP-сервер слушает порт 80. Если он уже занят, укажите порт через `--port` или, в случае Docker,
> через `DEV_PORT` в файле `docker/.env`.

![Successful Installation of Yii](/images/guide/start/app-installed.png)
![Yii успешно установлен](/images/guide/start/app-installed.png)