Ticket #2534: meta-2534.2.patch
File meta-2534.2.patch, 8.9 KB (added by , 8 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/class-customizations.php
447 447 448 448 $user = wp_get_current_user(); 449 449 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' ) ); 451 451 } 452 452 453 453 $user_ID = $user->ID; … … 469 469 } 470 470 471 471 if ( '' == $comment_content ) { 472 wp_die( __( 'ERROR: please type a comment.' ) );472 wp_die( __( 'ERROR: please type a comment.', 'wporg-plugins' ) ); 473 473 } 474 474 475 475 $comment_parent = 0; -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
73 73 74 74 if ( current_user_can( $post_type_obj->cap->edit_posts ) ) { 75 75 if ( $this->is_trash ) { 76 $actions['untrash'] = __( 'Restore' );76 $actions['untrash'] = __( 'Restore', 'wporg-plugins' ); 77 77 } else { 78 $actions['edit'] = __( 'Edit' );78 $actions['edit'] = __( 'Edit', 'wporg-plugins' ); 79 79 } 80 80 } 81 81 … … 85 85 86 86 if ( current_user_can( $post_type_obj->cap->delete_posts ) ) { 87 87 if ( $this->is_trash || ! EMPTY_TRASH_DAYS ) { 88 $actions['delete'] = __( 'Delete Permanently' );88 $actions['delete'] = __( 'Delete Permanently', 'wporg-plugins' ); 89 89 } else { 90 $actions['trash'] = __( 'Move to Trash' );90 $actions['trash'] = __( 'Move to Trash', 'wporg-plugins' ); 91 91 } 92 92 } 93 93 … … 202 202 '<a href="%s" aria-label="%s">%s</a>', 203 203 get_edit_post_link( $post->ID ), 204 204 /* 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' ) 207 207 ); 208 208 209 209 if ( current_user_can( 'plugin_review', $post->ID ) ) { … … 210 210 $actions['inline hide-if-no-js'] = sprintf( 211 211 '<a href="#" class="editinline" aria-label="%s">%s</a>', 212 212 /* translators: %s: post title */ 213 esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ),214 __( 'Quick Edit' )213 esc_attr( sprintf( __( 'Quick edit “%s” inline', 'wporg-plugins' ), $title ) ), 214 __( 'Quick Edit', 'wporg-plugins' ) 215 215 ); 216 216 } else { 217 217 wp_dequeue_script( 'inline-edit-post' ); … … 224 224 '<a href="%s" aria-label="%s">%s</a>', 225 225 wp_nonce_url( admin_url( sprintf( $post_type_object->_edit_link . '&action=untrash', $post->ID ) ), 'untrash-post_' . $post->ID ), 226 226 /* translators: %s: post title */ 227 esc_attr( sprintf( __( 'Restore “%s” from the Trash' ), $title ) ),228 __( 'Restore' )227 esc_attr( sprintf( __( 'Restore “%s” from the Trash', 'wporg-plugins' ), $title ) ), 228 __( 'Restore', 'wporg-plugins' ) 229 229 ); 230 230 } elseif ( EMPTY_TRASH_DAYS ) { 231 231 $actions['trash'] = sprintf( … … 232 232 '<a href="%s" class="submitdelete" aria-label="%s">%s</a>', 233 233 get_delete_post_link( $post->ID ), 234 234 /* translators: %s: post title */ 235 esc_attr( sprintf( __( 'Move “%s” to the Trash' ), $title ) ),236 _x( 'Trash', 'verb' )235 esc_attr( sprintf( __( 'Move “%s” to the Trash', 'wporg-plugins' ), $title ) ), 236 _x( 'Trash', 'verb', 'wporg-plugins' ) 237 237 ); 238 238 } 239 239 if ( 'trash' === $post->post_status || ! EMPTY_TRASH_DAYS ) { … … 241 241 '<a href="%s" class="submitdelete" aria-label="%s">%s</a>', 242 242 get_delete_post_link( $post->ID, '', true ), 243 243 /* translators: %s: post title */ 244 esc_attr( sprintf( __( 'Delete “%s” permanently' ), $title ) ),245 __( 'Delete Permanently' )244 esc_attr( sprintf( __( 'Delete “%s” permanently', 'wporg-plugins' ), $title ) ), 245 __( 'Delete Permanently', 'wporg-plugins' ) 246 246 ); 247 247 } 248 248 } … … 252 252 '<a href="%s" rel="permalink" aria-label="%s">%s</a>', 253 253 get_permalink( $post->ID ), 254 254 /* translators: %s: post title */ 255 esc_attr( sprintf( __( 'View “%s”' ), $title ) ),256 __( 'View' )255 esc_attr( sprintf( __( 'View “%s”', 'wporg-plugins' ), $title ) ), 256 __( 'View', 'wporg-plugins' ) 257 257 ); 258 258 } 259 259 -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-review-tools.php
30 30 <form id="contact-author" class="contact-author" method="POST" action="https://supportpress.wordpress.org/plugins/thread-new.php"> 31 31 <input type="hidden" name="to_email" value="<?php echo esc_attr( $author->user_email ); ?>" /> 32 32 <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 ); ?>" /> 34 34 <button class="button button-primary" type="submit"><?php _e( 'Contact plugin author', 'wporg-plugins' ); ?></button> 35 35 </form> 36 36 <?php -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
101 101 '<a href="https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/">' . 102 102 sprintf( 103 103 /* 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' ), 105 105 esc_html( $num_ratings ) 106 106 ) . 107 107 '</a>' . -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php
53 53 </div> 54 54 55 55 <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 ?> 57 60 </a> 58 61 59 62 <?php -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php
72 72 <div class="plugin-favorite"> 73 73 <a href="<?php echo esc_url( $url ); ?>" class="plugin-favorite-heart<?php echo $is_favorited ? ' favorited' : ''; ?>"> 74 74 <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 ?> 76 84 </span> 77 85 </a> 78 86 <script>