[wp-trac] [WordPress Trac] #36859: Patch to allow the current locale to be changed on the fly including fetching missing language files
WordPress Trac
noreply at wordpress.org
Tue May 17 00:35:55 UTC 2016
#36859: Patch to allow the current locale to be changed on the fly including
fetching missing language files
-------------------------+-----------------------------
Reporter: pbearne | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: I18N | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
We are trying to write unit tests that need to have different locales set
the current WP_locale constructor doesn't allow a setting of the language.
So we have added an optional parameter to the constructor to allow us to
swap at will the current locale loaded.
As the language files may not be preloaded we fetch them if need.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36859>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list