From 2cf6e374d75ed17bcb8ffdb949f333b7b69b7e67 Mon Sep 17 00:00:00 2001 From: ericLemanissier <e.lemanissier@physioflow.com> Date: Tue, 2 Jun 2015 17:11:42 +0200 Subject: [PATCH] proper translation function usage : _S instead of __ --- include/class.mailer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/class.mailer.php b/include/class.mailer.php index 799bcd4cf..76f48ba00 100644 --- a/include/class.mailer.php +++ b/include/class.mailer.php @@ -514,7 +514,7 @@ class Mailer { // Force reconnect on next ->send() unset($smtp_connections[$key]); - $alert=sprintf(__("Unable to email via SMTP:%1\$s:%2\$d [%3\$s]\n\n%4\$s\n"), + $alert=sprintf(_S("Unable to email via SMTP:%1\$s:%2\$d [%3\$s]\n\n%4\$s\n"), $smtp['host'], $smtp['port'], $smtp['username'], $result->getMessage()); $this->logError($alert); } @@ -527,7 +527,7 @@ class Mailer { if(!PEAR::isError($result)) return $messageId; - $alert=sprintf(__("Unable to email via php mail function:%1\$s\n\n%2\$s\n"), + $alert=sprintf(_S("Unable to email via php mail function:%1\$s\n\n%2\$s\n"), $to, $result->getMessage()); $this->logError($alert); return false; @@ -536,7 +536,7 @@ class Mailer { function logError($error) { global $ost; //NOTE: Admin alert override - don't email when having email trouble! - $ost->logError(__('Mailer Error'), $error, false); + $ost->logError(_S('Mailer Error'), $error, false); } /******* Static functions ************/ -- GitLab