|
6 | 6 | msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "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" |
10 | 10 | "PO-Revision-Date: 2025-03-01 15:15+0500\n" |
11 | 11 | "Last-Translator: Automatically generated\n" |
12 | 12 | "Language-Team: none\n" |
@@ -577,3 +577,50 @@ msgstr "`splitResolvedValue` — разделить значения по раз |
577 | 577 | #: guide/en/typecasting.md |
578 | 578 | 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()`." |
579 | 579 | 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 "" |
0 commit comments