Making WordPress.org

Ticket #2534: meta-2534.2.patch

File meta-2534.2.patch, 8.9 KB (added by SergeyBiryukov, 8 years ago)
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php

     
    447447
    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
    453453                $user_ID              = $user->ID;
     
    469469                }
    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
    475475                $comment_parent = 0;
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php

     
    7373
    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                }
    8181
     
    8585
    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                }
    9393
     
    202202                                '<a href="%s" aria-label="%s">%s</a>',
    203203                                get_edit_post_link( $post->ID ),
    204204                                /* translators: %s: post title */
    205                                 esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $title ) ),
    206                                 __( 'Edit' )
     205                                esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;', 'wporg-plugins' ), $title ) ),
     206                                __( 'Edit', 'wporg-plugins' )
    207207                        );
    208208
    209209                        if ( current_user_can( 'plugin_review', $post->ID ) ) {
     
    210210                                $actions['inline hide-if-no-js'] = sprintf(
    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 {
    217217                                wp_dequeue_script( 'inline-edit-post' );
     
    224224                                        '<a href="%s" aria-label="%s">%s</a>',
    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 ) {
    231231                                $actions['trash'] = sprintf(
     
    232232                                        '<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
    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                        }
    239239                        if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS ) {
     
    241241                                        '<a href="%s" class="submitdelete" aria-label="%s">%s</a>',
    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                        }
    248248                }
     
    252252                                '<a href="%s" rel="permalink" aria-label="%s">%s</a>',
    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                }
    259259
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php

     
    3030                        <form id="contact-author" class="contact-author" method="POST" action="https://supportpress.wordpress.org/plugins/thread-new.php">
    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>
    3636                        <?php
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

     
    101101                                        '<a href="https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/">' .
    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                                        ) .
    107107                                '</a>' .
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php

     
    5353                </div>
    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
    5962                <?php
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

     
    7272                                <div class="plugin-favorite">
    7373                                        <a href="<?php echo esc_url( $url ); ?>" class="plugin-favorite-heart<?php echo $is_favorited ? ' favorited' : ''; ?>">
    7474                                                <span class="screen-reader-text">
    75                                                         <?php printf( $is_favorited ? __( 'Favorite %s' ) : __( 'Unfavorite %s' ), get_the_title() ); ?>
     75                                                        <?php
     76                                                                if ( $is_favorited ) {
     77                                                                        /* Translators: %s: Plugin name */
     78                                                                        printf( __( 'Unfavorite %s', 'wporg-plugins' ), get_the_title() );
     79                                                                } else {
     80                                                                        /* Translators: %s: Plugin name */
     81                                                                        printf( __( 'Favorite %s', 'wporg-plugins' ), get_the_title() );
     82                                                                }
     83                                                        ?>
    7684                                                </span>
    7785                                        </a>
    7886                                        <script>