[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function
WordPress Trac
noreply at wordpress.org
Sat Sep 24 08:51:34 UTC 2016
#26511: Introduce a locale-switching function
--------------------------------------+------------------------
Reporter: johnbillion | Owner:
Type: feature request | Status: reviewing
Priority: normal | Milestone: 4.7
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------
Comment (by ocean90):
Something I missed to mention earlier: There is an issue with functions
like `get_post_type_labels()`/`_get_custom_object_labels()`. Post type
labels are initially registered via `register_post_type()` which means
they don't change when calling `switch_to_locale()`. You can see that with
[https://core.trac.wordpress.org/attachment/ticket/29783/user-language-
admin-toolbar.php the example plugin] in the Add New menu for the Post and
Page items.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26511#comment:61>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list