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/includes/class-wp-themes-list-table.php

    r45926 r45932  
    9999                        if ( current_user_can( 'install_themes' ) && current_user_can( 'manage_network_themes' ) ) {
    100100                                printf(
    101                                         /* translators: 1: URL to Themes tab on Edit Site screen, 2: URL to Add Themes screen */
     101                                        /* translators: 1: URL to Themes tab on Edit Site screen, 2: URL to Add Themes screen. */
    102102                                        __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%1$s">enable</a> or <a href="%2$s">install</a> more themes.' ),
    103103                                        network_admin_url( 'site-themes.php?id=' . $blog_id ),
    … …  
    108108                        } elseif ( current_user_can( 'manage_network_themes' ) ) {
    109109                                printf(
    110                                         /* translators: %s: URL to Themes tab on Edit Site screen */
     110                                        /* translators: %s: URL to Themes tab on Edit Site screen. */
    111111                                        __( 'You only have one theme enabled for this site right now. Visit the Network Admin to <a href="%s">enable</a> more themes.' ),
    112112                                        network_admin_url( 'site-themes.php?id=' . $blog_id )
    … …  
    119119                        if ( current_user_can( 'install_themes' ) ) {
    120120                                printf(
    121                                         /* translators: %s: URL to Add Themes screen */
     121                                        /* translators: %s: URL to Add Themes screen. */
    122122                                        __( 'You only have one theme installed right now. Live a little! You can choose from over 1,000 free themes in the WordPress Theme Directory at any time: just click on the <a href="%s">Install Themes</a> tab above.' ),
    123123                                        admin_url( 'theme-install.php' )
    … …  
    129129                // Fallthrough.
    130130                printf(
    131                         /* translators: %s: network title */
     131                        /* translators: %s: Network title. */
    132132                        __( 'Only the current theme is available to you. Contact the %s administrator for information about accessing additional themes.' ),
    133133                        get_site_option( 'site_name' )
    … …  
    207207                                '<a href="%s" class="activatelink" title="%s">%s</a>',
    208208                                $activate_link,
    209                                 /* translators: %s: theme name */
     209                                /* translators: %s: Theme name. */
    210210                                esc_attr( sprintf( __( 'Activate &#8220;%s&#8221;' ), $title ) ),
    211211                                __( 'Activate' )
    … …  
    224224                                        '<a class="submitdelete deletion" href="%s" onclick="return confirm( \'%s\' );">%s</a>',
    225225                                        wp_nonce_url( 'themes.php?action=delete&amp;stylesheet=' . urlencode( $stylesheet ), 'delete-theme_' . $stylesheet ),
    226                                         /* translators: %s: theme name */
     226                                        /* translators: %s: Theme name. */
    227227                                        esc_js( sprintf( __( "You are about to delete this theme '%s'\n  'Cancel' to stop, 'OK' to delete." ), $title ) ),
    228228                                        __( 'Delete' )
    … …  
    255255                        <div class="theme-author">
    256256                                <?php
    257                                         /* translators: %s: theme author */
     257                                        /* translators: %s: Theme author. */
    258258                                        printf( __( 'By %s' ), $author );
    259259                                ?>
    … …  
    277277                                if ( $theme->parent() ) {
    278278                                        printf(
    279                                                 /* translators: %s: link to documentation on child themes */
     279                                                /* translators: %s: Link to documentation on child themes. */
    280280                                                ' <p class="howto">' . __( 'This <a href="%1$s">child theme</a> requires its parent theme, %2$s.' ) . '</p>',
    281281                                                __( 'https://developer.wordpress.org/themes/advanced-topics/child-themes/' ),
Note: See TracChangeset for help on using the changeset viewer.