[wp-trac] [WordPress Trac] #23311: Enable internationalization in PHPMailer
WordPress Trac
noreply at wordpress.org
Sat Feb 2 21:28:59 UTC 2013
#23311: Enable internationalization in PHPMailer
-------------------------+------------------
Reporter: iandunn | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.6
Component: I18N | Version: 3.5
Severity: minor | Resolution:
Keywords: has-patch |
-------------------------+------------------
Comment (by mark-k):
Replying to [comment:4 nacin]:
Can't we do
{{{
$phpmailer->SetLanguage( 'wp', ABSPATH . WPINC .'/' ) );
}}}
and add a file named phpmailer.lang-wp.php to wp-includes which looks like
{{{
$PHPMAILER_LANG = array(
'provide_address' => __('You must provide at least one recipient
email address.'),
'mailer_not_supported' => __(' mailer is not supported.'),
'execute' => __('Could not execute: '),
....
);
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23311#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list