fixing translations

This commit is contained in:
Amine Ben hammou
2018-05-23 18:05:15 +00:00
parent 74250b87f9
commit 3e84a1f8e1
5 changed files with 7 additions and 7 deletions

View File

@ -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')
));
}
}

View File

@ -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'),
);

View File

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

View File

@ -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',

View File

@ -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.') %>"