Rename translation functions

This commit is contained in:
Amine Ben hammou
2019-05-21 08:59:11 +00:00
committed by M. Shull
parent 934119f5dd
commit 879a36e0f2
7 changed files with 24 additions and 24 deletions

View File

@ -10,32 +10,32 @@ use MailPoet\WP\Functions as WPFunctions;
class DefaultForm {
public function getName() {
return WPFunctions::get()->x('A GDPR friendly form', 'default name of form (GDPR friendly) to capture emails', 'mailpoet');
return WPFunctions::get()->_x('A GDPR friendly form', 'default name of form (GDPR friendly) to capture emails', 'mailpoet');
}
public function getBody() {
return [
[
'type' => 'text',
'name' => WPFunctions::get()->x('First name', 'Form label', 'mailpoet'),
'name' => WPFunctions::get()->_x('First name', 'Form label', 'mailpoet'),
'id' => 'first_name',
'unique' => '1',
'static' => '0',
'params' => ['label' => WPFunctions::get()->x('First name', 'Form label', 'mailpoet')],
'params' => ['label' => WPFunctions::get()->_x('First name', 'Form label', 'mailpoet')],
'position' => '1',
],
[
'type' => 'text',
'name' => WPFunctions::get()->x('Email', 'Form label', 'mailpoet'),
'name' => WPFunctions::get()->_x('Email', 'Form label', 'mailpoet'),
'id' => 'email',
'unique' => '0',
'static' => '1',
'params' => ['label' => WPFunctions::get()->x('Email', 'Form label', 'mailpoet'), 'required' => 'true'],
'params' => ['label' => WPFunctions::get()->_x('Email', 'Form label', 'mailpoet'), 'required' => 'true'],
'position' => '2',
],
[
'type' => 'html',
'name' => WPFunctions::get()->x('Custom text or HTML', 'Form label', 'mailpoet'),
'name' => WPFunctions::get()->_x('Custom text or HTML', 'Form label', 'mailpoet'),
'id' => 'html',
'unique' => '0',
'static' => '0',
@ -47,11 +47,11 @@ class DefaultForm {
],
[
'type' => 'submit',
'name' => WPFunctions::get()->x('Submit', 'Form label', 'mailpoet'),
'name' => WPFunctions::get()->_x('Submit', 'Form label', 'mailpoet'),
'id' => 'submit',
'unique' => '0',
'static' => '1',
'params' => ['label' => WPFunctions::get()->x('Subscribe!', 'Form label', 'mailpoet')],
'params' => ['label' => WPFunctions::get()->_x('Subscribe!', 'Form label', 'mailpoet')],
'position' => '4',
],
];