Make WordPress Core


Ignore:
Timestamp:
11/26/2023 04:41:34 PM (2 years ago)
Author:
swissspidy
Message:

I18N: Improve translator comments for strings containing date formats.

Adds translator comments where absent and changes code style so that
comments are attached to the right strings during string extraction.

Props NekoJonez.
Fixes #59947

File:
1 edited

Legend:

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

    r56665 r57136  
    11061106
    11071107    echo '<p class="update-last-checked">';
    1108     /* translators: 1: Date, 2: Time. */
    1109     printf( __( 'Last checked on %1$s at %2$s.' ), date_i18n( __( 'F j, Y' ), $last_update_check ), date_i18n( __( 'g:i a T' ), $last_update_check ) );
     1108
     1109    printf(
     1110        /* translators: 1: Date, 2: Time. */
     1111        __( 'Last checked on %1$s at %2$s.' ),
     1112        /* translators: Last update date format. See https://www.php.net/manual/datetime.format.php */
     1113        date_i18n( __( 'F j, Y' ), $last_update_check ),
     1114        /* translators: Last update time format. See https://www.php.net/manual/datetime.format.php */
     1115        date_i18n( __( 'g:i a T' ), $last_update_check )
     1116    );
    11101117    echo ' <a href="' . esc_url( self_admin_url( 'update-core.php?force-check=1' ) ) . '">' . __( 'Check again.' ) . '</a>';
    11111118    echo '</p>';
Note: See TracChangeset for help on using the changeset viewer.