X-Git-Url: http://git.osdn.net/view?p=invent%2Finvent.git;a=blobdiff_plain;f=controllers%2FTypesController.php;h=c5e73076e94fe40ee76663fed3f913d5e61a0526;hp=73c8c33b83c5d565c7ea64e7b5d6a18d3afae4e1;hb=fdecb86935b63355c9d7258dd25aa5fa63f2e6b6;hpb=20491406eaf181a1477601f19821d4f0c8a79821 diff --git a/controllers/TypesController.php b/controllers/TypesController.php index 73c8c33..c5e7307 100644 --- a/controllers/TypesController.php +++ b/controllers/TypesController.php @@ -40,7 +40,7 @@ class TypesController extends Controller { $result = [ 'id' => FALSE, - 'error' => Yii::t('types', 'Types: key field "type" missing') . print_r($options, TRUE), + 'error' => Yii::t('types', 'Types: key field "type" missing: ') . print_r($options, TRUE), ]; if (is_array($options) && isset($options[ 'type' ])) { @@ -63,7 +63,7 @@ class TypesController extends Controller } else { - $result['error'] = Yii::t('types', 'Failed to add entry {type}', $options) . print_r($model->errors['name'], TRUE); + $result['error'] = Yii::t('types', 'Failed to add entry "{type}": ', $options) . print_r($model->errors['name'], TRUE); } } }