Skip to content

Commit 82978ec

Browse files
committed
Options: Combine date & time strings to improve translation accuracy.
This commit merges 2 separate translatable strings into 1 (with a translator note) to make its Daylight-Saving-Time-specific context easier to identify & understand. Props jorbin, pbearne, timse201. Fixes #64197. git-svn-id: https://develop.svn.wordpress.org/trunk@61133 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 93d6c27 commit 82978ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wp-admin/options-general.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ class="<?php echo esc_attr( $classes_for_button ); ?>"
445445
__( 'Standard time begins on: %s.' );
446446
printf(
447447
$message,
448-
'<code>' . wp_date( __( 'F j, Y' ) . ' ' . __( 'g:i a' ), $transitions[1]['ts'] ) . '</code>'
448+
/* translators: Localized date and time format, see https://www.php.net/manual/datetime.format.php */
449+
'<code>' . wp_date( __( 'F j, Y g:i a' ), $transitions[1]['ts'] ) . '</code>'
449450
);
450451
} else {
451452
_e( 'This timezone does not observe daylight saving time.' );

0 commit comments

Comments
 (0)