Make WordPress Core


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

    r45926 r45932  
    334334                        foreach ( $plugin_info as $plugin ) {
    335335                            if ( $plugin['is_uninstallable'] ) {
    336                                 /* translators: 1: plugin name, 2: plugin author */
     336                                /* translators: 1: Plugin name, 2: Plugin author. */
    337337                                echo '<li>', sprintf( __( '%1$s by %2$s (will also <strong>delete its data</strong>)' ), '<strong>' . $plugin['Name'] . '</strong>', '<em>' . $plugin['AuthorName'] . '</em>' ), '</li>';
    338338                                $data_to_delete = true;
    339339                            } else {
    340                                 /* translators: 1: plugin name, 2: plugin author */
     340                                /* translators: 1: Plugin name, 2: Plugin author. */
    341341                                echo '<li>', sprintf( _x( '%1$s by %2$s', 'plugin' ), '<strong>' . $plugin['Name'] . '</strong>', '<em>' . $plugin['AuthorName'] ) . '</em>', '</li>';
    342342                            }
     
    442442                '<p>' . __( 'The search for installed plugins will search for terms in their name, description, or author.' ) . ' <span id="live-search-desc" class="hide-if-no-js">' . __( 'The search results will be updated as you type.' ) . '</span></p>' .
    443443                '<p>' . sprintf(
    444                     /* translators: %s: WordPress Plugin Directory URL */
     444                    /* translators: %s: WordPress Plugin Directory URL. */
    445445                    __( 'If you would like to see more plugins to choose from, click on the &#8220;Add New&#8221; button and you will be able to browse or search for additional plugins from the <a href="%s">WordPress Plugin Directory</a>. Plugins in the WordPress Plugin Directory are designed and developed by third parties, and are compatible with the license WordPress uses. Oh, and they&#8217;re free!' ),
    446446                    __( 'https://wordpress.org/plugins/' )
     
    455455                '<p>' . __( 'Most of the time, plugins play nicely with the core of WordPress and with other plugins. Sometimes, though, a plugin&#8217;s code will get in the way of another plugin, causing compatibility issues. If your site starts doing strange things, this may be the problem. Try deactivating all your plugins and re-activating them in various combinations until you isolate which one(s) caused the issue.' ) . '</p>' .
    456456                '<p>' . sprintf(
    457                     /* translators: WP_PLUGIN_DIR constant value */
     457                    /* translators: WP_PLUGIN_DIR constant value. */
    458458                    __( 'If something goes wrong with a plugin and you can&#8217;t use WordPress, delete or rename that file in the %s directory and it will be automatically deactivated.' ),
    459459                    '<code>' . WP_PLUGIN_DIR . '</code>'
     
    486486        echo '<div id="message" class="error"><p>';
    487487        printf(
    488             /* translators: 1: plugin file, 2: error message */
     488            /* translators: 1: Plugin file, 2: Error message. */
    489489            __( 'The plugin %1$s has been deactivated due to an error: %2$s' ),
    490490            '<code>' . esc_html( $plugin_file ) . '</code>',
     
    503503    } elseif ( isset( $_GET['charsout'] ) ) {
    504504        $errmsg = sprintf(
    505             /* translators: %d: number of characters */
     505            /* translators: %d: Number of characters. */
    506506            _n(
    507507                'The plugin generated %d character of <strong>unexpected output</strong> during activation.',
     
    547547                <?php
    548548                printf(
    549                     /* translators: %s: error message */
     549                    /* translators: %s: Error message. */
    550550                    __( 'Plugin could not be deleted due to an error: %s' ),
    551551                    $delete_result->get_error_message()
     
    596596
    597597if ( strlen( $s ) ) {
    598     /* translators: %s: search keywords */
     598    /* translators: %s: Search query. */
    599599    printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', esc_html( urldecode( $s ) ) );
    600600}
Note: See TracChangeset for help on using the changeset viewer.