added textdomain to __() calls

This commit is contained in:
Jonathan Labreuille
2016-09-26 19:35:53 +02:00
parent 120af4170b
commit ba6198f956
58 changed files with 369 additions and 371 deletions

View File

@@ -18,8 +18,8 @@ class Subscriber extends Model {
parent::__construct();
$this->addValidations('email', array(
'required' => __('Please enter your email address'),
'isEmail' => __('Your email address is invalid!')
'required' => __('Please enter your email address', Env::$plugin_name),
'isEmail' => __('Your email address is invalid!', Env::$plugin_name)
));
}
@@ -214,13 +214,13 @@ class Subscriber extends Model {
$segments = Segment::orderByAsc('name')->findMany();
$segment_list = array();
$segment_list[] = array(
'label' => __('All Lists'),
'label' => __('All Lists', Env::$plugin_name),
'value' => ''
);
$subscribers_without_segment = self::filter('withoutSegments')->count();
$subscribers_without_segment_label = sprintf(
__('Subscribers without a list (%s)'),
__('Subscribers without a list (%s, Env::$plugin_name)'),
number_format($subscribers_without_segment)
);
@@ -276,27 +276,27 @@ class Subscriber extends Model {
return array(
array(
'name' => 'all',
'label' => __('All'),
'label' => __('All', Env::$plugin_name),
'count' => self::getPublished()->count()
),
array(
'name' => self::STATUS_SUBSCRIBED,
'label' => __('Subscribed'),
'label' => __('Subscribed', Env::$plugin_name),
'count' => self::filter(self::STATUS_SUBSCRIBED)->count()
),
array(
'name' => self::STATUS_UNCONFIRMED,
'label' => __('Unconfirmed'),
'label' => __('Unconfirmed', Env::$plugin_name),
'count' => self::filter(self::STATUS_UNCONFIRMED)->count()
),
array(
'name' => self::STATUS_UNSUBSCRIBED,
'label' => __('Unsubscribed'),
'label' => __('Unsubscribed', Env::$plugin_name),
'count' => self::filter(self::STATUS_UNSUBSCRIBED)->count()
),
array(
'name' => 'trash',
'label' => __('Trash'),
'label' => __('Trash', Env::$plugin_name),
'count' => self::getTrashed()->count()
)
);