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-media-list-table.php

    r45926 r45932  
    283283                $posts_columns       = array();
    284284                $posts_columns['cb'] = '<input type="checkbox" />';
    285                 /* translators: column name */
     285                /* translators: Column name. */
    286286                $posts_columns['title']  = _x( 'File', 'column name' );
    287287                $posts_columns['author'] = __( 'Author' );
    … …  
    312312                }
    313313
    314                 /* translators: column name */
     314                /* translators: Column name. */
    315315                if ( ! $this->detached ) {
    316316                        $posts_columns['parent'] = _x( 'Uploaded to', 'column name' );
    … …  
    319319                        }
    320320                }
    321                 /* translators: column name */
     321                /* translators: Column name. */
    322322                $posts_columns['date'] = _x( 'Date', 'column name' );
    323323                /**
    … …  
    358358                        <label class="screen-reader-text" for="cb-select-<?php echo $post->ID; ?>">
    359359                                <?php
    360                                 /* translators: %s: attachment title */
     360                                /* translators: %s: Attachment title. */
    361361                                printf( __( 'Select %s' ), _draft_or_post_title() );
    362362                                ?>
    … …  
    386386                                '<a href="%s" aria-label="%s">',
    387387                                get_edit_post_link( $post->ID ),
    388                                 /* translators: %s: attachment title */
     388                                /* translators: %s: Attachment title. */
    389389                                esc_attr( sprintf( __( '&#8220;%s&#8221; (Edit)' ), $title ) )
    390390                        );
    … …  
    458458                        if ( ( abs( $t_diff ) ) < DAY_IN_SECONDS ) {
    459459                                if ( $t_diff < 0 ) {
    460                                         /* translators: %s: Human-readable time difference */
     460                                        /* translators: %s: Human-readable time difference. */
    461461                                        $h_time = sprintf( __( '%s from now' ), human_time_diff( $time ) );
    462462                                } else {
    463                                         /* translators: %s: Human-readable time difference */
     463                                        /* translators: %s: Human-readable time difference. */
    464464                                        $h_time = sprintf( __( '%s ago' ), human_time_diff( $time ) );
    465465                                }
    … …  
    517517                                        '<br /><a href="%s" class="hide-if-no-js detach-from-parent" aria-label="%s">%s</a>',
    518518                                        $detach_url,
    519                                         /* translators: %s: title of the post the attachment is attached to */
     519                                        /* translators: %s: Title of the post the attachment is attached to. */
    520520                                        esc_attr( sprintf( __( 'Detach from &#8220;%s&#8221;' ), $title ) ),
    521521                                        __( 'Detach' )
    … …  
    531531                                        '<br /><a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js aria-button-if-js" aria-label="%s">%s</a>',
    532532                                        $post->ID,
    533                                         /* translators: %s: attachment title */
     533                                        /* translators: %s: Attachment title. */
    534534                                        esc_attr( sprintf( __( 'Attach &#8220;%s&#8221; to existing content' ), $title ) ),
    535535                                        __( 'Attach' )
    … …  
    594594                                        );
    595595                                }
    596                                 /* translators: used between list items, there is a space after the comma */
     596                                /* translators: Used between list items, there is a space after the comma. */
    597597                                echo join( __( ', ' ), $out );
    598598                        } else {
    … …  
    671671                                        '<a href="%s" aria-label="%s">%s</a>',
    672672                                        get_edit_post_link( $post->ID ),
    673                                         /* translators: %s: attachment title */
     673                                        /* translators: %s: Attachment title. */
    674674                                        esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $att_title ) ),
    675675                                        __( 'Edit' )
    … …  
    681681                                                '<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>',
    682682                                                wp_nonce_url( "post.php?action=trash&amp;post=$post->ID", 'trash-post_' . $post->ID ),
    683                                                 /* translators: %s: attachment title */
     683                                                /* translators: %s: Attachment title. */
    684684                                                esc_attr( sprintf( __( 'Move &#8220;%s&#8221; to the Trash' ), $att_title ) ),
    685685                                                _x( 'Trash', 'verb' )
    … …  
    691691                                                wp_nonce_url( "post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID ),
    692692                                                $delete_ays,
    693                                                 /* translators: %s: attachment title */
     693                                                /* translators: %s: Attachment title. */
    694694                                                esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently' ), $att_title ) ),
    695695                                                __( 'Delete Permanently' )
    … …  
    700700                                '<a href="%s" aria-label="%s" rel="bookmark">%s</a>',
    701701                                get_permalink( $post->ID ),
    702                                 /* translators: %s: attachment title */
     702                                /* translators: %s: Attachment title. */
    703703                                esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $att_title ) ),
    704704                                __( 'View' )
    … …  
    709709                                        '<a href="#the-list" onclick="findPosts.open( \'media[]\', \'%s\' ); return false;" class="hide-if-no-js aria-button-if-js" aria-label="%s">%s</a>',
    710710                                        $post->ID,
    711                                         /* translators: %s: attachment title */
     711                                        /* translators: %s: Attachment title. */
    712712                                        esc_attr( sprintf( __( 'Attach &#8220;%s&#8221; to existing content' ), $att_title ) ),
    713713                                        __( 'Attach' )
    … …  
    719719                                        '<a href="%s" aria-label="%s">%s</a>',
    720720                                        get_edit_post_link( $post->ID ),
    721                                         /* translators: %s: attachment title */
     721                                        /* translators: %s: Attachment title. */
    722722                                        esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $att_title ) ),
    723723                                        __( 'Edit' )
    … …  
    729729                                                '<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>',
    730730                                                wp_nonce_url( "post.php?action=untrash&amp;post=$post->ID", 'untrash-post_' . $post->ID ),
    731                                                 /* translators: %s: attachment title */
     731                                                /* translators: %s: Attachment title. */
    732732                                                esc_attr( sprintf( __( 'Restore &#8220;%s&#8221; from the Trash' ), $att_title ) ),
    733733                                                __( 'Restore' )
    … …  
    737737                                                '<a href="%s" class="submitdelete aria-button-if-js" aria-label="%s">%s</a>',
    738738                                                wp_nonce_url( "post.php?action=trash&amp;post=$post->ID", 'trash-post_' . $post->ID ),
    739                                                 /* translators: %s: attachment title */
     739                                                /* translators: %s: Attachment title. */
    740740                                                esc_attr( sprintf( __( 'Move &#8220;%s&#8221; to the Trash' ), $att_title ) ),
    741741                                                _x( 'Trash', 'verb' )
    … …  
    748748                                                wp_nonce_url( "post.php?action=delete&amp;post=$post->ID", 'delete-post_' . $post->ID ),
    749749                                                $delete_ays,
    750                                                 /* translators: %s: attachment title */
     750                                                /* translators: %s: Attachment title. */
    751751                                                esc_attr( sprintf( __( 'Delete &#8220;%s&#8221; permanently' ), $att_title ) ),
    752752                                                __( 'Delete Permanently' )
    … …  
    758758                                        '<a href="%s" aria-label="%s" rel="bookmark">%s</a>',
    759759                                        get_permalink( $post->ID ),
    760                                         /* translators: %s: attachment title */
     760                                        /* translators: %s: Attachment title. */
    761761                                        esc_attr( sprintf( __( 'View &#8220;%s&#8221;' ), $att_title ) ),
    762762                                        __( 'View' )
Note: See TracChangeset for help on using the changeset viewer.