mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:40:13 +01:00
Localize the message headers in the preview pane
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
1ec38590e6
commit
d84307f2d8
@ -55,6 +55,8 @@ $config['SHOW_MENU_FOR_OUTLOOK'] = 0;
|
||||
|
||||
$config['SEARCH_QUERY_QUOTING'] = 0;
|
||||
|
||||
$config['LOCALIZE_MESSAGE_HEADERS_IN_PREVIEW'] = 1;
|
||||
|
||||
$config['TIMEZONE'] = 'Europe/Budapest';
|
||||
|
||||
$config['PROVIDED_BY'] = 'www.mailpiler.org';
|
||||
|
@ -129,11 +129,21 @@ class ModelSearchMessage extends Model {
|
||||
|
||||
|
||||
public function extract_message($id = '', $terms = '') {
|
||||
$from = "From: ";
|
||||
$to = "To: ";
|
||||
$cc = "Cc: ";
|
||||
$subject = "Subject: ";
|
||||
$date = "Date: ";
|
||||
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: ";
|
||||
$to = "To: ";
|
||||
$cc = "Cc: ";
|
||||
$subject = "Subject: ";
|
||||
$date = "Date: ";
|
||||
}
|
||||
|
||||
$msg = $this->get_raw_message($id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user