From 145e1d45975b30eebfe5c766875fa803df443ac3 Mon Sep 17 00:00:00 2001 From: Yanick Witschi Date: Tue, 31 Jan 2017 16:32:32 +0100 Subject: [PATCH] Provide labels for SMTP because they're not available anymore in Contao 4 --- dca/tl_nc_gateway.php | 10 +++++----- languages/en/tl_nc_gateway.php | 7 +++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/dca/tl_nc_gateway.php b/dca/tl_nc_gateway.php index 49d36428..e7c5b812 100644 --- a/dca/tl_nc_gateway.php +++ b/dca/tl_nc_gateway.php @@ -205,28 +205,28 @@ ), 'email_smtpHost' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_settings']['smtpHost'], + 'label' => &$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpHost'], 'inputType' => 'text', 'eval' => array('mandatory'=>true, 'nospace'=>true, 'tl_class'=>'long'), 'sql' => "varchar(255) NOT NULL default ''" ), 'email_smtpUser' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_settings']['smtpUser'], + 'label' => &$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpUser'], 'inputType' => 'text', 'eval' => array('decodeEntities'=>true, 'tl_class'=>'w50'), 'sql' => "varchar(255) NOT NULL default ''" ), 'email_smtpPass' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_settings']['smtpPass'], + 'label' => &$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpPass'], 'inputType' => 'textStore', 'eval' => array('decodeEntities'=>true, 'tl_class'=>'w50'), 'sql' => "varchar(255) NOT NULL default ''" ), 'email_smtpEnc' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_settings']['smtpEnc'], + 'label' => &$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpEnc'], 'inputType' => 'select', 'options' => array(''=>'-', 'ssl'=>'SSL', 'tls'=>'TLS'), 'eval' => array('tl_class'=>'w50'), @@ -234,7 +234,7 @@ ), 'email_smtpPort' => array ( - 'label' => &$GLOBALS['TL_LANG']['tl_settings']['smtpPort'], + 'label' => &$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpPort'], 'inputType' => 'text', 'eval' => array('mandatory'=>true, 'rgxp'=>'digit', 'nospace'=>true, 'tl_class'=>'w50'), 'sql' => "varchar(16) NOT NULL default ''" diff --git a/languages/en/tl_nc_gateway.php b/languages/en/tl_nc_gateway.php index dd0aceaa..c3071037 100644 --- a/languages/en/tl_nc_gateway.php +++ b/languages/en/tl_nc_gateway.php @@ -28,6 +28,13 @@ $GLOBALS['TL_LANG']['tl_nc_gateway']['postmark_key'] = array('Postmark API key', 'Please enter your unique Postmark API key.'); $GLOBALS['TL_LANG']['tl_nc_gateway']['postmark_test'] = array('Enable test mode', 'Here you can enable the test mode.'); $GLOBALS['TL_LANG']['tl_nc_gateway']['postmark_ssl'] = array('Enable SSL', 'Here you can enable the SSL connection.'); +$GLOBALS['TL_LANG']['tl_nc_gateway']['useSMTP'] = array('Send e-mails via SMTP', 'Use an SMTP server instead of the PHP mail() function to send e-mails.'); +$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpHost'] = array('SMTP hostname', 'Please enter the host name of the SMTP server.'); +$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpUser'] = array('SMTP username', 'Here you can enter the SMTP username.'); +$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpPass'] = array('SMTP password', 'Here you can enter the SMTP password.'); +$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpEnc'] = array('SMTP encryption', 'Here you can choose an encryption method (SSL or TLS).'); +$GLOBALS['TL_LANG']['tl_nc_gateway']['smtpPort'] = array('SMTP port number', 'Please enter the port number of the SMTP server.'); + /** * Reference