Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 years 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/import.php

    r45926 r45932  
    6363        <div class="error">
    6464                <p><strong><?php _e( 'ERROR:' ); ?></strong>
    65                                                                 <?php
    66                                                                 /* translators: %s: importer slug */
    67                                                                 printf( __( 'The %s importer is invalid or is not installed.' ), '<strong>' . esc_html( $_GET['invalid'] ) . '</strong>' );
    68                                                                 ?>
     65                        <?php
     66                        /* translators: %s: Importer slug. */
     67                        printf( __( 'The %s importer is invalid or is not installed.' ), '<strong>' . esc_html( $_GET['invalid'] ) . '</strong>' );
     68                        ?>
    6969                </p>
    7070        </div>
     
    129129                                                '<a href="%s" aria-label="%s">%s</a>',
    130130                                                esc_url( $url ),
    131                                                 /* translators: %s: Importer name */
     131                                                /* translators: %s: Importer name. */
    132132                                                esc_attr( sprintf( __( 'Run %s' ), $data[0] ) ),
    133133                                                __( 'Run Importer' )
     
    156156                                                esc_attr( $plugin_slug ),
    157157                                                esc_attr( $data[0] ),
    158                                                 /* translators: %s: Importer name */
     158                                                /* translators: %s: Importer name. */
    159159                                                esc_attr( sprintf( __( 'Install %s now' ), $data[0] ) ),
    160160                                                __( 'Install Now' )
     
    162162                                } else {
    163163                                        $action = sprintf(
    164                                                 /* translators: URL to wp-admin/import.php */
     164                                                /* translators: URL to Import screen on the main site. */
    165165                                                __( 'This importer is not installed. Please install importers from <a href="%s">the main site</a>.' ),
    166166                                                get_admin_url( get_current_network_id(), 'import.php' )
     
    178178                                '<a href="%1$s" aria-label="%2$s">%3$s</a>',
    179179                                esc_url( $url ),
    180                                 /* translators: %s: Importer name */
     180                                /* translators: %s: Importer name. */
    181181                                esc_attr( sprintf( __( 'Run %s' ), $data[0] ) ),
    182182                                __( 'Run Importer' )
     
    201201                                ' | <a href="%1$s" class="thickbox open-plugin-details-modal" aria-label="%2$s">%3$s</a>',
    202202                                esc_url( $url ),
    203                                 /* translators: %s: Importer name */
     203                                /* translators: %s: Importer name. */
    204204                                esc_attr( sprintf( __( 'More information about %s' ), $data[0] ) ),
    205205                                __( 'Details' )
     
    225225if ( current_user_can( 'install_plugins' ) ) {
    226226        echo '<p>' . sprintf(
    227                 /* translators: %s: URL to Add Plugins screen */
     227                /* translators: %s: URL to Add Plugins screen. */
    228228                __( 'If the importer you need is not listed, <a href="%s">search the plugin directory</a> to see if an importer is available.' ),
    229229                esc_url( network_admin_url( 'plugin-install.php?tab=search&type=tag&s=importer' ) )
Note: See TracChangeset for help on using the changeset viewer.