added textdomain to __() calls

This commit is contained in:
Jonathan Labreuille
2016-09-26 19:35:53 +02:00
parent 120af4170b
commit ba6198f956
58 changed files with 369 additions and 371 deletions

View File

@ -21,7 +21,7 @@ class CustomFields extends APIEndpoint {
$custom_field = CustomField::findOne($id);
if($custom_field === false) {
return $this->errorResponse(array(
APIError::NOT_FOUND => __('This custom field does not exist.')
APIError::NOT_FOUND => __('This custom field does not exist.', Env::$plugin_name)
));
} else {
$custom_field->delete();
@ -48,7 +48,7 @@ class CustomFields extends APIEndpoint {
$custom_field = CustomField::findOne($id);
if($custom_field === false) {
return $this->errorResponse(array(
APIError::NOT_FOUND => __('This custom field does not exist.')
APIError::NOT_FOUND => __('This custom field does not exist.', Env::$plugin_name)
));
} else {
return $this->successResponse($custom_field->asArray());