[wp-trac] [WordPress Trac] #42394: Customize: Order of fields in date/time control does not honor locale

WordPress Trac noreply at wordpress.org
Wed Nov 1 20:19:32 UTC 2017


#42394: Customize: Order of fields in date/time control does not honor locale
--------------------------+--------------------
 Reporter:  munyagu       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.9
Component:  Customize     |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+--------------------

Comment (by SergeyBiryukov):

 Edit Post screen uses [source:tags/4.8.3/src/wp-
 admin/includes/template.php?marks=730,731#L724 touch_time()], which allows
 translators to customize the date/time format as needed:
 {{{
 /* translators: 1: month, 2: day, 3: year, 4: hour, 5: minute */
 printf( __( '%1$s %2$s, %3$s @ %4$s:%5$s' ), $month, $day, $year, $hour,
 $minute );
 }}}

 Ideally, the same string should be used in
 `WP_Customize_Date_Time_Control` for consistency, but it uses a completely
 different markup and a different approach to 12/24 hour format, so the fix
 appears to be less straightforward than I thought.

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


More information about the wp-trac mailing list