Make WordPress Core

Changeset 46084


Ignore:
Timestamp:
09/08/2019 11:52:43 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Comments: Replace @ with at in the displayed date format.

The @ symbol makes sense in the context of email addresses, but does not have a universal meaning in the context of dates.

Props birgire, afercia, audrasjb, SergeyBiryukov.
Fixes #47893.

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/comment.php

    r45932 r46084  
    210210            /* translators: Comment date format. See https://secure.php.net/date */
    211211            get_comment_date( __( 'Y/m/d' ), $comment ),
     212            /* translators: Comment time format. See https://secure.php.net/date */
    212213            get_comment_date( __( 'g:i a' ), $comment )
    213214        );
  • trunk/src/wp-admin/edit-form-comment.php

    r45932 r46084  
    104104<div class="misc-pub-section curtime misc-pub-curtime">
    105105<?php
    106 /* translators: Publish box date format, see https://secure.php.net/date */
    107 $datef = __( 'M j, Y @ H:i' );
     106$submitted = sprintf(
     107    /* translators: 1: Comment date, 2: Comment time. */
     108    __( '%1$s at %2$s' ),
     109    /* translators: Publish box date format, see https://secure.php.net/date */
     110    date_i18n( _x( 'M j, Y', 'publish box date format' ), strtotime( $comment->comment_date ) ),
     111    /* translators: Publish box time format, see https://secure.php.net/date */
     112    date_i18n( _x( 'H:i', 'publish box time format' ), strtotime( $comment->comment_date ) )
     113);
    108114?>
    109115<span id="timestamp">
    110116<?php
    111 printf(
    112     /* translators: %s: Comment date. */
    113     __( 'Submitted on: %s' ),
    114     '<b>' . date_i18n( $datef, strtotime( $comment->comment_date ) ) . '</b>'
    115 );
     117/* translators: %s: Comment date. */
     118printf( __( 'Submitted on: %s' ), '<b>' . $submitted . '</b>' );
    116119?>
    117120</span>
  • trunk/src/wp-admin/includes/class-wp-comments-list-table.php

    r45933 r46084  
    868868            /* translators: Comment date format. See https://secure.php.net/date */
    869869            get_comment_date( __( 'Y/m/d' ), $comment ),
     870            /* translators: Comment time format. See https://secure.php.net/date */
    870871            get_comment_date( __( 'g:i a' ), $comment )
    871872        );
  • trunk/src/wp-includes/script-loader.php

    r46083 r46084  
    16161616                'submittedOn' => __( 'Submitted on:' ),
    16171617                /* translators: 1: Month, 2: Day, 3: Year, 4: Hour, 5: Minute. */
    1618                 'dateFormat'  => __( '%1$s %2$s, %3$s @ %4$s:%5$s' ),
     1618                'dateFormat'  => __( '%1$s %2$s, %3$s at %4$s:%5$s' ),
    16191619            )
    16201620        );
Note: See TracChangeset for help on using the changeset viewer.