[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function
WordPress Trac
noreply at wordpress.org
Mon Oct 3 11:34:53 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:
--------------------------------------+------------------------
Comment (by swissspidy):
Pressure's on I guess :-)
Just noticed that `add_action( 'change_local', 'create_initial_taxonomies'
);` needs to be `add_action( 'change_locale', 'create_initial_taxonomies'
);` in the latest patch. I think the impact of that approach is
neglectable as it's reduced to a minimum.
I opened #38218 for suggesting a `WP_Post_Type_Labels` class though as it
would be more maintainable.
Anyway, it's only a problem when doing something like switching the locale
for the admin bar on the front end.
> 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.
Happy to provide one. Post type labels should be irrelevant for that, so
it should be easy.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26511#comment:68>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list