[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function
WordPress Trac
noreply at wordpress.org
Mon Sep 5 09:33:03 UTC 2016
#26511: Introduce a locale-switching function
-------------------------------------------------+-------------------------
Reporter: johnbillion | Owner: ocean90
Type: feature request | Status: reviewing
Priority: normal | Milestone: 4.7
Component: I18N | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by swissspidy):
[attachment:26511.2.diff] includes the previous suggestions including a
`test_restore_locale_action_passes_previous_locale` test.
There's also an incomplete
`test_switch_to_locale_changes_wp_locale_global` test to assert the
`$wp_locale` object contains the correct variables. It's incomplete
because the translation files in the test directory (introduced in #35284)
do not contain the necessary translations. The easiest way to solve this
would be to add translation files for an RTL language.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26511#comment:38>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list