[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function
WordPress Trac
noreply at wordpress.org
Mon Oct 3 09:00:11 UTC 2016
#26511: Introduce a locale-switching function
--------------------------------------+------------------------
Reporter: johnbillion | Owner:
Type: feature request | Status: reviewing
Priority: high | Milestone: 4.7
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------
Changes (by ocean90):
* priority: normal => high
Comment:
#29783 is landed so this issue needs to be resolved.
[attachment:26511.7.diff] looks like it has enough abstraction to allow
core and plugins to run extra actions when a locale is switched. I'm
currently not sure what impact calling
`create_initial_post_types()`/`create_initial_taxonomies()` multiple times
has, this needs some research (and tests).
[attachment:WP_Post_Type_Labels.diff] should be in its own ticket to
gather more feedback.
The main use case for this function in core will be to send emails in the
language of the site or a user. We'd need a patch for that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26511#comment:67>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list