mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@57136 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1105,8 +1105,15 @@ if ( 'upgrade-core' === $action ) {
|
||||
echo '</h2>';
|
||||
|
||||
echo '<p class="update-last-checked">';
|
||||
/* translators: 1: Date, 2: Time. */
|
||||
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 ) );
|
||||
|
||||
printf(
|
||||
/* translators: 1: Date, 2: Time. */
|
||||
__( 'Last checked on %1$s at %2$s.' ),
|
||||
/* translators: Last update date format. See https://www.php.net/manual/datetime.format.php */
|
||||
date_i18n( __( 'F j, Y' ), $last_update_check ),
|
||||
/* translators: Last update time format. See https://www.php.net/manual/datetime.format.php */
|
||||
date_i18n( __( 'g:i a T' ), $last_update_check )
|
||||
);
|
||||
echo ' <a href="' . esc_url( self_admin_url( 'update-core.php?force-check=1' ) ) . '">' . __( 'Check again.' ) . '</a>';
|
||||
echo '</p>';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user