fixing translations
This commit is contained in:
@ -94,7 +94,7 @@ class Subscribers extends APIEndpoint {
|
||||
|
||||
if(!empty($recaptcha['enabled']) && empty($data['recaptcha'])) {
|
||||
return $this->badRequest(array(
|
||||
APIError::BAD_REQUEST => __('Please check the captcha.', 'mailpoet')
|
||||
APIError::BAD_REQUEST => __('Please check the CAPTCHA.', 'mailpoet')
|
||||
));
|
||||
}
|
||||
|
||||
@ -108,13 +108,13 @@ class Subscribers extends APIEndpoint {
|
||||
));
|
||||
if(is_wp_error($res)) {
|
||||
return $this->badRequest(array(
|
||||
APIError::BAD_REQUEST => __('Error while validating the captcha.', 'mailpoet')
|
||||
APIError::BAD_REQUEST => __('Error while validating the CAPTCHA.', 'mailpoet')
|
||||
));
|
||||
}
|
||||
$res = json_decode(wp_remote_retrieve_body($res));
|
||||
if(empty($res->success)) {
|
||||
return $this->badRequest(array(
|
||||
APIError::BAD_REQUEST => __('Error while validating the captcha.', 'mailpoet')
|
||||
APIError::BAD_REQUEST => __('Error while validating the CAPTCHA.', 'mailpoet')
|
||||
));
|
||||
}
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class PersonalDataErasers {
|
||||
|
||||
function registerSubscriberEraser($erasers) {
|
||||
$erasers['mailpet-subscriber'] = array(
|
||||
'eraser_friendly_name' => __('Mailpoet Subscribers', 'mailpoet'),
|
||||
'eraser_friendly_name' => __('MailPoet Subscribers', 'mailpoet'),
|
||||
'callback' => array(new SubscriberPersonalDataEraser(), 'erase'),
|
||||
);
|
||||
|
||||
|
@ -474,7 +474,7 @@ class SubscribersTest extends \MailPoetTest {
|
||||
$this->obfuscatedSegments => array($this->segment_1->id, $this->segment_2->id)
|
||||
));
|
||||
expect($response->status)->equals(APIResponse::STATUS_BAD_REQUEST);
|
||||
expect($response->errors[0]['message'])->equals('Please check the captcha.');
|
||||
expect($response->errors[0]['message'])->equals('Please check the CAPTCHA.');
|
||||
Setting::setValue('re_captcha', array());
|
||||
}
|
||||
|
||||
|
@ -128,7 +128,7 @@ Fixtures::add(
|
||||
),
|
||||
array (
|
||||
'type' => 'html',
|
||||
'name' => 'Random text or HTML',
|
||||
'name' => 'Custom text or HTML',
|
||||
'id' => 'html',
|
||||
'unique' => '0',
|
||||
'static' => '0',
|
||||
|
@ -243,7 +243,7 @@
|
||||
},
|
||||
{
|
||||
id: 'html',
|
||||
name: "<%= __('Random text or HTML') %>",
|
||||
name: "<%= __('Custom text or HTML') %>",
|
||||
type: 'html',
|
||||
params: {
|
||||
text: "<%= __('Subscribe to our newsletter and join [mailpoet_subscribers_count] other subscribers.') %>"
|
||||
|
Reference in New Issue
Block a user