Fix textdomain

This commit is contained in:
Hoang Huu
2019-12-13 12:18:33 +07:00
parent 429d838bb3
commit 87c00e4809
3 changed files with 529 additions and 456 deletions

View File

@@ -154,7 +154,7 @@ abstract class Opalestate_Base_API {
* @return WP_Error with message key rest_forbidden
*/
private function missing_auth() {
return new WP_Error( 'rest_forbidden', esc_html__( 'You must specify both a token and API key!' ), [ 'status' => rest_authorization_required_code() ] );
return new WP_Error( 'rest_forbidden', esc_html__( 'You must specify both a token and API key!', 'opalestate-pro' ), [ 'status' => rest_authorization_required_code() ] );
}
/**
@@ -165,7 +165,7 @@ abstract class Opalestate_Base_API {
* @return WP_Error with message key rest_forbidden
*/
private function invalid_auth() {
return new WP_Error( 'rest_forbidden', esc_html__( 'Your request could not be authenticated!', 'opaljob' ), [ 'status' => 403 ] );
return new WP_Error( 'rest_forbidden', esc_html__( 'Your request could not be authenticated!', 'opalestate-pro' ), [ 'status' => 403 ] );
}
/**
@@ -176,7 +176,7 @@ abstract class Opalestate_Base_API {
* @return WP_Error with message key rest_forbidden
*/
private function invalid_key() {
return new WP_Error( 'rest_forbidden', esc_html__( 'Invalid API key!' ), [ 'status' => rest_authorization_required_code() ] );
return new WP_Error( 'rest_forbidden', esc_html__( 'Invalid API key!', 'opalestate-pro' ), [ 'status' => rest_authorization_required_code() ] );
}
/**