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' );want your site home page to be different from your WordPress installation directory.' ); ?>
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' )
);
?>
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'); ?> +