Skip to content

Commit 192afff

Browse files
Copilotsamdark
andcommitted
Remove Russian translation for ToArrayOfIntegers
Reverted Russian documentation and translation files to remove ToArrayOfIntegers content, keeping only English documentation. Co-authored-by: samdark <47294+samdark@users.noreply.github.com>
1 parent d2d042d commit 192afff

3 files changed

Lines changed: 2 additions & 103 deletions

File tree

docs/guide/ru/typecasting.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -253,23 +253,3 @@ final class Post
253253
- `separator` — символ перевода строки (по умолчанию, `\R`). Это часть
254254
регулярного выражения, поэтому ее следует учитывать или правильно
255255
экранировать с помощью `preg_quote()`.
256-
257-
### `ToArrayOfIntegers`
258-
259-
Use `ToArrayOfIntegers` attribute to cast a value to an array of integers:
260-
261-
```php
262-
use Yiisoft\Hydrator\Attribute\Parameter\ToArrayOfIntegers;
263-
264-
final class Post
265-
{
266-
#[ToArrayOfIntegers]
267-
public array $ratings = [];
268-
}
269-
```
270-
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: 1 addition & 48 deletions
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: 2026-01-08 22:42+0000\n"
9+
"POT-Creation-Date: 2025-06-18 12:27+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,50 +577,3 @@ 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: 1 addition & 35 deletions
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: 2026-01-08 22:42+0000\n"
10+
"POT-Creation-Date: 2025-06-18 12:27+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,37 +409,3 @@ 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)