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

@@ -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();