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

@@ -46,10 +46,10 @@ class Export {
function process() {
try {
if(is_writable($this->export_path) === false) {
throw new \Exception(__("Couldn't save export file on the server"));
throw new \Exception(__("Couldn't save export file on the server", Env::$plugin_name));
}
if(!extension_loaded('zip')) {
throw new \Exception(__('Export requires a ZIP extension to be installed on the host'));
throw new \Exception(__('Export requires a ZIP extension to be installed on the host', Env::$plugin_name));
}
$processed_subscribers = call_user_func(
array(
@@ -78,7 +78,7 @@ class Export {
// Excel to automatically recognize the encoding
fwrite($CSV_file, chr(0xEF) . chr(0xBB) . chr(0xBF));
if($this->group_by_segment_option) {
$formatted_subscriber_fields[] = __('List');
$formatted_subscriber_fields[] = __('List', Env::$plugin_name);
}
fwrite(
$CSV_file,
@@ -166,7 +166,7 @@ class Export {
return $XLSX_writer->writeSheetRow(
($this->group_by_segment_option) ?
ucwords($segment) :
__('All Lists'),
__('All Lists', Env::$plugin_name),
$data
);
}
@@ -199,7 +199,7 @@ class Export {
->selectExpr(
'MAX(CASE WHEN ' . Segment::$_table . '.name IS NOT NULL ' .
'THEN ' . Segment::$_table . '.name ' .
'ELSE "' . __('Not In Segment') . '" END) as segment_name'
'ELSE "' . __('Not In Segment', Env::$plugin_name) . '" END) as segment_name'
)
->whereRaw(
SubscriberSegment::$_table . '.segment_id IN (' .