?
avatar ajejebrazorf01
ajejebrazorf01
16 Jan 2018

Is it possible to add the possibility to translate the errors for multilingual sites?

    // Define full set of translatable strings in English
    $PHPMAILER_LANG = array(
        'authenticate' => 'SMTP Error: Could not authenticate.',
        'connect_host' => 'SMTP Error: Could not connect to SMTP host.',
        'data_not_accepted' => 'SMTP Error: data not accepted.',
        'empty_message' => 'Message body empty',
        'encoding' => 'Unknown encoding: ',
        'execute' => 'Could not execute: ',
        'file_access' => 'Could not access file: ',
        'file_open' => 'File Error: Could not open file: ',
        'from_failed' => 'The following From address failed: ',
        'instantiate' => 'Could not instantiate mail function.',
        'invalid_address' => 'Invalid address: ',
        'mailer_not_supported' => ' mailer is not supported.',
        'provide_address' => 'You must provide at least one recipient email address.',
        'recipients_failed' => 'SMTP Error: The following recipients failed: ',
        'signing' => 'Signing Error: ',
        'smtp_connect_failed' => 'SMTP connect() failed.',
        'smtp_error' => 'SMTP server error: ',
        'variable_set' => 'Cannot set or reset variable: ',
        'extension_missing' => 'Extension missing: '
    );
avatar ajejebrazorf01 ajejebrazorf01 - open - 16 Jan 2018
avatar joomla-cms-bot joomla-cms-bot - change - 16 Jan 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 16 Jan 2018
avatar mbabker
mbabker - comment - 16 Jan 2018

It's already possible. Because of a change in the PHPMailer library, our last few releases haven't had the messages translated, this is fixed in 3.8.4 via #19072.

avatar mbabker mbabker - change - 16 Jan 2018
Status New Closed
Closed_Date 0000-00-00 00:00:00 2018-01-16 13:05:19
Closed_By mbabker
avatar mbabker mbabker - close - 16 Jan 2018

Add a Comment

Login with GitHub to post a comment