Skip to content
Merged
5 changes: 3 additions & 2 deletions .github/workflows/translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
run: |
cd _translations/guide
po4a po4a.cfg

cd ../cookbook
po4a po4a.cfg
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update translation
file_pattern: '_translations guide'
file_pattern: '_translations guide cookbook'
75 changes: 75 additions & 0 deletions _translations/cookbook/po/ru/README.md.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Russian translations for PACKAGE package
# Copyright (C) 2025 Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# Automatically generated, 2025.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: 2025-09-12 09:45+0500\n"
"PO-Revision-Date: 2025-09-05 15:05+0500\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.7\n"

#. type: Title #
#: ../../cookbook/en/README.md
#, no-wrap
msgid "Yii3 community cookbook"
msgstr "Книга рецептов Yii3"

#. type: Plain text
#: ../../cookbook/en/README.md
msgid "Yii3 Community Cookbook is an OpenSource book full of tips and tricks about the [Yii3](https://www.yiiframework.com/) PHP framework."
msgstr "Книга рецептов Yii3 – это бесплатная книга, которая состоит из подсказок и секретов о PHP фреймворке [Yii3](https://www.yiiframework.com/)."

#. type: Bullet: '- '
#: ../../cookbook/en/README.md
msgid "The Yii community creates the cookbook."
msgstr "Книга создана сообществом Yii."

#. type: Bullet: '- '
#: ../../cookbook/en/README.md
msgid "Yii core team members curate and edit it."
msgstr "Поддерживается и редактируется силами команды Yii."

#. type: Plain text
#: ../../cookbook/en/README.md
msgid "Feel free to pull-request your own writings. Team members will review it, give feedback and merge the best possible way."
msgstr "Не стесняйтесь создать pull request со своими рецептами. Мы сделаем ревью и добавим ваш рецепт в книгу."

#. type: Plain text
#: ../../cookbook/en/README.md
msgid "This book conforms to the [Terms of Yii Documentation](https://www.yiiframework.com/license#docs)."
msgstr "Книга следует [правилам для документации Yii](https://www.yiiframework.com/license#docs)."

#. type: Bullet: '- '
#: ../../cookbook/en/README.md
msgid "[Preface](preface.md)"
msgstr "[Вступление](preface.md)"

#. type: Bullet: '- '
#: ../../cookbook/en/README.md
#, fuzzy
msgid "[Structuring code by use-case with vertical slices](organizing-code/structuring-by-use-case-with-vertical-slices.md)"
msgstr "[Организация кода по сценариям использования вертикальными слайсами](organizing-code/structuring-by-use-case-with-vertical-slices.md)"

#. type: Bullet: '- '
#: ../../cookbook/en/README.md
msgid "[Disabling CSRF protection](disabling-csrf-protection.md)"
msgstr ""

#. type: Bullet: '- '
#: ../../cookbook/en/README.md
msgid "[Sentry integration](sentry-integration.md)"
msgstr "[Интеграция с Sentry](sentry-integration.md)"

#. type: Bullet: '- '
#: ../../cookbook/en/README.md
msgid "[Configuring webservers](configuring-webservers/general.md)"
msgstr "[Конфигурирование веб-серверов](configuring-webservers/general.md)"
87 changes: 87 additions & 0 deletions _translations/cookbook/po/ru/configuring-webservers_apache.md.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# Russian translations for PACKAGE package
# Copyright (C) 2025 Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# Automatically generated, 2025.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-09-05 14:50+0500\n"
"PO-Revision-Date: 2025-09-05 14:50+0500\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"

#. type: Title #
#: en/configuring-webservers/apache.md
#, no-wrap
msgid "Configuring web servers: Apache"
msgstr ""

#. type: Plain text
#: en/configuring-webservers/apache.md
msgid "Use the following configuration in Apache's `httpd.conf` file or within a virtual host configuration. Note that you should replace `path/to/app/public` with the actual path for `app/public`."
msgstr ""

#. type: Fenced code block (apacheconfig)
#: en/configuring-webservers/apache.md
#, no-wrap
msgid ""
"# Set document root to be \"app/public\"\n"
"DocumentRoot \"path/to/app/public\"\n"
"\n"
"<Directory \"path/to/app/public\">\n"
" # use mod_rewrite for pretty URL support\n"
" RewriteEngine on\n"
" \n"
" # if $showScriptName is false in UrlManager, do not allow accessing URLs with script name\n"
" RewriteRule ^index.php/ - [L,R=404]\n"
" \n"
" # If a directory or a file exists, use the request directly\n"
" RewriteCond %{REQUEST_FILENAME} !-f\n"
" RewriteCond %{REQUEST_FILENAME} !-d\n"
" \n"
" # Otherwise forward the request to index.php\n"
" RewriteRule . index.php\n"
" \n"
" SetEnv APP_ENV dev\n"
"\n"
" # ...other settings...\n"
"</Directory>\n"
msgstr ""

#. type: Plain text
#: en/configuring-webservers/apache.md
msgid "In case you have `AllowOverride All` you can add `.htaccess` file with the following configuration instead of using `httpd.conf`:"
msgstr ""

#. type: Fenced code block (apacheconfig)
#: en/configuring-webservers/apache.md
#, no-wrap
msgid ""
"# use mod_rewrite for pretty URL support\n"
"RewriteEngine on\n"
"\n"
"# if $showScriptName is false in UrlManager, do not allow accessing URLs with script name\n"
"RewriteRule ^index.php/ - [L,R=404]\n"
"\n"
"# If a directory or a file exists, use the request directly\n"
"RewriteCond %{REQUEST_FILENAME} !-f\n"
"RewriteCond %{REQUEST_FILENAME} !-d\n"
"\n"
"# Otherwise forward the request to index.php\n"
"RewriteRule . index.php\n"
"\n"
"SetEnv APP_ENV dev\n"
"\n"
"# ...other settings...\n"
msgstr ""

