updated Env::plugin_name to constant for text domain

This commit is contained in:
Jonathan Labreuille
2016-09-27 13:22:51 +02:00
parent ba6198f956
commit 42202f676a
58 changed files with 370 additions and 369 deletions

View File

@@ -30,7 +30,7 @@ class API {
if($this->checkToken() === false) {
$error_response = new ErrorResponse(
array(
Error::UNAUTHORIZED => __('You need to specify a valid API token.', Env::$plugin_name)
Error::UNAUTHORIZED => __('You need to specify a valid API token.', MAILPOET)
),
array(),
Response::STATUS_UNAUTHORIZED
@@ -41,7 +41,7 @@ class API {
if($this->checkPermissions() === false) {
$error_response = new ErrorResponse(
array(
Error::FORBIDDEN => __('You do not have the required permissions.', Env::$plugin_name)
Error::FORBIDDEN => __('You do not have the required permissions.', MAILPOET)
),
array(),
Response::STATUS_FORBIDDEN
@@ -56,7 +56,7 @@ class API {
if($this->checkToken() === false) {
$error_response = new ErrorResponse(
array(
Error::UNAUTHORIZED => __('You need to specify a valid API token.', Env::$plugin_name)
Error::UNAUTHORIZED => __('You need to specify a valid API token.', MAILPOET)
),
array(),
Response::STATUS_UNAUTHORIZED