Skip to content

Commit

Permalink
Provide labels for SMTP because they're not available anymore in Cont…
Browse files Browse the repository at this point in the history
…ao 4
  • Loading branch information
Toflar committed Jan 31, 2017
1 parent 032e52e commit 145e1d4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dca/tl_nc_gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,36 +205,36 @@
),
'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'),
'sql' => "varchar(3) NOT NULL default ''"
),
'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 ''"
Expand Down
7 changes: 7 additions & 0 deletions languages/en/tl_nc_gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 145e1d4

Please sign in to comment.