Skip to content

Commit

Permalink
Fix russian translation of error message for FilledAtLeast rule (#756)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Jan 14, 2025
1 parent 2478688 commit 992a5ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Bug #748: Fix hook processing for nested objects that implement `PostValidationHookInterface` when `Nested` rule with
specified rules is used (@DAGpro)
- Bug #756: Fix russian translation of error message for `FilledAtLeast` rule (@vjik)

## 2.1.0 September 12, 2024

Expand Down
4 changes: 2 additions & 2 deletions messages/ru/yii-validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
// Used in single rule

/** @see FilledAtLeast */
'At least {min, number} {min, plural, one{property} other{properties}} from this list must be filled for {property}: {properties}' =>
'Как минимум {min, number} {min, plural, one{свойство} few{свойства} many{свойства} other{свойства}} из этого списка {min, plural, one{должен} few{должны} many{должны} other{должны}} быть заполнены для {property}: {properties}.',
'At least {min, number} {min, plural, one{property} other{properties}} from this list must be filled for {property}: {properties}.' =>
'Как минимум {min, number} {min, plural, one{свойство} other{свойства}} из этого списка {min, plural, one{должно быть заполнено} other{должны быть заполнены}} для "{property}": {properties}.',
/** @see BooleanValue */
'{Property} must be either "{true}" or "{false}".' => '{Property} должно быть «{true}» или «{false}».',
/** @see Count */
Expand Down
3 changes: 1 addition & 2 deletions src/Rule/FilledAtLeast.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ public function __construct(
private array $properties,
private int $min = 1,
private string $incorrectInputMessage = '{Property} must be an array or an object. {type} given.',
private string $message = 'At least {min, number} {min, plural, one{property} other{properties}} from this ' .
'list must be filled for {property}: {properties}.',
private string $message = 'At least {min, number} {min, plural, one{property} other{properties}} from this list must be filled for {property}: {properties}.',
bool|callable|null $skipOnEmpty = null,
private bool $skipOnError = false,
private Closure|null $when = null
Expand Down

0 comments on commit 992a5ea

Please sign in to comment.