[wp-trac] [WordPress Trac] #36259: Switching language should update date and time formats

WordPress Trac noreply at wordpress.org
Thu Nov 16 16:49:08 UTC 2023


#36259: Switching language should update date and time formats
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:  vagios
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  I18N                                 |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  good-first-bug has-patch needs-      |     Focuses:
  testing needs-unit-tests                       |
-------------------------------------------------+-------------------------
Changes (by jornp):

 * keywords:  needs-refresh good-first-bug has-patch => good-first-bug has-
     patch needs-testing needs-unit-tests


Comment:

 I've updated the patch to work with the current WordPress version. Also,
 in the original patch, the `update_option` calls were performed before the
 translations of the new locale were loaded. I've moved the calls to be
 performed right after the switch is made.

 This patch seems to be working correctly, see the screenshots above. I
 think this could use some unit tests moving forward.

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


More information about the wp-trac mailing list