Skip to content

Commit 38ae83e

Browse files
fixed the translate
1 parent f7bd5de commit 38ae83e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/controllers/BirthdayGreetingController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ public function actionSend($id)
7474

7575
if ($model->save()) {
7676
$model->sendEmail();
77-
Yii::$app->session->setFlash('success', 'Поздравление отправлено');
77+
Yii::$app->session->setFlash('success', Module::t('Congratulations sent'));
7878
return $this->redirect(['view', 'id' => $model->user_id]);
7979
} else {
80-
Yii::$app->session->setFlash('error', 'Ошибка сохранения поздравления'.var_export($model->getErrors(),true));
80+
Yii::$app->session->setFlash('error', Module::t('Error saving greetings'));
8181
}
8282
}
8383

src/messages/ru/user.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@
181181
'Send birthday congratulations' => 'Отправить поздравление с Днем рождения',
182182
'Birthday congratulations to' => 'Поздравления с Днем рождения пользователя',
183183
"The user's birthday is not today" => 'День рождения пользователя не сегодня',
184+
'Congratulations sent' => 'Поздравление отправлено',
185+
'Error saving greetings' => 'Ошибка сохранения поздравления',
184186
'Yes' => 'Да',
185187
'No' => 'Нет',
186188
'Created by' => 'Кем создано',

0 commit comments

Comments
 (0)