Changeset 35557
- Timestamp:
- 11/06/2015 05:21:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/setup-config.php
r35508 r35557 51 51 // Check if wp-config.php has been created 52 52 if ( file_exists( ABSPATH . 'wp-config.php' ) ) 53 wp_die( '<p>' . sprintf( __( "The file 'wp-config.php' already exists. 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>' ); 53 wp_die( '<p>' . sprintf( 54 /* translators: %s: install.php */ 55 __( "The file 'wp-config.php' already exists. 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>." ), 56 'install.php' 57 ) . '</p>' 58 ); 54 59 55 60 // Check if wp-config.php exists above the root directory but is not part of another install 56 61 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>' ); 62 wp_die( '<p>' . sprintf( 63 /* translators: %s: install.php */ 64 __( "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>." ), 65 'install.php' 66 ) . '</p>' 67 ); 58 68 } 59 69 … … 140 150 <li><?php _e( 'Table prefix (if you want to run more than one WordPress in a single database)' ); ?></li> 141 151 </ol> 142 <p> 143 <?php _e( 'We’re going to use this information to create a <code>wp-config.php</code> file.' ); ?> 144 <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> 145 <?php _e( "Need more help? <a href='https://codex.wordpress.org/Editing_wp-config.php'>We got it</a>." ); ?> 146 </p> 147 <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> 152 <p><?php 153 /* translators: %s: wp-config.php */ 154 printf( __( 'We’re going to use this information to create a %s file.' ), 155 '<code>wp-config.php</code>' 156 ); 157 ?> 158 <strong><?php 159 /* translators: 1: wp-config-sample.php, 2: wp-config.php */ 160 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.' ), 161 '<code>wp-config-sample.php</code>', 162 '<code>wp-config.php</code>' 163 ); 164 ?></strong> 165 <?php 166 /* translators: %s: Codex URL */ 167 printf( __( 'Need more help? <a href="%s">We got it</a>.' ), 168 __( 'https://codex.wordpress.org/Editing_wp-config.php' ) 169 ); 170 ?></p> 171 <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> 148 172 149 173 <p class="step"><a href="<?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let’s go!' ); ?></a></p> … … 159 183 <h1 class="screen-reader-text"><?php _e( 'Setup your database connection' ) ?></h1> 160 184 <form method="post" action="setup-config.php?step=2"> 161 <p><?php _e( "Below you should enter your database connection details. If you’re not sure about these, contact your host."); ?></p>185 <p><?php _e( 'Below you should enter your database connection details. If you’re not sure about these, contact your host.' ); ?></p> 162 186 <table class="form-table"> 163 187 <tr> … … 179 203 <th scope="row"><label for="dbhost"><?php _e( 'Database Host' ); ?></label></th> 180 204 <td><input name="dbhost" id="dbhost" type="text" size="25" value="localhost" /></td> 181 <td><?php _e( 'You should be able to get this info from your web host, if <code>localhost</code> doesn’t work.' ); ?></td> 205 <td><?php 206 /* translators: %s: localhost */ 207 printf( __( 'You should be able to get this info from your web host, if %s doesn’t work.' ),'<code>localhost</code>' ); 208 ?></td> 182 209 </tr> 183 210 <tr> … … 310 337 setup_config_display_header(); 311 338 ?> 312 <p><?php _e( "Sorry, but I can’t write the <code>wp-config.php</code> file." ); ?></p> 313 <p><?php _e( 'You can create the <code>wp-config.php</code> manually and paste the following text into it.' ); ?></p> 339 <p><?php 340 /* translators: %s: wp-config.php */ 341 printf( __( 'Sorry, but I can’t write the %s file.' ), '<code>wp-config.php</code>' ); 342 ?></p> 343 <p><?php 344 /* translators: %s: wp-config.php */ 345 printf( __( 'You can create the %s manually and paste the following text into it.' ), '<code>wp-config.php</code>' ); 346 ?></p> 314 347 <textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php 315 348 foreach ( $config_file as $line ) { … … 348 381 ?> 349 382 <h1 class="screen-reader-text"><?php _e( 'Successful database connection' ) ?></h1> 350 <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>383 <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> 351 384 352 385 <p class="step"><a href="<?php echo $install; ?>" class="button button-large"><?php _e( 'Run the install' ); ?></a></p>
Note: See TracChangeset
for help on using the changeset viewer.