#. type: Plain text
#: en/configuring-webservers/apache.md
msgid "In the above, note the usage of `SetEnv`. Since the Yii3 application template is using environment variables, this is a possible place to set them. In production environment remember to set `APP_ENV` to `prod`."
msgstr ""
68 changes: 68 additions & 0 deletions _translations/cookbook/po/ru/configuring-webservers_general.md.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Russian translations for PACKAGE package
# Copyright (C) 2025 Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# Automatically generated, 2025.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-09-05 14:50+0500\n"
"PO-Revision-Date: 2025-09-05 14:50+0500\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"

#. type: Title #
#: en/configuring-webservers/general.md
#, no-wrap
msgid "Configuring web servers: General"
msgstr ""

#. type: Plain text
#: en/configuring-webservers/general.md
msgid "On a production server, if you don't use Docker, configure your web server to serve only the application's public files. Point the document root of your web server to the `app/public` folder."
msgstr ""

#. type: Plain text
#: en/configuring-webservers/general.md
#, no-wrap
msgid ""
"> [!IMPORTANT]\n"
"> If you're running your Yii application behind a reverse proxy, you might need to configure\n"
"> [Trusted proxies and headers](../../../guide/en/security/trusted-request.md).\n"
msgstr ""

#. type: Title ##
#: en/configuring-webservers/general.md
#, no-wrap
msgid "Specific server configurations"
msgstr ""

#. type: Bullet: '- '
#: en/configuring-webservers/general.md
msgid "[Nginx](nginx.md)"
msgstr ""

#. type: Bullet: '- '
#: en/configuring-webservers/general.md
msgid "[Apache](apache.md)"
msgstr ""

#. type: Bullet: '- '
#: en/configuring-webservers/general.md
msgid "[Lighttpd](lighttpd.md)"
msgstr ""

#. type: Bullet: '- '
#: en/configuring-webservers/general.md
msgid "[Nginx Unit](nginx-unit.md)"
msgstr ""

#. type: Bullet: '- '
#: en/configuring-webservers/general.md
msgid "[IIS](iis.md)"
msgstr ""
69 changes: 69 additions & 0 deletions _translations/cookbook/po/ru/configuring-webservers_iis.md.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Russian translations for PACKAGE package
# Copyright (C) 2025 Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# Automatically generated, 2025.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-09-05 14:50+0500\n"
"PO-Revision-Date: 2025-09-05 14:50+0500\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"

#. type: Title #
#: en/configuring-webservers/iis.md
#, no-wrap
msgid "Configuring web servers: IIS"
msgstr ""

#. type: Plain text
#: en/configuring-webservers/iis.md
msgid "When you use [IIS](https://www.iis.net/), host the application in a virtual host (Website) where the document root points to the `path/to/app/public` folder and configure the website to run PHP. In that `public` folder, place a file named `web.config` at `path/to/app/public/web.config`. Use the following content:"
msgstr ""

#. type: Fenced code block (xml)
#: en/configuring-webservers/iis.md
#, no-wrap
msgid ""
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
"<configuration>\n"
" <system.webServer>\n"
" <directoryBrowse enabled=\"false\" />\n"
" <rewrite>\n"
" <rules>\n"
" <rule name=\"Hide Yii Index\" stopProcessing=\"true\">\n"
" <match url=\".\" ignoreCase=\"false\" />\n"
" <conditions>\n"
" <add input=\"{REQUEST_FILENAME}\" matchType=\"IsFile\" \n"
" ignoreCase=\"false\" negate=\"true\" />\n"
" <add input=\"{REQUEST_FILENAME}\" matchType=\"IsDirectory\" \n"
" ignoreCase=\"false\" negate=\"true\" />\n"
" </conditions>\n"
" <action type=\"Rewrite\" url=\"index.php\" appendQueryString=\"true\" />\n"
" </rule> \n"
" </rules>\n"
" </rewrite>\n"
" </system.webServer>\n"
"</configuration>\n"
msgstr ""

#. type: Plain text
#: en/configuring-webservers/iis.md
msgid "Also, the following list of Microsoft's official resources could be useful to configure PHP on IIS:"
msgstr ""

#. type: Bullet: '1. '
#: en/configuring-webservers/iis.md
msgid "[How to set up your first IIS website](https://support.microsoft.com/en-us/help/323972/how-to-set-up-your-first-iis-web-site)"
msgstr ""

#. type: Bullet: '2. '
#: en/configuring-webservers/iis.md
msgid "[Configure a PHP Website on IIS](https://docs.microsoft.com/en-us/iis/application-frameworks/scenario-build-a-php-website-on-iis/configure-a-php-website-on-iis)"
msgstr ""
35 changes: 35 additions & 0 deletions _translations/cookbook/po/ru/configuring-webservers_lighttpd.md.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Russian translations for PACKAGE package
# Copyright (C) 2025 Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# Automatically generated, 2025.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-09-05 14:50+0500\n"
"PO-Revision-Date: 2025-09-05 14:50+0500\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"

#. type: Title #
#: en/configuring-webservers/lighttpd.md
#, no-wrap
msgid "Configuring web servers: lighttpd"
msgstr ""

#. type: Plain text
#: en/configuring-webservers/lighttpd.md
#, no-wrap
msgid "To use [lighttpd](https://www.lighttpd.net/) >= 1.4.24, put `index.php` in the web root and add the following to the configuration:\n"
msgstr ""

#. type: Fenced code block
#: en/configuring-webservers/lighttpd.md
#, no-wrap
msgid "url.rewrite-if-not-file = (\"(.*)\" => \"/index.php/$0\")\n"
msgstr ""
Loading