From 3ca0ea0aeeea523e1a08625fb59bcbdfca8e07a2 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Wed, 25 Mar 2009 16:55:28 +0000 Subject: [PATCH] Improve translation support for timezone settings. See #9112 props nbachiyski. git-svn-id: https://develop.svn.wordpress.org/trunk@10836 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/options-general.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index cc0dc6210f..af697e2160 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -11,6 +11,8 @@ require_once('./admin.php'); $title = __('General Settings'); $parent_file = 'options-general.php'; +/* translators: date and time format for exact current time, mainly about timezones, see http://php.net/date */ +$timezone_format = _x('Y-m-d G:i:s', 'timezone date format'); /** * Display JavaScript on the page. @@ -123,9 +125,9 @@ foreach ( $offset_range as $offset ) { ?> -UTC time is %s'), date_i18n(__('Y-m-d G:i:s'), false, 'gmt')); ?> +UTC time is %s'), date_i18n( $time_format, false, 'gmt')); ?> - %2$s'), $current_offset_name, date_i18n(__('Y-m-d G:i:s'))); ?> + %2$s'), $current_offset_name, date_i18n($time_format)); ?>
@@ -147,9 +149,9 @@ if (empty($tzstring)) { // set the Etc zone if no timezone string exists -UTC time is %s'), date_i18n(__('Y-m-d G:i:s'), false, 'gmt')); ?> + UTC time is %s'), date_i18n($timezone_format, false, 'gmt')); ?> - %2$s'), get_option('timezone_string'), date_i18n(__('Y-m-d G:i:s'))); ?> + %2$s'), $current_offset_name, date_i18n($timezone_format)); ?>
setTimezone($tz); - printf( $message, date_i18n(__('Y-m-d \a\t g:i a T'), $d->format('U') ) ); + 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') ) ); } else { _e('This timezone does not observe daylight savings time.'); }