Skip to content

Commit 8980060

Browse files
Copilotgithub-actions[bot]
authored andcommitted
Update docs translation
1 parent c9360b8 commit 8980060

File tree

3 files changed

+89
-8
lines changed

3 files changed

+89
-8
lines changed

docs/guide/ru/typecasting.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ final class Post
256256

257257
### `ToArrayOfIntegers`
258258

259-
Используйте атрибут `ToArrayOfIntegers` для приведения значения к массиву
260-
целых чисел:
259+
Use `ToArrayOfIntegers` attribute to cast a value to an array of integers:
261260

262261
```php
263262
use Yiisoft\Hydrator\Attribute\Parameter\ToArrayOfIntegers;
@@ -269,7 +268,8 @@ final class Post
269268
}
270269
```
271270

272-
Если разрешенное значение является итерируемым, каждый элемент будет приведен к целому числу.
273-
Например, массив `['1', '2', '3']` будет преобразован в `[1, 2, 3]`. Если разрешенное значение не
274-
является итерируемым, оно будет приведено к целому числу и обернуто в массив. Например, строка
275-
`'42'` будет преобразована в `[42]`.
271+
If the resolved value is iterable, each element will be cast to an
272+
integer. For example, array `['1', '2', '3']` will be converted to `[1, 2,
273+
3]`. If the resolved value is not iterable, it will be cast to an integer
274+
and wrapped in an array. For example, string `'42'` will be converted to
275+
`[42]`.

docs/po/typecasting.md/ru/typecasting.md.ru.po

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
msgid ""
77
msgstr ""
88
"Project-Id-Version: \n"
9-
"POT-Creation-Date: 2025-06-18 12:27+0000\n"
9+
"POT-Creation-Date: 2026-01-08 22:42+0000\n"
1010
"PO-Revision-Date: 2025-03-01 15:15+0500\n"
1111
"Last-Translator: Automatically generated\n"
1212
"Language-Team: none\n"
@@ -577,3 +577,50 @@ msgstr "`splitResolvedValue` — разделить значения по раз
577577
#: guide/en/typecasting.md
578578
msgid "`separator` — the boundary string (default, `\\R`), it's a part of regular expression so should be taken into account or properly escaped with `preg_quote()`."
579579
msgstr "`separator` — символ перевода строки (по умолчанию, `\\R`). Это часть регулярного выражения, поэтому ее следует учитывать или правильно экранировать с помощью `preg_quote()`."
580+
581+
#. type: Title ###
582+
#: guide/en/typecasting.md
583+
#, fuzzy, no-wrap
584+
#| msgid "`ToArrayOfStrings`"
585+
msgid "`ToArrayOfIntegers`"
586+
msgstr "`ToArrayOfStrings`"
587+
588+
#. type: Plain text
589+
#: guide/en/typecasting.md
590+
#, fuzzy
591+
#| msgid "Use `ToArrayOfStrings` attribute to cast a value to an array of strings:"
592+
msgid "Use `ToArrayOfIntegers` attribute to cast a value to an array of integers:"
593+
msgstr "Используйте атрибут `ToArrayOfStrings` для приведения значения к массиву строк:"
594+
595+
#. type: Fenced code block (php)
596+
#: guide/en/typecasting.md
597+
#, fuzzy, no-wrap
598+
#| msgid ""
599+
#| "use Yiisoft\\Hydrator\\Attribute\\Parameter\\ToArrayOfStrings;\n"
600+
#| "\n"
601+
#| "final class Post\n"
602+
#| "{\n"
603+
#| " #[ToArrayOfStrings(separator: ',')]\n"
604+
#| " public array $tags = []; \n"
605+
#| "}\n"
606+
msgid ""
607+
"use Yiisoft\\Hydrator\\Attribute\\Parameter\\ToArrayOfIntegers;\n"
608+
"\n"
609+
"final class Post\n"
610+
"{\n"
611+
" #[ToArrayOfIntegers]\n"
612+
" public array $ratings = []; \n"
613+
"}\n"
614+
msgstr ""
615+
"use Yiisoft\\Hydrator\\Attribute\\Parameter\\ToArrayOfStrings;\n"
616+
"\n"
617+
"final class Post\n"
618+
"{\n"
619+
" #[ToArrayOfStrings(separator: ',')]\n"
620+
" public array $tags = []; \n"
621+
"}\n"
622+
623+
#. type: Plain text
624+
#: guide/en/typecasting.md
625+
msgid "If the resolved value is iterable, each element will be cast to an integer. For example, array `['1', '2', '3']` will be converted to `[1, 2, 3]`. If the resolved value is not iterable, it will be cast to an integer and wrapped in an array. For example, string `'42'` will be converted to `[42]`."
626+
msgstr ""

docs/po/typecasting.md/typecasting.md.pot

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
10-
"POT-Creation-Date: 2025-06-18 12:27+0000\n"
10+
"POT-Creation-Date: 2026-01-08 22:42+0000\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1313
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -409,3 +409,37 @@ msgid ""
409409
"expression so should be taken into account or properly escaped with "
410410
"`preg_quote()`."
411411
msgstr ""
412+
413+
#. type: Title ###
414+
#: guide/en/typecasting.md
415+
#, no-wrap
416+
msgid "`ToArrayOfIntegers`"
417+
msgstr ""
418+
419+
#. type: Plain text
420+
#: guide/en/typecasting.md
421+
msgid ""
422+
"Use `ToArrayOfIntegers` attribute to cast a value to an array of integers:"
423+
msgstr ""
424+
425+
#. type: Fenced code block (php)
426+
#: guide/en/typecasting.md
427+
#, no-wrap
428+
msgid ""
429+
"use Yiisoft\\Hydrator\\Attribute\\Parameter\\ToArrayOfIntegers;\n"
430+
"\n"
431+
"final class Post\n"
432+
"{\n"
433+
" #[ToArrayOfIntegers]\n"
434+
" public array $ratings = []; \n"
435+
"}\n"
436+
msgstr ""
437+
438+
#. type: Plain text
439+
#: guide/en/typecasting.md
440+
msgid ""
441+
"If the resolved value is iterable, each element will be cast to an integer. "
442+
"For example, array `['1', '2', '3']` will be converted to `[1, 2, 3]`. If "
443+
"the resolved value is not iterable, it will be cast to an integer and "
444+
"wrapped in an array. For example, string `'42'` will be converted to `[42]`."
445+
msgstr ""

0 commit comments

Comments
 (0)