From 99f46306355df2e54a76cbbbf93b4664bf466c3c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 30 Oct 2015 00:51:03 +0000 Subject: [PATCH] Don't use `` 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 --- src/wp-admin/options-general.php | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php index ecb4ce73e8..4e8c99c3b6 100644 --- a/src/wp-admin/options-general.php +++ b/src/wp-admin/options-general.php @@ -201,12 +201,19 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists if ( $found ) { echo ' '; $message = $tr['isdst'] ? - __('Daylight saving time begins on: %s.') : - __('Standard time begins on: %s.'); + /* translators: %s: date and time */ + __( '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(). - printf( $message, date_i18n(get_option('date_format') . ' ' . get_option('time_format'), $tr['ts'] + ($tz_offset - $tr['offset']) ) ); + printf( $message, + '' . date_i18n( + get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), + $tr['ts'] + ( $tz_offset - $tr['offset'] ) + ) . '' + ); } else { - _e('This timezone does not observe daylight saving time.'); + _e( 'This timezone does not observe daylight saving time.' ); } } // Set back to UTC.