From cc512c1b9b21c1e064e5bb6d983363bf988142a7 Mon Sep 17 00:00:00 2001 From: Sergei Filinov Date: Fri, 9 Jul 2021 10:39:08 +0700 Subject: [PATCH] added localization --- localization/en_US.inc | 6 ++++++ localization/ru_RU.inc | 6 ++++++ tls_icon.php | 8 +++++--- 3 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 localization/en_US.inc create mode 100644 localization/ru_RU.inc diff --git a/localization/en_US.inc b/localization/en_US.inc new file mode 100644 index 0000000..38cfcc6 --- /dev/null +++ b/localization/en_US.inc @@ -0,0 +1,6 @@ +add_hook('storage_init', array($this, 'storage_init')); $this->include_stylesheet('tls_icon.css'); + + $this->add_texts('localization/'); } public function storage_init($p) @@ -23,7 +25,7 @@ public function storage_init($p) } public function message_headers($p) - { + { if($this->message_headers_done===false) { $this->message_headers_done = true; @@ -53,11 +55,11 @@ public function message_headers($p) $this->icon_img .= ''; } else if(preg_match_all('/\([a-zA-Z]*, from userid [0-9]*\)/im', $Received, $items, PREG_PATTERN_ORDER)){ - $this->icon_img .= ''; + $this->icon_img .= ''; } else { // TODO: Mails received from localhost but without TLS are currently flagged insecure - $this->icon_img .= ''; + $this->icon_img .= ''; } }