Skip to content

Commit e313473

Browse files
Add po4a to cookbook translate (#252)
Co-authored-by: ArduanovDanil <[email protected]>
1 parent 1e16077 commit e313473

29 files changed

+2945
-38
lines changed

.github/workflows/translation.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ jobs:
2626
run: |
2727
cd _translations/guide
2828
po4a po4a.cfg
29-
29+
cd ../cookbook
30+
po4a po4a.cfg
3031
- name: Commit changed files
3132
uses: stefanzweifel/git-auto-commit-action@v5
3233
with:
3334
commit_message: Update translation
34-
file_pattern: '_translations guide'
35+
file_pattern: '_translations guide cookbook'
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Russian translations for PACKAGE package
2+
# Copyright (C) 2025 Free Software Foundation, Inc.
3+
# This file is distributed under the same license as the PACKAGE package.
4+
# Automatically generated, 2025.
5+
#
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: \n"
9+
"POT-Creation-Date: 2025-09-12 09:45+0500\n"
10+
"PO-Revision-Date: 2025-09-05 15:05+0500\n"
11+
"Last-Translator: Automatically generated\n"
12+
"Language-Team: none\n"
13+
"Language: ru\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"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"
18+
"X-Generator: Poedit 3.7\n"
19+
20+
#. type: Title #
21+
#: ../../cookbook/en/README.md
22+
#, no-wrap
23+
msgid "Yii3 community cookbook"
24+
msgstr "Книга рецептов Yii3"
25+
26+
#. type: Plain text
27+
#: ../../cookbook/en/README.md
28+
msgid "Yii3 Community Cookbook is an OpenSource book full of tips and tricks about the [Yii3](https://www.yiiframework.com/) PHP framework."
29+
msgstr "Книга рецептов Yii3 – это бесплатная книга, которая состоит из подсказок и секретов о PHP фреймворке [Yii3](https://www.yiiframework.com/)."
30+
31+
#. type: Bullet: '- '
32+
#: ../../cookbook/en/README.md
33+
msgid "The Yii community creates the cookbook."
34+
msgstr "Книга создана сообществом Yii."
35+
36+
#. type: Bullet: '- '
37+
#: ../../cookbook/en/README.md
38+
msgid "Yii core team members curate and edit it."
39+
msgstr "Поддерживается и редактируется силами команды Yii."
40+
41+
#. type: Plain text
42+
#: ../../cookbook/en/README.md
43+
msgid "Feel free to pull-request your own writings. Team members will review it, give feedback and merge the best possible way."
44+
msgstr "Не стесняйтесь создать pull request со своими рецептами. Мы сделаем ревью и добавим ваш рецепт в книгу."
45+
46+
#. type: Plain text
47+
#: ../../cookbook/en/README.md
48+
msgid "This book conforms to the [Terms of Yii Documentation](https://www.yiiframework.com/license#docs)."
49+
msgstr "Книга следует [правилам для документации Yii](https://www.yiiframework.com/license#docs)."
50+
51+
#. type: Bullet: '- '
52+
#: ../../cookbook/en/README.md
53+
msgid "[Preface](preface.md)"
54+
msgstr "[Вступление](preface.md)"
55+
56+
#. type: Bullet: '- '
57+
#: ../../cookbook/en/README.md
58+
#, fuzzy
59+
msgid "[Structuring code by use-case with vertical slices](organizing-code/structuring-by-use-case-with-vertical-slices.md)"
60+
msgstr "[Организация кода по сценариям использования вертикальными слайсами](organizing-code/structuring-by-use-case-with-vertical-slices.md)"
61+
62+
#. type: Bullet: '- '
63+
#: ../../cookbook/en/README.md
64+
msgid "[Disabling CSRF protection](disabling-csrf-protection.md)"
65+
msgstr ""
66+
67+
#. type: Bullet: '- '
68+
#: ../../cookbook/en/README.md
69+
msgid "[Sentry integration](sentry-integration.md)"
70+
msgstr "[Интеграция с Sentry](sentry-integration.md)"
71+
72+
#. type: Bullet: '- '
73+
#: ../../cookbook/en/README.md
74+
msgid "[Configuring webservers](configuring-webservers/general.md)"
75+
msgstr "[Конфигурирование веб-серверов](configuring-webservers/general.md)"
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Russian translations for PACKAGE package
2+
# Copyright (C) 2025 Free Software Foundation, Inc.
3+
# This file is distributed under the same license as the PACKAGE package.
4+
# Automatically generated, 2025.
5+
#
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: PACKAGE VERSION\n"
9+
"POT-Creation-Date: 2025-09-05 14:50+0500\n"
10+
"PO-Revision-Date: 2025-09-05 14:50+0500\n"
11+
"Last-Translator: Automatically generated\n"
12+
"Language-Team: none\n"
13+
"Language: ru\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"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"
18+
19+
#. type: Title #
20+
#: en/configuring-webservers/apache.md
21+
#, no-wrap
22+
msgid "Configuring web servers: Apache"
23+
msgstr ""
24+
25+
#. type: Plain text
26+
#: en/configuring-webservers/apache.md
27+
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`."
28+
msgstr ""
29+
30+
#. type: Fenced code block (apacheconfig)
31+
#: en/configuring-webservers/apache.md
32+
#, no-wrap
33+
msgid ""
34+
"# Set document root to be \"app/public\"\n"
35+
"DocumentRoot \"path/to/app/public\"\n"
36+
"\n"
37+
"<Directory \"path/to/app/public\">\n"
38+
" # use mod_rewrite for pretty URL support\n"
39+
" RewriteEngine on\n"
40+
" \n"
41+
" # if $showScriptName is false in UrlManager, do not allow accessing URLs with script name\n"
42+
" RewriteRule ^index.php/ - [L,R=404]\n"
43+
" \n"
44+
" # If a directory or a file exists, use the request directly\n"
45+
" RewriteCond %{REQUEST_FILENAME} !-f\n"
46+
" RewriteCond %{REQUEST_FILENAME} !-d\n"
47+
" \n"
48+
" # Otherwise forward the request to index.php\n"
49+
" RewriteRule . index.php\n"
50+
" \n"
51+
" SetEnv APP_ENV dev\n"
52+
"\n"
53+
" # ...other settings...\n"
54+
"</Directory>\n"
55+
msgstr ""
56+
57+
#. type: Plain text
58+
#: en/configuring-webservers/apache.md
59+
msgid "In case you have `AllowOverride All` you can add `.htaccess` file with the following configuration instead of using `httpd.conf`:"
60+
msgstr ""
61+
62+
#. type: Fenced code block (apacheconfig)
63+
#: en/configuring-webservers/apache.md
64+
#, no-wrap
65+
msgid ""
66+
"# use mod_rewrite for pretty URL support\n"
67+
"RewriteEngine on\n"
68+
"\n"
69+
"# if $showScriptName is false in UrlManager, do not allow accessing URLs with script name\n"
70+
"RewriteRule ^index.php/ - [L,R=404]\n"
71+
"\n"
72+
"# If a directory or a file exists, use the request directly\n"
73+
"RewriteCond %{REQUEST_FILENAME} !-f\n"
74+
"RewriteCond %{REQUEST_FILENAME} !-d\n"
75+
"\n"
76+
"# Otherwise forward the request to index.php\n"
77+
"RewriteRule . index.php\n"
78+
"\n"
79+
"SetEnv APP_ENV dev\n"
80+
"\n"
81+
"# ...other settings...\n"
82+
msgstr ""
83+
84+
#. type: Plain text
85+
#: en/configuring-webservers/apache.md
86+
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`."
87+
msgstr ""
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Russian translations for PACKAGE package
2+
# Copyright (C) 2025 Free Software Foundation, Inc.
3+
# This file is distributed under the same license as the PACKAGE package.
4+
# Automatically generated, 2025.
5+
#
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: PACKAGE VERSION\n"
9+
"POT-Creation-Date: 2025-09-05 14:50+0500\n"
10+
"PO-Revision-Date: 2025-09-05 14:50+0500\n"
11+
"Last-Translator: Automatically generated\n"
12+
"Language-Team: none\n"
13+
"Language: ru\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"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"
18+
19+
#. type: Title #
20+
#: en/configuring-webservers/general.md
21+
#, no-wrap
22+
msgid "Configuring web servers: General"
23+
msgstr ""
24+
25+
#. type: Plain text
26+
#: en/configuring-webservers/general.md
27+
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."
28+
msgstr ""
29+
30+
#. type: Plain text
31+
#: en/configuring-webservers/general.md
32+
#, no-wrap
33+
msgid ""
34+
"> [!IMPORTANT]\n"
35+
"> If you're running your Yii application behind a reverse proxy, you might need to configure\n"
36+
"> [Trusted proxies and headers](../../../guide/en/security/trusted-request.md).\n"
37+
msgstr ""
38+
39+
#. type: Title ##
40+
#: en/configuring-webservers/general.md
41+
#, no-wrap
42+
msgid "Specific server configurations"
43+
msgstr ""
44+
45+
#. type: Bullet: '- '
46+
#: en/configuring-webservers/general.md
47+
msgid "[Nginx](nginx.md)"
48+
msgstr ""
49+
50+
#. type: Bullet: '- '
51+
#: en/configuring-webservers/general.md
52+
msgid "[Apache](apache.md)"
53+
msgstr ""
54+
55+
#. type: Bullet: '- '
56+
#: en/configuring-webservers/general.md
57+
msgid "[Lighttpd](lighttpd.md)"
58+
msgstr ""
59+
60+
#. type: Bullet: '- '
61+
#: en/configuring-webservers/general.md
62+
msgid "[Nginx Unit](nginx-unit.md)"
63+
msgstr ""
64+
65+
#. type: Bullet: '- '
66+
#: en/configuring-webservers/general.md
67+
msgid "[IIS](iis.md)"
68+
msgstr ""
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Russian translations for PACKAGE package
2+
# Copyright (C) 2025 Free Software Foundation, Inc.
3+
# This file is distributed under the same license as the PACKAGE package.
4+
# Automatically generated, 2025.
5+
#
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: PACKAGE VERSION\n"
9+
"POT-Creation-Date: 2025-09-05 14:50+0500\n"
10+
"PO-Revision-Date: 2025-09-05 14:50+0500\n"
11+
"Last-Translator: Automatically generated\n"
12+
"Language-Team: none\n"
13+
"Language: ru\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"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"
18+
19+
#. type: Title #
20+
#: en/configuring-webservers/iis.md
21+
#, no-wrap
22+
msgid "Configuring web servers: IIS"
23+
msgstr ""
24+
25+
#. type: Plain text
26+
#: en/configuring-webservers/iis.md
27+
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:"
28+
msgstr ""
29+
30+
#. type: Fenced code block (xml)
31+
#: en/configuring-webservers/iis.md
32+
#, no-wrap
33+
msgid ""
34+
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
35+
"<configuration>\n"
36+
" <system.webServer>\n"
37+
" <directoryBrowse enabled=\"false\" />\n"
38+
" <rewrite>\n"
39+
" <rules>\n"
40+
" <rule name=\"Hide Yii Index\" stopProcessing=\"true\">\n"
41+
" <match url=\".\" ignoreCase=\"false\" />\n"
42+
" <conditions>\n"
43+
" <add input=\"{REQUEST_FILENAME}\" matchType=\"IsFile\" \n"
44+
" ignoreCase=\"false\" negate=\"true\" />\n"
45+
" <add input=\"{REQUEST_FILENAME}\" matchType=\"IsDirectory\" \n"
46+
" ignoreCase=\"false\" negate=\"true\" />\n"
47+
" </conditions>\n"
48+
" <action type=\"Rewrite\" url=\"index.php\" appendQueryString=\"true\" />\n"
49+
" </rule> \n"
50+
" </rules>\n"
51+
" </rewrite>\n"
52+
" </system.webServer>\n"
53+
"</configuration>\n"
54+
msgstr ""
55+
56+
#. type: Plain text
57+
#: en/configuring-webservers/iis.md
58+
msgid "Also, the following list of Microsoft's official resources could be useful to configure PHP on IIS:"
59+
msgstr ""
60+
61+
#. type: Bullet: '1. '
62+
#: en/configuring-webservers/iis.md
63+
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)"
64+
msgstr ""
65+
66+
#. type: Bullet: '2. '
67+
#: en/configuring-webservers/iis.md
68+
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)"
69+
msgstr ""
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Russian translations for PACKAGE package
2+
# Copyright (C) 2025 Free Software Foundation, Inc.
3+
# This file is distributed under the same license as the PACKAGE package.
4+
# Automatically generated, 2025.
5+
#
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: PACKAGE VERSION\n"
9+
"POT-Creation-Date: 2025-09-05 14:50+0500\n"
10+
"PO-Revision-Date: 2025-09-05 14:50+0500\n"
11+
"Last-Translator: Automatically generated\n"
12+
"Language-Team: none\n"
13+
"Language: ru\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"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"
18+
19+
#. type: Title #
20+
#: en/configuring-webservers/lighttpd.md
21+
#, no-wrap
22+
msgid "Configuring web servers: lighttpd"
23+
msgstr ""
24+
25+
#. type: Plain text
26+
#: en/configuring-webservers/lighttpd.md
27+
#, no-wrap
28+
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"
29+
msgstr ""
30+
31+
#. type: Fenced code block
32+
#: en/configuring-webservers/lighttpd.md
33+
#, no-wrap
34+
msgid "url.rewrite-if-not-file = (\"(.*)\" => \"/index.php/$0\")\n"
35+
msgstr ""

0 commit comments

Comments
 (0)