WordPress.org

Make WordPress Core

Changeset 36665


Ignore:
Timestamp:
02/24/2016 01:21:05 AM (2 years ago)
Author:
SergeyBiryukov
Message:

I18N: Remove <code> tags from translatable strings in wp-admin/install.php.

Props ramiy.
Fixes #35738.

File:
1 edited

Legend:

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

    r36553 r36665  
    212212if ( is_blog_installed() ) {
    213213    display_header();
    214     die( '<h1>' . __( 'Already Installed' ) . '</h1><p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p><p class="step"><a href="' . esc_url( wp_login_url() ) . '" class="button button-large">' . __( 'Log In' ) . '</a></p></body></html>' );
     214    die(
     215        '<h1>' . __( 'Already Installed' ) . '</h1>' .
     216        '<p>' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '</p>' .
     217        '<p class="step"><a href="' . esc_url( wp_login_url() ) . '" class="button button-large">' . __( 'Log In' ) . '</a></p>' .
     218        '</body></html>'
     219    );
    215220}
    216221
     
    242247if ( ! is_string( $wpdb->base_prefix ) || '' === $wpdb->base_prefix ) {
    243248    display_header();
    244     die( '<h1>' . __( 'Configuration Error' ) . '</h1><p>' . __( 'Your <code>wp-config.php</code> file has an empty database table prefix, which is not supported.' ) . '</p></body></html>' );
     249    die(
     250        '<h1>' . __( 'Configuration Error' ) . '</h1>' .
     251        '<p>' . sprintf(
     252            /* translators: %s: wp-config.php */
     253            __( 'Your %s file has an empty database table prefix, which is not supported.' ),
     254            '<code>wp-config.php</code>'
     255        ) . '</p></body></html>'
     256    );
    245257}
    246258
     
    248260if ( defined( 'DO_NOT_UPGRADE_GLOBAL_TABLES' ) ) {
    249261    display_header();
    250     die( '<h1>' . __( 'Configuration Error' ) . '</h1><p>' . __( 'The constant DO_NOT_UPGRADE_GLOBAL_TABLES cannot be defined when installing WordPress.' ) . '</p></body></html>' );
     262    die(
     263        '<h1>' . __( 'Configuration Error' ) . '</h1>' .
     264        '<p>' . sprintf(
     265            /* translators: %s: DO_NOT_UPGRADE_GLOBAL_TABLES */
     266            __( 'The constant %s cannot be defined when installing WordPress.' ),
     267            '<code>DO_NOT_UPGRADE_GLOBAL_TABLES</code>'
     268        ) . '</p></body></html>'
     269    );
    251270}
    252271
Note: See TracChangeset for help on using the changeset viewer.