Making WordPress.org

Changeset 5037


Ignore:
Timestamp:
03/01/2017 11:48:02 PM (8 years ago)
Author:
coffee2code
Message:

Plugin Directory: More i18n cleanup.

  • Add some missing text domains
  • Add missing _n() call for Read all %s reviews

Props SergeyBiryukov.
Fixes #2534.

Location:
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php

    r5001 r5037  
    448448        $user = wp_get_current_user();
    449449        if ( ! $user->exists() ) {
    450             wp_die( __( 'Sorry, you must be logged in to reply to a comment.' ) );
     450            wp_die( __( 'Sorry, you must be logged in to reply to a comment.', 'wporg-plugins' ) );
    451451        }
    452452
     
    470470
    471471        if ( '' == $comment_content ) {
    472             wp_die( __( 'ERROR: please type a comment.' ) );
     472            wp_die( __( 'ERROR: please type a comment.', 'wporg-plugins' ) );
    473473        }
    474474
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php

    r5001 r5037  
    7474        if ( current_user_can( $post_type_obj->cap->edit_posts ) ) {
    7575            if ( $this->is_trash ) {
    76                 $actions['untrash'] = __( 'Restore' );
     76                $actions['untrash'] = __( 'Restore', 'wporg-plugins' );
    7777            } else {
    78                 $actions['edit'] = __( 'Edit' );
     78                $actions['edit'] = __( 'Edit', 'wporg-plugins' );
    7979            }
    8080        }
     
    8686        if ( current_user_can( $post_type_obj->cap->delete_posts ) ) {
    8787            if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) {
    88                 $actions['delete'] = __( 'Delete Permanently' );
     88                $actions['delete'] = __( 'Delete Permanently', 'wporg-plugins' );
    8989            } else {
    90                 $actions['trash'] = __( 'Move to Trash' );
     90                $actions['trash'] = __( 'Move to Trash', 'wporg-plugins' );
    9191            }
    9292        }
     
    203203                get_edit_post_link( $post->ID ),
    204204                /* translators: %s: post title */
    205                 esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ),
    206                 __( 'Edit' )
     205                esc_attr( sprintf( __( 'Edit “%s”', 'wporg-plugins' ), $title ) ),
     206                __( 'Edit', 'wporg-plugins' )
    207207            );
    208208
     
    211211                    '<a href="#" class="editinline" aria-label="%s">%s</a>',
    212212                    /* translators: %s: post title */
    213                     esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline' ), $title ) ),
    214                     __( 'Quick&nbsp;Edit' )
     213                    esc_attr( sprintf( __( 'Quick edit &#8220;%s&#8221; inline', 'wporg-plugins' ), $title ) ),
     214                    __( 'Quick&nbsp;Edit', 'wporg-plugins' )
    215215                );
    216216            } else {
     
    225225                    wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&amp;action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ),
    226226                    /* translators: %s: post title */
    227                     esc_attr( sprintf( __( 'Restore &#8220;%s&#8221; from the Trash' ), $title ) ),
    228                     __( 'Restore' )
     227                    esc_attr( sprintf( __( 'Restore &#8220;%s&#8221; from the Trash', 'wporg-plugins' ), $title ) ),
     228                    __( 'Restore', 'wporg-plugins' )
    229229                );
    230230            } elseif ( EMPTY_TRASH_DAYS ) {
     
    233233                    get_delete_post_link( $post->ID ),
    234234                    /* translators: %s: post title */
    235                     esc_attr( sprintf( __( 'Move &#8220;%s&#8221; to the Trash' ), $title ) ),
    236                     _x( 'Trash', 'verb' )
     235                    esc_attr( sprintf( __( 'Move &#8220;%s&#8221; to the Trash', 'wporg-plugins' ), $title ) ),
     236                    _x( 'Trash', 'verb', 'wporg-plugins' )
    237237                );
    238238            }
     
    242242                    get_delete_post_link( $post->ID, '', true ),
    243243                    /* translators: %s: post title */
    244                     esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently' ), $title ) ),
    245                     __( 'Delete Permanently' )
     244                    esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently', 'wporg-plugins' ), $title ) ),
     245                    __( 'Delete Permanently', 'wporg-plugins' )
    246246                );
    247247            }
     
    253253                get_permalink( $post->ID ),
    254254                /* translators: %s: post title */
    255                 esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $title ) ),
    256                 __( 'View' )
     255                esc_attr( sprintf( __( 'View &#8220;%s&#8221;', 'wporg-plugins' ), $title ) ),
     256                __( 'View', 'wporg-plugins' )
    257257            );
    258258        }
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php

    r3250 r5037  
    3131                <input type="hidden" name="to_email" value="<?php echo esc_attr( $author->user_email ); ?>" />
    3232                <input type="hidden" name="to_name" value="<?php echo esc_attr( $author->display_name ); ?>" />
    33                 <input type="hidden" name="subject" value="<?php printf( esc_attr__( '[WordPress Plugin Directory] Request: %s' ), $post->post_title ); ?>" />
     33                <input type="hidden" name="subject" value="<?php printf( esc_attr__( '[WordPress Plugin Directory] Request: %s', 'wporg-plugins' ), $post->post_title ); ?>" />
    3434                <button class="button button-primary" type="submit"><?php _e( 'Contact plugin author', 'wporg-plugins' ); ?></button>
    3535            </form>
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

    r5001 r5037  
    102102                    sprintf(
    103103                        /* translators: 1: number of ratings */
    104                         __( '%1$s<span class="screen-reader-text"> total ratings</span>' ),
     104                        __( '%1$s<span class="screen-reader-text"> total ratings</span>', 'wporg-plugins' ),
    105105                        esc_html( $num_ratings )
    106106                    ) .
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php

    r4433 r5037  
    5454
    5555        <a class="reviews-link" href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . get_post()->post_name . '/reviews/' ); ?>">
    56             <?php printf( __( 'Read all %s reviews', 'wporg-plugins' ), number_format_i18n( $review_count ) ); ?>
     56            <?php
     57                /* translators: %s: number of reviews */
     58                printf( _n( 'Read all %s review', 'Read all %s reviews', $review_count, 'wporg-plugins' ), number_format_i18n( $review_count ) );
     59            ?>
    5760        </a>
    5861
Note: See TracChangeset for help on using the changeset viewer.