Don't use <code>
in translatable strings in options-general.php
.
Add translator commments. Props ramiy. Fixes #34497. git-svn-id: https://develop.svn.wordpress.org/trunk@35438 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
63d9e9df96
commit
99f4630635
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user