X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/9e77185fafaf4e60e2b73821e0e4b9b1a11fb85f..c81aba3d563f7459dc79140e4c5be67bcf506b92:/wp-admin/options-general.php diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 70118855..220b07e8 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -9,52 +9,17 @@ /** WordPress Administration Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); +/** WordPress Translation Install API */ +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.' ) ); $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'); +$timezone_format = _x('Y-m-d H:i:s', 'timezone date format'); -/** - * Display JavaScript on the page. - * - * @since 3.5.0 - */ -function options_general_add_js() { -?> - -' . __('The fields on this screen determine some of the basics of your site setup.') . '

' . @@ -65,7 +30,8 @@ if ( ! is_multisite() ) { '

' . __('If you want site visitors to be able to register themselves, as opposed to by the site administrator, check the membership box. A default user role can be set for all new users, whether self-registered or registered by the site admin.') . '

'; } -$options_help .= '

' . __('UTC means Coordinated Universal Time.') . '

' . +$options_help .= '

' . __( 'You can set the language, and the translation files will be automatically downloaded and installed (available if your filesystem is writable).' ) . '

' . + '

' . __( 'UTC means Coordinated Universal Time.' ) . '

' . '

' . __( 'You must click the Save Changes button at the bottom of the screen for new settings to take effect.' ) . '

'; get_current_screen()->add_help_tab( array( @@ -76,7 +42,7 @@ get_current_screen()->add_help_tab( array( get_current_screen()->set_help_sidebar( '

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

' . - '

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

' . + '

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

' . '

' . __('Support Forums') . '

' ); @@ -84,7 +50,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
-

+

@@ -96,8 +62,8 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); - -

+ +

@@ -106,13 +72,15 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); - class="regular-text code" /> -

to be different from the directory you installed WordPress.'); ?>

+ class="regular-text code" /> + +

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

+ - - -

+ + +

@@ -129,14 +97,20 @@ include( ABSPATH . 'wp-admin/admin-header.php' ); - - -

The new address will not become active until confirmed.') ?>

+ + +

The new address will not become active until confirmed.' ) ?>

-

%1$s. Cancel'), esc_html( $new_admin_email ), esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) ); ?>

+

Cancel' ), + '' . esc_html( $new_admin_email ) . '', + esc_url( admin_url( 'options.php?dismiss=new_admin_email' ) ) + ); +?>

@@ -167,15 +141,25 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists - - UTC time is %s'), date_i18n($timezone_format, false, 'gmt')); ?> + UTC time is %s' ), + '' . date_i18n( $timezone_format, false, 'gmt' ) . '' + ); + ?> - %1$s'), date_i18n($timezone_format)); ?> + ' . date_i18n( $timezone_format ) . '' + ); + ?> -

+


@@ -207,12 +191,19 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists if ( $found ) { echo ' '; $message = $tr['isdst'] ? - __('Daylight saving time begins on: %s.') : - __('Standard time begins on: %s.'); + /* translators: %s: date and time */ + __( 'Daylight saving time begins on: %s.') : + /* translators: %s: date and time */ + __( 'Standard time begins on: %s.' ); // Add the difference between the current offset and the new offset to ts to get the correct transition time from date_i18n(). - printf( $message, date_i18n(get_option('date_format') . ' ' . get_option('time_format'), $tr['ts'] + ($tz_offset - $tr['offset']) ) ); + printf( $message, + '' . date_i18n( + get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), + $tr['ts'] + ( $tz_offset - $tr['offset'] ) + ) . '' + ); } else { - _e('This timezone does not observe daylight saving time.'); + _e( 'This timezone does not observe daylight saving time.' ); } } // Set back to UTC. @@ -246,12 +237,13 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists echo " checked='checked'"; $custom = false; } - echo ' /> ' . date_i18n( $format ) . "
\n"; + echo ' /> ' . date_i18n( $format ) . "
\n"; } echo ' ' . date_i18n( get_option('date_format') ) . " \n"; + echo '/> ' . __( 'Custom:' ) . ' ' . __( 'enter a custom date format in the following field' ) . "\n"; + echo ' ' . __( 'example:' ) . ' ' . date_i18n( get_option('date_format') ) . " \n"; ?> @@ -278,14 +270,15 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists echo " checked='checked'"; $custom = false; } - echo ' /> ' . date_i18n( $format ) . "
\n"; + echo ' /> ' . date_i18n( $format ) . "
\n"; } echo ' ' . date_i18n( get_option('time_format') ) . " \n"; + echo '/> ' . __( 'Custom:' ) . ' ' . __( 'enter a custom time format in the following field' ) . "\n"; + echo ' ' . __( '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"; ?> @@ -294,6 +287,11 @@ if ( empty($tzstring) ) { // Create a UTC+- zone if no timezone string exists