Skip to content
Merged
4 changes: 3 additions & 1 deletion .github/workflows/translation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ jobs:
run: |
cd guide
po4a po4a.cfg
cd .. && cd cookbook
po4a po4a.cfg

- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update translation
file_pattern: 'guide'
file_pattern: 'guide cookbook'
76 changes: 76 additions & 0 deletions cookbook/po/README.md/README.md.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-09-05 14:52+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"

#. type: Title #
#: en/README.md
#, no-wrap
msgid "Yii3 community cookbook"
msgstr ""

#. type: Plain text
#: 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 ""

#. type: Bullet: '- '
#: en/README.md
msgid "The Yii community creates the cookbook."
msgstr ""

#. type: Bullet: '- '
#: en/README.md
msgid "Yii core team members curate and edit it."
msgstr ""

#. type: Plain text
#: 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 ""

#. type: Plain text
#: en/README.md
msgid ""
"This book conforms to the [Terms of Yii Documentation](https://www."
"yiiframework.com/license#docs)."
msgstr ""

#. type: Bullet: '- '
#: en/README.md
msgid "[Preface](preface.md)"
msgstr ""

#. type: Bullet: '- '
#: en/README.md
msgid ""
"[Structuring code by use-case with vertical slices](organizing-code/"
"structuring-by-use-case-with-vertical-slices.md)"
msgstr ""

#. type: Bullet: '- '
#: en/README.md
msgid "[Sentry integration](sentry-integration.md)"
msgstr ""

#. type: Bullet: '- '
#: en/README.md
msgid "[Configuring webservers](configuring-webservers/general.md)"
msgstr ""
70 changes: 70 additions & 0 deletions cookbook/po/README.md/ru/README.md.ru.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 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-05 14:52+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 #
#: en/README.md
#, no-wrap
msgid "Yii3 community cookbook"
msgstr "Книга рецептов Yii3"

#. type: Plain text
#: 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: '- '
#: en/README.md
msgid "The Yii community creates the cookbook."
msgstr "Книга создана сообществом Yii."

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

#. type: Plain text
#: 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
#: 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: '- '
#: en/README.md
msgid "[Preface](preface.md)"
msgstr "[Вступление](preface.md)"

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

#. type: Bullet: '- '
#: en/README.md
msgid "[Configuring webservers](configuring-webservers/general.md)"
msgstr "[Конфигурирование веб-серверов](configuring-webservers/general.md)"
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# SOME DESCRIPTIVE TITLE
# Copyright (C) YEAR Free Software Foundation, Inc.
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2025-09-05 14:50+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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 ""
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 ""
Loading
Loading