Ticket #9112: i18n-gettext-contexts-3.diff
File i18n-gettext-contexts-3.diff, 2.9 KB (added by , 15 years ago) |
---|
-
wp-admin/options-general.php
11 11 12 12 $title = __('General Settings'); 13 13 $parent_file = 'options-general.php'; 14 /* translators: date and time format for exact current time, mainly about timezones, see http://php.net/date */ 15 $timezone_format = _x('Y-m-d G:i:s', 'timezone date format'); 14 16 15 17 /** 16 18 * Display JavaScript on the page. … … 123 125 ?> 124 126 </select> 125 127 <?php _e('hours') ?> 126 <span id="utc-time"><?php printf(__('<abbr title="Coordinated Universal Time">UTC</abbr> time is <code>%s</code>'), date_i18n( __('Y-m-d G:i:s'), false, 'gmt')); ?></span>128 <span id="utc-time"><?php printf(__('<abbr title="Coordinated Universal Time">UTC</abbr> time is <code>%s</code>'), date_i18n( $time_format, false, 'gmt')); ?></span> 127 129 <?php if ($current_offset) : ?> 128 <span id="local-time"><?php printf(__('UTC %1$s is <code>%2$s</code>'), $current_offset_name, date_i18n( __('Y-m-d G:i:s'))); ?></span>130 <span id="local-time"><?php printf(__('UTC %1$s is <code>%2$s</code>'), $current_offset_name, date_i18n($time_format)); ?></span> 129 131 <?php endif; ?> 130 132 <br/> 131 133 <span class="setting-description"><?php _e('Unfortunately, you have to manually update this for Daylight Savings Time. Lame, we know, but will be fixed in the future.'); ?></span> … … 147 149 <?php echo wp_timezone_choice($tzstring); ?> 148 150 </select> 149 151 150 <span id="utc-time"><?php printf(__('<abbr title="Coordinated Universal Time">UTC</abbr> time is <code>%s</code>'), date_i18n(__('Y-m-d G:i:s'), false, 'gmt')); ?></span>152 <span id="utc-time"><?php printf(__('<abbr title="Coordinated Universal Time">UTC</abbr> time is <code>%s</code>'), date_i18n($timezone_format, false, 'gmt')); ?></span> 151 153 <?php if (get_option('timezone_string')) : ?> 152 <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'))); ?>154 <span id="local-time"><?php printf(__('UTC %1$s is <code>%2$s</code>'), $current_offset_name, date_i18n($timezone_format)); ?></span> 153 155 <br /> 154 156 <?php 155 157 $now = localtime(time(),true); … … 168 170 } 169 171 170 172 if ( isset($found) && $found === true ) { 171 _e(' ');173 echo ' '; 172 174 $message = $tr['isdst'] ? 173 175 __('This timezone switches to daylight savings time on: %s.') : 174 176 __('This timezone switches to standard time on: %s.'); 175 177 $tz = new DateTimeZone($tzstring); 176 178 $d = new DateTime( "@{$tr['ts']}" ); 177 179 $d->setTimezone($tz); 178 printf( $message, date_i18n(__('Y-m-d \a\t g:i a T'), $d->format('U') ) );180 printf( $message, /* translators: next daylight savings change time format, see http://php.net/date */ date_i18n(_x('Y-m-d G:i:s T', 'next daylight savings change time format'), $d->format('U') ) ); 179 181 } else { 180 182 _e('This timezone does not observe daylight savings time.'); 181 183 }