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

WordPress Trac noreply at wordpress.org
Tue Oct 25 14:13:53 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):

 Using `array_keys()` like in [attachment:26511.14.diff] is fine.

 [attachment:26511.15.diff] adds a missing switch to
 `wp_notify_postauthor()` and adds `test_switch_to_locale_en_US()` which is
 currently failing. `get_available_languages()` doesn't include `en_US`
 since there are usually no language files for `en_US`.

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


More information about the wp-trac mailing list