mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 17:42:26 +01:00 
			
		
		
		
	Localize the message headers in the preview pane
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
		| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user