mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 08:40:12 +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['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';
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user