[wp-trac] [WordPress Trac] #23311: Enable internationalization in PHPMailer
WordPress Trac
noreply at wordpress.org
Sat Feb 2 21:34:08 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 nacin):
Replying to [comment:6 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: '),
> ....
> );
>
> }}}
Looks like that would work too. It does abuse the $langcode parameter, but
that is only used for the include().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23311#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list