fix: [i18n] added missing %s

pull/3483/head
Steve Clement 2018-07-14 23:52:55 +02:00
parent 0361c01fbc
commit c761f78ee3
1 changed files with 2 additions and 2 deletions

View File

@ -420,7 +420,7 @@ class ShadowAttributesController extends AppController {
foreach ($this->ShadowAttribute->validationErrors as $k => $v) {
$message .= '[' . $k . ']: ' . $v[0] . PHP_EOL;
}
throw new NotFoundException(__('Could not save the proposal. Errors: ', $message));
throw new NotFoundException(__('Could not save the proposal. Errors: %s', $message));
} else {
$this->Flash->error(__('The proposal could not be saved. Please, try again.'));
}
@ -697,7 +697,7 @@ class ShadowAttributesController extends AppController {
foreach ($this->ShadowAttribute->validationErrors as $k => $v) {
$message .= '[' . $k . ']: ' . $v[0] . PHP_EOL;
}
throw new NotFoundException(__('Could not save the proposal. Errors: ', $message));
throw new NotFoundException(__('Could not save the proposal. Errors: %s', $message));
} else {
$this->Flash->error(__('The ShadowAttribute could not be saved. Please, try again.'));
}