Make WordPress Core

Ticket #3962: i18n-timezones.diff

File i18n-timezones.diff, 1.4 KB (added by nbachiyski, 16 years ago)
  • wp-admin/options-general.php

     
    152152        <span id="local-time"><?php printf(__('Current time in %1$s is <code>%2$s</code>'), get_option('timezone_string'), date_i18n(__('Y-m-d G:i:s'))); ?>
    153153        <br />
    154154        <?php
    155         _e('This timezone is currently in ');
    156155        $now = localtime(time(),true);
    157         if ($now['tm_isdst']) _e('daylight savings');
    158         else _e('standard');
    159         _e(' time.');
     156        if ($now['tm_isdst']) _e('This timezone is currently in daylight savings time.');
     157        else _e('This timezone is currently in standard time.');
    160158        ?>
    161159        <br />
    162160        <?php
     
    170168                }
    171169       
    172170                if ($found) {
    173                         _e('This timezone switches to ');
    174                         $tr['isdst'] ? _e('daylight savings time') : _e('standard time');
    175                         _e(' on: ');
     171                        _e(' ');
     172                        $message = $tr['isdst'] ?
     173                                __('This timezone switches to daylight savings time on: %s.') :
     174                                __('This timezone switches to standard time on: %s.');
    176175                        $tz = new DateTimeZone($tzstring);
    177176                        $d = new DateTime( "@{$tr['ts']}" );
    178177                        $d->setTimezone($tz);
    179                         echo date_i18n(__('Y-m-d \a\t g:i a T'),$d->format('U'));
     178                        printf( $message, date_i18n(__('Y-m-d \a\t g:i a T'), $d->format('U') ) );
    180179                } else {
    181180                        _e('This timezone does not observe daylight savings time.');
    182181                }