wp/wp-admin/setup-config.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
equal deleted inserted replaced
18:be944660c56a 19:3d72ae0968f4
    86 /**
    86 /**
    87  * Display setup wp-config.php file header.
    87  * Display setup wp-config.php file header.
    88  *
    88  *
    89  * @ignore
    89  * @ignore
    90  * @since 2.3.0
    90  * @since 2.3.0
    91  *
       
    92  * @global string    $wp_local_package Locale code of the package.
       
    93  * @global WP_Locale $wp_locale        WordPress date and time locale object.
       
    94  *
    91  *
    95  * @param string|string[] $body_classes Class attribute values for the body tag.
    92  * @param string|string[] $body_classes Class attribute values for the body tag.
    96  */
    93  */
    97 function setup_config_display_header( $body_classes = array() ) {
    94 function setup_config_display_header( $body_classes = array() ) {
    98 	$body_classes   = (array) $body_classes;
    95 	$body_classes   = (array) $body_classes;
   159 		if ( ! empty( $loaded_language ) ) {
   156 		if ( ! empty( $loaded_language ) ) {
   160 			$step_1 .= '&language=' . $loaded_language;
   157 			$step_1 .= '&language=' . $loaded_language;
   161 		}
   158 		}
   162 		?>
   159 		?>
   163 <h1 class="screen-reader-text"><?php _e( 'Before getting started' ); ?></h1>
   160 <h1 class="screen-reader-text"><?php _e( 'Before getting started' ); ?></h1>
   164 <p><?php _e( 'Welcome to WordPress. Before getting started, we need some information on the database. You will need to know the following items before proceeding.' ); ?></p>
   161 <p><?php _e( 'Welcome to WordPress. Before getting started, you will need to know the following items.' ); ?></p>
   165 <ol>
   162 <ol>
   166 	<li><?php _e( 'Database name' ); ?></li>
   163 	<li><?php _e( 'Database name' ); ?></li>
   167 	<li><?php _e( 'Database username' ); ?></li>
   164 	<li><?php _e( 'Database username' ); ?></li>
   168 	<li><?php _e( 'Database password' ); ?></li>
   165 	<li><?php _e( 'Database password' ); ?></li>
   169 	<li><?php _e( 'Database host' ); ?></li>
   166 	<li><?php _e( 'Database host' ); ?></li>
   171 </ol>
   168 </ol>
   172 <p>
   169 <p>
   173 		<?php
   170 		<?php
   174 		printf(
   171 		printf(
   175 			/* translators: %s: wp-config.php */
   172 			/* translators: %s: wp-config.php */
   176 			__( 'We&#8217;re going to use this information to create a %s file.' ),
   173 			__( 'This information is being used to create a %s file.' ),
   177 			'<code>wp-config.php</code>'
   174 			'<code>wp-config.php</code>'
   178 		);
   175 		);
   179 		?>
   176 		?>
   180 	<strong>
   177 	<strong>
   181 		<?php
   178 		<?php
   182 		printf(
   179 		printf(
   183 			/* translators: 1: wp-config-sample.php, 2: wp-config.php */
   180 			/* translators: 1: wp-config-sample.php, 2: wp-config.php */
   184 			__( 'If for any reason this automatic file creation doesn&#8217;t work, don&#8217;t worry. All this does is fill in the database information to a configuration file. You may also simply open %1$s in a text editor, fill in your information, and save it as %2$s.' ),
   181 			__( 'If for any reason this automatic file creation does not work, do not worry. All this does is fill in the database information to a configuration file. You may also simply open %1$s in a text editor, fill in your information, and save it as %2$s.' ),
   185 			'<code>wp-config-sample.php</code>',
   182 			'<code>wp-config-sample.php</code>',
   186 			'<code>wp-config.php</code>'
   183 			'<code>wp-config.php</code>'
   187 		);
   184 		);
   188 		?>
   185 		?>
   189 	</strong>
   186 	</strong>
   190 		<?php
   187 		<?php
   191 		printf(
   188 		printf(
   192 			/* translators: %s: Documentation URL. */
   189 			/* translators: 1: Documentation URL, 2: wp-config.php */
   193 			__( 'Need more help? <a href="%s">We got it</a>.' ),
   190 			__( 'Need more help? <a href="%1$s">Read the support article on %2$s</a>.' ),
   194 			__( 'https://wordpress.org/support/article/editing-wp-config-php/' )
   191 			__( 'https://wordpress.org/support/article/editing-wp-config-php/' ),
       
   192 			'<code>wp-config.php</code>'
   195 		);
   193 		);
   196 		?>
   194 		?>
   197 </p>
   195 </p>
   198 <p><?php _e( 'In all likelihood, these items were supplied to you by your Web Host. If you don&#8217;t have this information, then you will need to contact them before you can continue. If you&#8217;re all ready&hellip;' ); ?></p>
   196 <p><?php _e( 'In all likelihood, these items were supplied to you by your web host. If you do not have this information, then you will need to contact them before you can continue. If you are ready&hellip;' ); ?></p>
   199 
   197 
   200 <p class="step"><a href="<?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let&#8217;s go!' ); ?></a></p>
   198 <p class="step"><a href="<?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let&#8217;s go!' ); ?></a></p>
   201 		<?php
   199 		<?php
   202 		break;
   200 		break;
   203 
   201 
   209 
   207 
   210 		$autofocus = wp_is_mobile() ? '' : ' autofocus';
   208 		$autofocus = wp_is_mobile() ? '' : ' autofocus';
   211 		?>
   209 		?>
   212 <h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1>
   210 <h1 class="screen-reader-text"><?php _e( 'Set up your database connection' ); ?></h1>
   213 <form method="post" action="setup-config.php?step=2">
   211 <form method="post" action="setup-config.php?step=2">
   214 	<p><?php _e( 'Below you should enter your database connection details. If you&#8217;re not sure about these, contact your host.' ); ?></p>
   212 	<p><?php _e( 'Below you should enter your database connection details. If you are not sure about these, contact your host.' ); ?></p>
   215 	<table class="form-table" role="presentation">
   213 	<table class="form-table" role="presentation">
   216 		<tr>
   214 		<tr>
   217 			<th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th>
   215 			<th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th>
   218 			<td><input name="dbname" id="dbname" type="text" aria-describedby="dbname-desc" size="25" value="wordpress"<?php echo $autofocus; ?>/></td>
   216 			<td><input name="dbname" id="dbname" type="text" aria-describedby="dbname-desc" size="25" value="wordpress"<?php echo $autofocus; ?>/></td>
   219 			<td id="dbname-desc"><?php _e( 'The name of the database you want to use with WordPress.' ); ?></td>
   217 			<td id="dbname-desc"><?php _e( 'The name of the database you want to use with WordPress.' ); ?></td>
   232 			<th scope="row"><label for="dbhost"><?php _e( 'Database Host' ); ?></label></th>
   230 			<th scope="row"><label for="dbhost"><?php _e( 'Database Host' ); ?></label></th>
   233 			<td><input name="dbhost" id="dbhost" type="text" aria-describedby="dbhost-desc" size="25" value="localhost" /></td>
   231 			<td><input name="dbhost" id="dbhost" type="text" aria-describedby="dbhost-desc" size="25" value="localhost" /></td>
   234 			<td id="dbhost-desc">
   232 			<td id="dbhost-desc">
   235 			<?php
   233 			<?php
   236 				/* translators: %s: localhost */
   234 				/* translators: %s: localhost */
   237 				printf( __( 'You should be able to get this info from your web host, if %s doesn&#8217;t work.' ), '<code>localhost</code>' );
   235 				printf( __( 'You should be able to get this info from your web host, if %s does not work.' ), '<code>localhost</code>' );
   238 			?>
   236 			?>
   239 			</td>
   237 			</td>
   240 		</tr>
   238 		</tr>
   241 		<tr>
   239 		<tr>
   242 			<th scope="row"><label for="prefix"><?php _e( 'Table Prefix' ); ?></label></th>
   240 			<th scope="row"><label for="prefix"><?php _e( 'Table Prefix' ); ?></label></th>