Don't use `<code>` in translatable strings in `options-general.php`.
Add translator commments. Props ramiy. Fixes #34497. Built from https://develop.svn.wordpress.org/trunk@35438 git-svn-id: http://core.svn.wordpress.org/trunk@35402 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
368e5f9fc3
commit
e51f9061c5
|
@ -201,12 +201,19 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
|
||||||
if ( $found ) {
|
if ( $found ) {
|
||||||
echo ' ';
|
echo ' ';
|
||||||
$message = $tr['isdst'] ?
|
$message = $tr['isdst'] ?
|
||||||
__('Daylight saving time begins on: <code>%s</code>.') :
|
/* translators: %s: date and time */
|
||||||
__('Standard time begins on: <code>%s</code>.');
|
__( 'Daylight saving time begins on: %s.') :
|
||||||
|
/* translators: %s: date and time */
|
||||||
|
__( 'Standard time begins on: %s.' );
|
||||||
// Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n().
|
// Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n().
|
||||||
printf( $message, date_i18n(get_option('date_format') . ' ' . get_option('time_format'), $tr['ts'] + ($tz_offset - $tr['offset']) ) );
|
printf( $message,
|
||||||
|
'<code>' . date_i18n(
|
||||||
|
get_option( 'date_format' ) . ' ' . get_option( 'time_format' ),
|
||||||
|
$tr['ts'] + ( $tz_offset - $tr['offset'] )
|
||||||
|
) . '</code>'
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
_e('This timezone does not observe daylight saving time.');
|
_e( 'This timezone does not observe daylight saving time.' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Set back to UTC.
|
// Set back to UTC.
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-beta2-35437';
|
$wp_version = '4.4-beta2-35438';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue