@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | return [ |
4 | - 'You must fill at least {min} of the attributes {attributes}.' => 'Se debe completar al menos {min} de los campos {attributes}.', |
|
5 | - ' or ' => ' o ', |
|
4 | + 'You must fill at least {min} of the attributes {attributes}.' => 'Se debe completar al menos {min} de los campos {attributes}.', |
|
5 | + ' or ' => ' o ', |
|
6 | 6 | ]; |
7 | 7 |
@@ -82,13 +82,13 @@ |
||
82 | 82 | } elseif (! is_array($this->in) && count(preg_split('/\s*,\s*/', $this->in, -1, PREG_SPLIT_NO_EMPTY)) <= 1) { |
83 | 83 | throw new InvalidConfigException('The `in` parameter must have at least 2 attributes.'); |
84 | 84 | } |
85 | - if (!isset(Yii::$app->get('i18n')->translations['message*'])) { |
|
86 | - Yii::$app->get('i18n')->translations['message*'] = [ |
|
87 | - 'class' => PhpMessageSource::className(), |
|
88 | - 'basePath' => __DIR__ . '/messages', |
|
89 | - 'sourceLanguage' => 'en-US' |
|
90 | - ]; |
|
91 | - } |
|
85 | + if (!isset(Yii::$app->get('i18n')->translations['message*'])) { |
|
86 | + Yii::$app->get('i18n')->translations['message*'] = [ |
|
87 | + 'class' => PhpMessageSource::className(), |
|
88 | + 'basePath' => __DIR__ . '/messages', |
|
89 | + 'sourceLanguage' => 'en-US' |
|
90 | + ]; |
|
91 | + } |
|
92 | 92 | if ($this->message === null) { |
93 | 93 | $this->message = Yii::t('messages', 'You must fill at least {min} of the attributes {attributes}.'); |
94 | 94 | } |