WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (7 weeks 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-walker-nav-menu-edit.php

    r45926 r45932  
    100100        if ( ! empty( $item->_invalid ) ) {
    101101            $classes[] = 'menu-item-invalid';
    102             /* translators: %s: title of an invalid menu item */
     102            /* translators: %s: Title of an invalid menu item. */
    103103            $title = sprintf( __( '%s (Invalid)' ), $item->title );
    104104        } elseif ( isset( $item->post_status ) && 'draft' == $item->post_status ) {
    105105            $classes[] = 'pending';
    106             /* translators: %s: title of a menu item in draft status */
     106            /* translators: %s: Title of a menu item in draft status. */
    107107            $title = sprintf( __( '%s (Pending)' ), $item->title );
    108108        }
     
    241241                        <p class="link-to-original">
    242242                            <?php
    243                             /* translators: %s: link to menu item's original object */
     243                            /* translators: %s: Link to menu item's original object. */
    244244                            printf( __( 'Original: %s' ), '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' );
    245245                            ?>
Note: See TracChangeset for help on using the changeset viewer.