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

@@ -16,7 +16,7 @@ abstract class Endpoint {
) {
if(empty($errors)) {
$errors = array(
Error::UNKNOWN => __('An unknown error occurred.')
Error::UNKNOWN => __('An unknown error occurred.', Env::$plugin_name)
);
}
return new ErrorResponse($errors, $meta, $status);
@@ -25,7 +25,7 @@ abstract class Endpoint {
function badRequest($errors = array(), $meta = array()) {
if(empty($errors)) {
$errors = array(
Error::BAD_REQUEST => __('Invalid request parameters.')
Error::BAD_REQUEST => __('Invalid request parameters.', Env::$plugin_name)
);
}
return new ErrorResponse($errors, $meta, Response::STATUS_BAD_REQUEST);