Localize the message headers in the preview pane

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2019-05-15 20:31:51 +02:00
parent 1ec38590e6
commit d84307f2d8
2 changed files with 17 additions and 5 deletions

View File

@ -55,6 +55,8 @@ $config['SHOW_MENU_FOR_OUTLOOK'] = 0;
$config['SEARCH_QUERY_QUOTING'] = 0; $config['SEARCH_QUERY_QUOTING'] = 0;
$config['LOCALIZE_MESSAGE_HEADERS_IN_PREVIEW'] = 1;
$config['TIMEZONE'] = 'Europe/Budapest'; $config['TIMEZONE'] = 'Europe/Budapest';
$config['PROVIDED_BY'] = 'www.mailpiler.org'; $config['PROVIDED_BY'] = 'www.mailpiler.org';

View File

@ -129,11 +129,21 @@ class ModelSearchMessage extends Model {
public function extract_message($id = '', $terms = '') { public function extract_message($id = '', $terms = '') {
if(LOCALIZE_MESSAGE_HEADERS_IN_PREVIEW) {
$lang = Registry::get('language');
$from = $lang->data['text_from'] . ": ";
$to = $lang->data['text_to'] . ": ";
$cc = "Cc: ";
$subject = $lang->data['text_subject'] . ": ";
$date = $lang->data['text_date'] . ": ";
} else {
$from = "From: "; $from = "From: ";
$to = "To: "; $to = "To: ";
$cc = "Cc: "; $cc = "Cc: ";
$subject = "Subject: "; $subject = "Subject: ";
$date = "Date: "; $date = "Date: ";
}
$msg = $this->get_raw_message($id); $msg = $this->get_raw_message($id);