Make WordPress Core

Changeset 35438


Ignore:
Timestamp:
10/30/2015 12:51:03 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Don't use <code> in translatable strings in options-general.php.

Add translator commments.

Props ramiy.
Fixes #34497.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/options-general.php

    r35411 r35438  
    202202            echo ' ';
    203203            $message = $tr['isdst'] ?
    204                 __('Daylight saving time begins on: <code>%s</code>.') :
    205                 __('Standard time begins on: <code>%s</code>.');
     204                /* translators: %s: date and time  */
     205                __( 'Daylight saving time begins on: %s.')  :
     206                /* translators: %s: date and time  */
     207                __( 'Standard time begins on: %s.' );
    206208            // Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n().
    207             printf( $message, date_i18n(get_option('date_format') . ' ' . get_option('time_format'), $tr['ts'] + ($tz_offset - $tr['offset']) ) );
     209            printf( $message,
     210                '<code>' . date_i18n(
     211                    get_option( 'date_format' ) . ' ' . get_option( 'time_format' ),
     212                    $tr['ts'] + ( $tz_offset - $tr['offset'] )
     213                ) . '</code>'
     214            );
    208215        } else {
    209             _e('This timezone does not observe daylight saving time.');
     216            _e( 'This timezone does not observe daylight saving time.' );
    210217        }
    211218    }
Note: See TracChangeset for help on using the changeset viewer.