[wp-trac] [WordPress Trac] #26511: Introduce a locale-switching function

WordPress Trac noreply at wordpress.org
Mon Sep 5 08:41:58 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):

 @tfrommen Agree, we can get rid of that extra check, although I usually
 like more strict comparisons.

 Regarding `$previous_locale`, this won't work because that would make
 `$previous_locale` equal to `$locale`. I'm writing a test right now to
 demonstrate that `$previous_locale` is really the previous locale.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26511#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list