converted text domain to string instead of constant
This commit is contained in:
@@ -70,27 +70,27 @@ class Date extends Base {
|
||||
$block['selected'] = $day;
|
||||
$html .= '<select class="mailpoet_date_day" ';
|
||||
$html .= static::getInputValidation($block, array(
|
||||
'required-message' => __('Please select a day', MAILPOET)
|
||||
'required-message' => __('Please select a day', 'mailpoet')
|
||||
));
|
||||
$html .= 'name="'.$field_name.'[day]" placeholder="'.__('Day', MAILPOET).'">';
|
||||
$html .= 'name="'.$field_name.'[day]" placeholder="'.__('Day', 'mailpoet').'">';
|
||||
$html .= static::getDays($block);
|
||||
$html .= '</select>';
|
||||
} else if($date_selector === 'MM') {
|
||||
$block['selected'] = $month;
|
||||
$html .= '<select class="mailpoet_date_month" ';
|
||||
$html .= static::getInputValidation($block, array(
|
||||
'required-message' => __('Please select a month', MAILPOET)
|
||||
'required-message' => __('Please select a month', 'mailpoet')
|
||||
));
|
||||
$html .= 'name="'.$field_name.'[month]" placeholder="'.__('Month', MAILPOET).'">';
|
||||
$html .= 'name="'.$field_name.'[month]" placeholder="'.__('Month', 'mailpoet').'">';
|
||||
$html .= static::getMonths($block);
|
||||
$html .= '</select>';
|
||||
} else if($date_selector === 'YYYY') {
|
||||
$block['selected'] = $year;
|
||||
$html .= '<select class="mailpoet_date_year" ';
|
||||
$html .= static::getInputValidation($block, array(
|
||||
'required-message' => __('Please select a year', MAILPOET)
|
||||
'required-message' => __('Please select a year', 'mailpoet')
|
||||
));
|
||||
$html .= 'name="'.$field_name.'[year]" placeholder="'.__('Year', MAILPOET).'">';
|
||||
$html .= 'name="'.$field_name.'[year]" placeholder="'.__('Year', 'mailpoet').'">';
|
||||
$html .= static::getYears($block);
|
||||
$html .= '</select>';
|
||||
}
|
||||
@@ -103,10 +103,10 @@ class Date extends Base {
|
||||
|
||||
static function getDateTypes() {
|
||||
return array(
|
||||
'year_month_day' => __('Year, month, day', MAILPOET),
|
||||
'year_month' => __('Year, month', MAILPOET),
|
||||
'month' => __('Month (January, February,...)', MAILPOET),
|
||||
'year' => __('Year', MAILPOET)
|
||||
'year_month_day' => __('Year, month, day', 'mailpoet'),
|
||||
'year_month' => __('Year, month', 'mailpoet'),
|
||||
'month' => __('Month (January, February,...)', 'mailpoet'),
|
||||
'year' => __('Year', 'mailpoet')
|
||||
);
|
||||
}
|
||||
|
||||
@@ -119,9 +119,9 @@ class Date extends Base {
|
||||
);
|
||||
}
|
||||
static function getMonthNames() {
|
||||
return array(__('January', MAILPOET), __('February', MAILPOET), __('March', MAILPOET), __('April', MAILPOET),
|
||||
__('May', MAILPOET), __('June', MAILPOET), __('July', MAILPOET), __('August', MAILPOET), __('September', MAILPOET),
|
||||
__('October', MAILPOET), __('November', MAILPOET), __('December', MAILPOET)
|
||||
return array(__('January', 'mailpoet'), __('February', 'mailpoet'), __('March', 'mailpoet'), __('April', 'mailpoet'),
|
||||
__('May', 'mailpoet'), __('June', 'mailpoet'), __('July', 'mailpoet'), __('August', 'mailpoet'), __('September', 'mailpoet'),
|
||||
__('October', 'mailpoet'), __('November', 'mailpoet'), __('December', 'mailpoet')
|
||||
);
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ class Date extends Base {
|
||||
$html = '';
|
||||
|
||||
// empty value label
|
||||
$html .= '<option value="">'.__('Month', MAILPOET).'</option>';
|
||||
$html .= '<option value="">'.__('Month', 'mailpoet').'</option>';
|
||||
|
||||
for($i = 1; $i < 13; $i++) {
|
||||
$is_selected = ($i === $block['selected']) ? 'selected="selected"' : '';
|
||||
@@ -168,7 +168,7 @@ class Date extends Base {
|
||||
$html = '';
|
||||
|
||||
// empty value label
|
||||
$html .= '<option value="">'.__('Year', MAILPOET).'</option>';
|
||||
$html .= '<option value="">'.__('Year', 'mailpoet').'</option>';
|
||||
|
||||
// return years as an array
|
||||
for($i = (int)$block['to']; $i > (int)($block['from'] - 1); $i--) {
|
||||
@@ -194,7 +194,7 @@ class Date extends Base {
|
||||
$html = '';
|
||||
|
||||
// empty value label
|
||||
$html .= '<option value="">'.__('Day', MAILPOET).'</option>';
|
||||
$html .= '<option value="">'.__('Day', 'mailpoet').'</option>';
|
||||
|
||||
// return days as an array
|
||||
for($i = 1; $i < 32; $i++) {
|
||||
|
Reference in New Issue
Block a user