[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function
WordPress Trac
noreply at wordpress.org
Sat Oct 22 13:49:22 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):
Replying to [comment:86 ocean90]:
There is an infinite loop in the `WP_Locale_Switcher::load_translations()`
foreach part.
To test this you can add `fwrite( STDERR, print_r( $domain, true ) );`
before `unload_textdomain( $domain );` and then run
`test_plugin_translation_after_switching_locale()` and
`test_theme_translation_after_switching_locale()` in a group. The output
will look like
{{{
internationalized-plugin
internationalized-theme
internationalized-plugin
internationalized-theme
internationalized-plugin
internationalized-theme
....
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26511#comment:87>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list