Ticket #34579: 34579.2.patch
| File 34579.2.patch, 5.3 KB (added by , 11 years ago) |
|---|
-
wp-admin/setup-config.php
54 54 55 55 // Check if wp-config.php exists above the root directory but is not part of another install 56 56 if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) { 57 wp_die( '<p>' . sprintf( __( "The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href=' install.php'>installing now</a>."), 'install.php' ) . '</p>' );57 wp_die( '<p>' . sprintf( __( "The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='%s'>installing now</a>."), 'install.php' ) . '</p>' ); 58 58 } 59 59 60 60 $step = isset( $_GET['step'] ) ? (int) $_GET['step'] : -1; … … 139 139 <li><?php _e( 'Table prefix (if you want to run more than one WordPress in a single database)' ); ?></li> 140 140 </ol> 141 141 <p> 142 <?php _e( 'We’re going to use this information to create a <code>wp-config.php</code> file.' ); ?>143 <strong><?php _e( "If for any reason this automatic file creation doesn’t work, don’t worry. All this does is fill in the database information to a configuration file. You may also simply open <code>wp-config-sample.php</code> in a text editor, fill in your information, and save it as <code>wp-config.php</code>."); ?></strong>144 <?php _e( "Need more help? <a href='https://codex.wordpress.org/Editing_wp-config.php'>We got it</a>."); ?>142 <?php printf( __( 'We’re going to use this information to create a %s file.' ), '<code>wp-config.php</code>' ); ?> 143 <strong><?php printf( __( 'If for any reason this automatic file creation doesn’t work, don’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.' ), '<code>wp-config-sample.php</code>', '<code>wp-config.php</code>' ); ?></strong> 144 <?php printf( __( 'Need more help? <a href="%s">We got it</a>.' ), __( 'https://codex.wordpress.org/Editing_wp-config.php' ) ); ?> 145 145 </p> 146 <p><?php _e( "In all likelihood, these items were supplied to you by your Web Host. If you don’t have this information, then you will need to contact them before you can continue. If you’re all ready…"); ?></p>146 <p><?php _e( 'In all likelihood, these items were supplied to you by your Web Host. If you don’t have this information, then you will need to contact them before you can continue. If you’re all ready…' ); ?></p> 147 147 148 148 <p class="step"><a href="<?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let’s go!' ); ?></a></p> 149 149 <?php … … 156 156 setup_config_display_header(); 157 157 ?> 158 158 <form method="post" action="setup-config.php?step=2"> 159 <p><?php _e( "Below you should enter your database connection details. If you’re not sure about these, contact your host."); ?></p>159 <p><?php _e( 'Below you should enter your database connection details. If you’re not sure about these, contact your host.' ); ?></p> 160 160 <table class="form-table"> 161 161 <tr> 162 162 <th scope="row"><label for="dbname"><?php _e( 'Database Name' ); ?></label></th> … … 176 176 <tr> 177 177 <th scope="row"><label for="dbhost"><?php _e( 'Database Host' ); ?></label></th> 178 178 <td><input name="dbhost" id="dbhost" type="text" size="25" value="localhost" /></td> 179 <td><?php _e( 'You should be able to get this info from your web host, if <code>localhost</code> doesn’t work.' ); ?></td>179 <td><?php printf( __( 'You should be able to get this info from your web host, if %s doesn’t work.' ), '<code>localhost</code>' ); ?></td> 180 180 </tr> 181 181 <tr> 182 182 <th scope="row"><label for="prefix"><?php _e( 'Table Prefix' ); ?></label></th> … … 307 307 if ( ! is_writable(ABSPATH) ) : 308 308 setup_config_display_header(); 309 309 ?> 310 <p><?php _e( "Sorry, but I can’t write the <code>wp-config.php</code> file."); ?></p>311 <p><?php _e( 'You can create the <code>wp-config.php</code> manually and paste the following text into it.' ); ?></p>310 <p><?php printf( __( 'Sorry, but I can’t write the %s file.' ), '<code>wp-config.php</code>' ); ?></p> 311 <p><?php printf( __( 'You can create the %s manually and paste the following text into it.' ), '<code>wp-config.php</code>' ); ?></p> 312 312 <textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php 313 313 foreach ( $config_file as $line ) { 314 314 echo htmlentities($line, ENT_COMPAT, 'UTF-8'); … … 344 344 chmod( $path_to_wp_config, 0666 ); 345 345 setup_config_display_header(); 346 346 ?> 347 <p><?php _e( "All right, sparky! You’ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to…"); ?></p>347 <p><?php _e( 'All right, sparky! You’ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to…' ); ?></p> 348 348 349 349 <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install' ); ?></a></p> 350 350 <?php
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)