Merge pull request #627 from mailpoet/translations

Translations
This commit is contained in:
Tautvidas Sipavičius
2016-10-05 12:26:03 +03:00
committed by GitHub
61 changed files with 375 additions and 4536 deletions

View File

@ -17,7 +17,7 @@ class ImportExportFactory {
Segment::getSegmentsForImport() :
Segment::getSegmentsForExport($with_confirmed_subscribers);
return array_map(function($segment) {
if(!$segment['name']) $segment['name'] = __('Not In List');
if(!$segment['name']) $segment['name'] = __('Not In List', 'mailpoet');
if(!$segment['id']) $segment['id'] = 0;
return array(
'id' => $segment['id'],
@ -29,10 +29,10 @@ class ImportExportFactory {
function getSubscriberFields() {
return array(
'email' => __('Email'),
'first_name' => __('First name'),
'last_name' => __('Last name'),
'status' => __('Status')
'email' => __('Email', 'mailpoet'),
'first_name' => __('First name', 'mailpoet'),
'last_name' => __('Last name', 'mailpoet'),
'status' => __('Status', 'mailpoet')
// TODO: add additional fields from MP2
);
}
@ -71,36 +71,36 @@ class ImportExportFactory {
array(
array(
'id' => 'ignore',
'name' => __('Ignore field...'),
'name' => __('Ignore field...', 'mailpoet'),
),
array(
'id' => 'create',
'name' => __('Create new field...')
'name' => __('Create new field...', 'mailpoet')
),
) :
array(
array(
'id' => 'select',
'name' => __('Select all...'),
'name' => __('Select all...', 'mailpoet'),
),
array(
'id' => 'deselect',
'name' => __('Deselect all...')
'name' => __('Deselect all...', 'mailpoet')
),
);
$select2Fields = array(
array(
'name' => __('Actions'),
'name' => __('Actions', 'mailpoet'),
'children' => $actions
),
array(
'name' => __('System fields'),
'name' => __('System fields', 'mailpoet'),
'children' => $this->formatSubscriberFields($subscriber_fields)
)
);
if($subscriber_custom_fields) {
array_push($select2Fields, array(
'name' => __('User fields'),
'name' => __('User fields', 'mailpoet'),
'children' => $this->formatSubscriberCustomFields(
$subscriber_custom_fields
)