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'])) { if(!empty($recaptcha['enabled']) && empty($data['recaptcha'])) {
return $this->badRequest(array( 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)) { if(is_wp_error($res)) {
return $this->badRequest(array( 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)); $res = json_decode(wp_remote_retrieve_body($res));
if(empty($res->success)) { if(empty($res->success)) {
return $this->badRequest(array( 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) { function registerSubscriberEraser($erasers) {
$erasers['mailpet-subscriber'] = array( $erasers['mailpet-subscriber'] = array(
'eraser_friendly_name' => __('Mailpoet Subscribers', 'mailpoet'), 'eraser_friendly_name' => __('MailPoet Subscribers', 'mailpoet'),
'callback' => array(new SubscriberPersonalDataEraser(), 'erase'), '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) $this->obfuscatedSegments => array($this->segment_1->id, $this->segment_2->id)
)); ));
expect($response->status)->equals(APIResponse::STATUS_BAD_REQUEST); 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()); Setting::setValue('re_captcha', array());
} }

View File

@ -128,7 +128,7 @@ Fixtures::add(
), ),
array ( array (
'type' => 'html', 'type' => 'html',
'name' => 'Random text or HTML', 'name' => 'Custom text or HTML',
'id' => 'html', 'id' => 'html',
'unique' => '0', 'unique' => '0',
'static' => '0', 'static' => '0',

View File

@ -243,7 +243,7 @@
}, },
{ {
id: 'html', id: 'html',
name: "<%= __('Random text or HTML') %>", name: "<%= __('Custom text or HTML') %>",
type: 'html', type: 'html',
params: { params: {
text: "<%= __('Subscribe to our newsletter and join [mailpoet_subscribers_count] other subscribers.') %>" text: "<%= __('Subscribe to our newsletter and join [mailpoet_subscribers_count] other subscribers.') %>"