Make WordPress Core

Changeset 10770


Ignore:
Timestamp:
03/11/2009 03:46:16 PM (16 years ago)
Author:
ryan
Message:

Use full strings for i18n friendliness. Props nbachiyski. see #3962

File:
1 edited

Legend:

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

    r10757 r10770  
    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 />
     
    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.');
Note: See TracChangeset for help on using the changeset viewer.