[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function
WordPress Trac
noreply at wordpress.org
Tue Oct 25 14:51:10 UTC 2016
#26511: Introduce a locale-switching function
-------------------------------------------------+-------------------------
Reporter: johnbillion | Owner: swissspidy
Type: feature request | Status: accepted
Priority: high | Milestone: 4.7
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note |
-------------------------------------------------+-------------------------
Comment (by ocean90):
Um, found another bigger issue: `switch_to_locale( get_locale() )` doesn't
really work because of the `get_locale() === $locale` check in
`WP_Locale_Switcher::switch_to_locale()`.
Steps to reproduce:
* Site language is en_US
* User language is de_DE
* Reply to a comment on wp-admin/edit-comments.php
Expected: Language of the mail is en_US
Actual: The mail was sent using user's language
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26511#comment:94>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list