Make WordPress Core

Changeset 35547


Ignore:
Timestamp:
11/05/2015 11:58:20 PM (9 years ago)
Author:
SergeyBiryukov
Message:

Remove <code> tags from translatable strings in wp-load.php.

Add translator comments.

Props ramiy.
Fixes #34574.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-load.php

    r34867 r35547  
    7373
    7474    // Die with an error message
    75     $die  = __( "There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started." ) . '</p>';
    76     $die .= '<p>' . __( "Need more help? <a href='https://codex.wordpress.org/Editing_wp-config.php'>We got it</a>." ) . '</p>';
    77     $die .= '<p>' . __( "You can create a <code>wp-config.php</code> file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ) . '</p>';
     75    $die  = sprintf(
     76        /* translators: %s: wp-config.php */
     77        __( "There doesn't seem to be a %s file. I need this before we can get started." ),
     78        '<code>wp-config.php</code>'
     79    ) . '</p>';
     80    $die .= '<p>' . sprintf(
     81        /* translators: %s: Codex URL */
     82        __( "Need more help? <a href='%s'>We got it</a>." ),
     83        __( 'https://codex.wordpress.org/Editing_wp-config.php' )
     84    ) . '</p>';
     85    $die .= '<p>' . sprintf(
     86        /* translators: %s: wp-config.php */
     87        __( "You can create a %s file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file." ),
     88        '<code>wp-config.php</code>'
     89    ) . '</p>';
    7890    $die .= '<p><a href="' . $path . '" class="button button-large">' . __( "Create a Configuration File" ) . '</a>';
    7991
Note: See TracChangeset for help on using the changeset viewer.