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:
Pascal Birchler
2023-11-26 16:41:34 +00:00
parent cd5cf79e54
commit bc4eb46b55
6 changed files with 35 additions and 9 deletions
+9 -2
View File
@@ -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>';