mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 09:20:11 +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 = '') {
|
||||||
$from = "From: ";
|
if(LOCALIZE_MESSAGE_HEADERS_IN_PREVIEW) {
|
||||||
$to = "To: ";
|
$lang = Registry::get('language');
|
||||||
$cc = "Cc: ";
|
|
||||||
$subject = "Subject: ";
|
$from = $lang->data['text_from'] . ": ";
|
||||||
$date = "Date: ";
|
$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);
|
$msg = $this->get_raw_message($id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user