WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (6 weeks ago)
Author:
SergeyBiryukov
Message:

I18N: Capitalize translator comments consistently, add trailing punctuation.

Includes minor code layout fixes.

See #44360.

File:
1 edited

Legend:

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

    r45926 r45932  
    6464        echo '<h2 class="screen-reader-text">' . __( 'Check secret keys' ) . '</h2>';
    6565
    66         /* translators: 1: wp-config.php, 2: secret key service URL */
     66        /* translators: 1: wp-config.php, 2: Secret key service URL. */
    6767        echo '<p>' . sprintf( __( 'While you are editing your %1$s file, take a moment to make sure you have all 8 keys and that they are unique. You can generate these using the <a href="%2$s">WordPress.org secret key service</a>.' ), '<code>wp-config.php</code>', 'https://api.wordpress.org/secret-key/1.1/salt/' ) . '</p>';
    6868    }
     
    9898        echo '<p>';
    9999        if ( 'OK' == $check->Msg_text ) {
    100             /* translators: %s: table name */
     100            /* translators: %s: Table name. */
    101101            printf( __( 'The %s table is okay.' ), "<code>$table</code>" );
    102102        } else {
    103             /* translators: 1: table name, 2: error message, */
     103            /* translators: 1: Table name, 2: Error message. */
    104104            printf( __( 'The %1$s table is not okay. It is reporting the following error: %2$s. WordPress will attempt to repair this table&hellip;' ), "<code>$table</code>", "<code>$check->Msg_text</code>" );
    105105
     
    108108            echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
    109109            if ( 'OK' == $check->Msg_text ) {
    110                 /* translators: %s: table name */
     110                /* translators: %s: Table name. */
    111111                printf( __( 'Successfully repaired the %s table.' ), "<code>$table</code>" );
    112112            } else {
    113                 /* translators: 1: table name, 2: error message, */
     113                /* translators: 1: Table name, 2: Error message. */
    114114                echo sprintf( __( 'Failed to repair the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$check->Msg_text</code>" ) . '<br />';
    115115                $problems[ $table ] = $check->Msg_text;
     
    123123            echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
    124124            if ( 'Table is already up to date' == $check->Msg_text ) {
    125                 /* translators: %s: table name */
     125                /* translators: %s: Table name. */
    126126                printf( __( 'The %s table is already optimized.' ), "<code>$table</code>" );
    127127            } else {
     
    130130                echo '<br />&nbsp;&nbsp;&nbsp;&nbsp;';
    131131                if ( 'OK' == $check->Msg_text || 'Table is already up to date' == $check->Msg_text ) {
    132                     /* translators: %s: table name */
     132                    /* translators: %s: Table name. */
    133133                    printf( __( 'Successfully optimized the %s table.' ), "<code>$table</code>" );
    134134                } else {
    135                     /* translators: 1: table name, 2: error message, */
     135                    /* translators: 1: Table name. 2: Error message. */
    136136                    printf( __( 'Failed to optimize the %1$s table. Error: %2$s' ), "<code>$table</code>", "<code>$check->Msg_text</code>" );
    137137                }
     
    143143    if ( $problems ) {
    144144        printf(
    145             /* translators: %s: URL to "Fixing WordPress" forum */
     145            /* translators: %s: URL to "Fixing WordPress" forum. */
    146146            '<p>' . __( 'Some database problems could not be repaired. Please copy-and-paste the following list of errors to the <a href="%s">WordPress support forums</a> to get additional assistance.' ) . '</p>',
    147147            __( 'https://wordpress.org/support/forum/how-to-and-troubleshooting' )
Note: See TracChangeset for help on using the changeset viewer.