Make WordPress Core

Changeset 35557


Ignore:
Timestamp:
11/06/2015 05:21:33 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Remove <code> tags from translatable strings in wp-admin/setup-config.php.

Add translator comments.

Props ramiy.
Fixes #34579.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/setup-config.php

    r35508 r35557  
    5151// Check if wp-config.php has been created
    5252if ( 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    );
    5459
    5560// Check if wp-config.php exists above the root directory but is not part of another install
    5661if ( @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    );
    5868}
    5969
     
    140150    <li><?php _e( 'Table prefix (if you want to run more than one WordPress in a single database)' ); ?></li>
    141151</ol>
    142 <p>
    143     <?php _e( 'We&#8217;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&#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 <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&#8217;t have this information, then you will need to contact them before you can continue. If you&#8217;re all ready&hellip;" ); ?></p>
     152<p><?php
     153    /* translators: %s: wp-config.php */
     154    printf( __( 'We&#8217;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&#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.' ),
     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&#8217;t have this information, then you will need to contact them before you can continue. If you&#8217;re all ready&hellip;' ); ?></p>
    148172
    149173<p class="step"><a href="<?php echo $step_1; ?>" class="button button-large"><?php _e( 'Let&#8217;s go!' ); ?></a></p>
     
    159183<h1 class="screen-reader-text"><?php _e( 'Setup your database connection' ) ?></h1>
    160184<form method="post" action="setup-config.php?step=2">
    161     <p><?php _e( "Below you should enter your database connection details. If you&#8217;re not sure about these, contact your host." ); ?></p>
     185    <p><?php _e( 'Below you should enter your database connection details. If you&#8217;re not sure about these, contact your host.' ); ?></p>
    162186    <table class="form-table">
    163187        <tr>
     
    179203            <th scope="row"><label for="dbhost"><?php _e( 'Database Host' ); ?></label></th>
    180204            <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&#8217;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&#8217;t work.' ),'<code>localhost</code>' );
     208            ?></td>
    182209        </tr>
    183210        <tr>
     
    310337        setup_config_display_header();
    311338?>
    312 <p><?php _e( "Sorry, but I can&#8217;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&#8217;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>
    314347<textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php
    315348        foreach ( $config_file as $line ) {
     
    348381?>
    349382<h1 class="screen-reader-text"><?php _e( 'Successful database connection' ) ?></h1>
    350 <p><?php _e( "All right, sparky! You&#8217;ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to&hellip;" ); ?></p>
     383<p><?php _e( 'All right, sparky! You&#8217;ve made it through this part of the installation. WordPress can now communicate with your database. If you are ready, time now to&hellip;' ); ?></p>
    351384
    352385<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.