added textdomain to __() calls
This commit is contained in:
@@ -17,7 +17,7 @@ class Segments extends APIEndpoint {
|
||||
$segment = Segment::findOne($id);
|
||||
if($segment === false) {
|
||||
return $this->errorResponse(array(
|
||||
APIError::NOT_FOUND => __('This list does not exist.')
|
||||
APIError::NOT_FOUND => __('This list does not exist.', Env::$plugin_name)
|
||||
));
|
||||
} else {
|
||||
return $this->successResponse($segment->asArray());
|
||||
@@ -68,7 +68,7 @@ class Segments extends APIEndpoint {
|
||||
$segment = Segment::findOne($id);
|
||||
if($segment === false) {
|
||||
return $this->errorResponse(array(
|
||||
APIError::NOT_FOUND => __('This list does not exist.')
|
||||
APIError::NOT_FOUND => __('This list does not exist.', Env::$plugin_name)
|
||||
));
|
||||
} else {
|
||||
$segment->restore();
|
||||
@@ -84,7 +84,7 @@ class Segments extends APIEndpoint {
|
||||
$segment = Segment::findOne($id);
|
||||
if($segment === false) {
|
||||
return $this->errorResponse(array(
|
||||
APIError::NOT_FOUND => __('This list does not exist.')
|
||||
APIError::NOT_FOUND => __('This list does not exist.', Env::$plugin_name)
|
||||
));
|
||||
} else {
|
||||
$segment->trash();
|
||||
@@ -100,7 +100,7 @@ class Segments extends APIEndpoint {
|
||||
$segment = Segment::findOne($id);
|
||||
if($segment === false) {
|
||||
return $this->errorResponse(array(
|
||||
APIError::NOT_FOUND => __('This list does not exist.')
|
||||
APIError::NOT_FOUND => __('This list does not exist.', Env::$plugin_name)
|
||||
));
|
||||
} else {
|
||||
$segment->delete();
|
||||
@@ -114,11 +114,11 @@ class Segments extends APIEndpoint {
|
||||
|
||||
if($segment === false) {
|
||||
return $this->errorResponse(array(
|
||||
APIError::NOT_FOUND => __('This list does not exist.')
|
||||
APIError::NOT_FOUND => __('This list does not exist.', Env::$plugin_name)
|
||||
));
|
||||
} else {
|
||||
$data = array(
|
||||
'name' => sprintf(__('Copy of %s'), $segment->name)
|
||||
'name' => sprintf(__('Copy of %s', Env::$plugin_name), $segment->name)
|
||||
);
|
||||
$duplicate = $segment->duplicate($data);
|
||||
$errors = $duplicate->getErrors();
|
||||
|
Reference in New Issue
Block a user