Skip to content

Commit

Permalink
Rewording
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-farre committed Sep 4, 2023
1 parent da3b980 commit 5b0d274
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function rules()
[['moduleDeactivationConfirmed'], 'boolean'],
[['moduleDeactivationConfirmed'], function ($attribute, $params, $validator) {
if ($this->mustConfirmModuleDeactivation()) {
$this->addError($attribute, Yii::t('AdminModule.modules', 'The module will be disabled for {nbContainers} users or spaces!', ['nbContainers' => count($this->getModuleDeactivationContainers())]));
$this->addError($attribute, '');
}
}],
];
Expand All @@ -62,7 +62,7 @@ public function attributeLabels()
return [
'spaceDefaultState' => Yii::t('AdminModule.modules', 'Space default state'),
'userDefaultState' => Yii::t('AdminModule.modules', 'User default state'),
'moduleDeactivationConfirmed' => Yii::t('AdminModule.modules', 'Are you sure? All module data will be deleted!'),
'moduleDeactivationConfirmed' => Yii::t('AdminModule.modules', 'The module is currently being used by {nbContainers} users or spaces. If you change its availability, all content created with the module will be lost. Proceed?', ['nbContainers' => count($this->getModuleDeactivationContainers())]),
];
}

Expand Down

0 comments on commit 5b0d274

Please sign in to comment.