X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/03f2fa83c13c1b532284205fa7efcab9b8b2c41f..refs/tags/wordpress-4.7-scripts:/wp-admin/options-general.php diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 220b07e8..22d475c2 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -13,11 +13,11 @@ require_once( dirname( __FILE__ ) . '/admin.php' ); require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); if ( ! current_user_can( 'manage_options' ) ) - wp_die( __( 'You do not have sufficient permissions to manage options for this site.' ) ); + wp_die( __( 'Sorry, you are not allowed to manage options for this site.' ) ); $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 */ +/* translators: date and time format for exact current time, mainly about timezones, see https://secure.php.net/date */ $timezone_format = _x('Y-m-d H:i:s', 'timezone date format'); add_action('admin_head', 'options_general_add_js'); @@ -42,8 +42,8 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

' . __('For more information:') . '

' . - '

' . __('Documentation on General Settings') . '

' . - '

' . __('Support Forums') . '

' + '

' . __('Documentation on General Settings') . '

' . + '

' . __('Support Forums') . '

' ); include( ABSPATH . 'wp-admin/admin-header.php' ); @@ -73,7 +73,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); class="regular-text code" /> - +

want your site home page to be different from your WordPress installation directory.' ); ?>

@@ -105,10 +105,15 @@ $new_admin_email = get_option( 'new_admin_email' ); if ( $new_admin_email && $new_admin_email != get_option('admin_email') ) : ?>

Cancel' ), - '' . esc_html( $new_admin_email ) . '', - esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) + printf( + /* translators: %s: new admin email */ + __( 'There is a pending change of the admin email to %s.' ), + '' . esc_html( $new_admin_email ) . '' + ); + printf( + ' %2$s', + esc_url( wp_nonce_url( admin_url( 'options.php?dismiss=new_admin_email' ), 'dismiss-' . get_current_blog_id() . '-new_admin_email' ) ), + __( 'Cancel' ) ); ?>

@@ -142,26 +147,31 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists +

+ +

UTC time is %s' ), - '' . date_i18n( $timezone_format, false, 'gmt' ) . '' + /* translators: 1: UTC abbreviation, 2: UTC time */ + printf( __( 'Universal time (%1$s) is %2$s.' ), + '' . __( 'UTC' ) . '', + '' . date_i18n( $timezone_format, false, true ) . '' ); ?> - + ' . date_i18n( $timezone_format ) . '' ); ?> -

- -
+

+ + +

' . date_i18n( - get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), + __( 'F j, Y' ) . ' ' . __( 'g:i a' ), $tr['ts'] + ( $tz_offset - $tr['offset'] ) ) . '' ); @@ -210,6 +220,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists date_default_timezone_set('UTC'); ?> +

@@ -220,7 +231,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
' . date_i18n( $format ) . "
\n"; + echo ' /> ' . date_i18n( $format ) . '' . esc_html( $format ) . "
\n"; } - echo ' \n"; - echo ' ' . __( 'example:' ) . ' ' . date_i18n( get_option('date_format') ) . " \n"; + echo '/> ' . __( 'Custom:' ) . ' ' . __( 'enter a custom date format in the following field' ) . '' . + '' . + '' . + '' . __( 'example:' ) . ' ' . date_i18n( get_option( 'date_format' ) ) . '' . + "\n"; ?>
@@ -254,7 +268,7 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists
' . date_i18n( $format ) . "
\n"; + echo ' /> ' . date_i18n( $format ) . '' . esc_html( $format ) . "
\n"; } - echo ' \n"; - echo ' ' . __( 'example:' ) . ' ' . date_i18n( get_option('time_format') ) . " \n"; + echo '/> ' . __( 'Custom:' ) . ' ' . __( 'enter a custom time format in the following field' ) . '' . + '' . + '' . + '' . __( 'example:' ) . ' ' . date_i18n( get_option( 'time_format' ) ) . '' . + "\n"; - echo "\t

" . __('Documentation on date and time formatting.') . "

\n"; + echo "\t

" . __('Documentation on date and time formatting.') . "

\n"; ?>
@@ -336,7 +353,7 @@ if ( ! empty( $languages ) || ! empty( $translations ) ) {