WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (6 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/nav-menus.php

    r45926 r45932  
    429429    'moveDown'                => __( 'Move down one' ),
    430430    'moveToTop'               => __( 'Move to the top' ),
    431     /* translators: %s: previous item name */
     431    /* translators: %s: Previous item name. */
    432432    'moveUnder'               => __( 'Move under %s' ),
    433     /* translators: %s: previous item name */
     433    /* translators: %s: Previous item name. */
    434434    'moveOutFrom'             => __( 'Move out from under %s' ),
    435     /* translators: %s: previous item name */
     435    /* translators: %s: Previous item name. */
    436436    'under'                   => __( 'Under %s' ),
    437     /* translators: %s: previous item name */
     437    /* translators: %s: Previous item name. */
    438438    'outFrom'                 => __( 'Out from under %s' ),
    439     /* translators: 1: item name, 2: item position, 3: total number of items */
     439    /* translators: 1: Item name, 2: Item position, 3: Total number of items. */
    440440    'menuFocus'               => __( '%1$s. Menu item %2$d of %3$d.' ),
    441     /* translators: 1: item name, 2: item position, 3: parent item name */
     441    /* translators: 1: Item name, 2: Item position, 3: Parent item name. */
    442442    'subMenuFocus'            => __( '%1$s. Sub item number %2$d under %3$s.' ),
    443443);
     
    531531if ( ! current_theme_supports( 'menus' ) && ! $num_locations ) {
    532532    $messages[] = '<div id="message" class="updated"><p>' . sprintf(
    533         /* translators: URL to Widgets screen */
     533        /* translators: URL to Widgets screen. */
    534534        __( 'Your theme does not natively support menus, but you can use them in sidebars by adding a &#8220;Navigation Menu&#8221; widget on the <a href="%s">Widgets</a> screen.' ),
    535535        admin_url( 'widgets.php' )
     
    540540    $overview  = '<p>' . __( 'This screen is used for managing your navigation menus.' ) . '</p>';
    541541    $overview .= '<p>' . sprintf(
    542         /* translators: 1: Widgets admin screen URL, 2 and 3: The names of the default themes */
     542        /* translators: 1: URL to Widgets screen, 2 and 3: The names of the default themes. */
    543543            __( 'Menus can be displayed in locations defined by your theme, even used in sidebars by adding a &#8220;Navigation Menu&#8221; widget on the <a href="%1$s">Widgets</a> screen. If your theme does not support the navigation menus feature (the default themes, %2$s and %3$s, do), you can learn about adding this support by following the Documentation link to the side.' ),
    544544        admin_url( 'widgets.php' ),
     
    666666        } else {
    667667            echo '<p>' . sprintf(
    668                 /* translators: %s: number of menus */
     668                /* translators: %s: Number of menus. */
    669669                _n(
    670670                    'Your theme supports %s menu. Select which menu appears in each location.',
     
    773773            <?php
    774774            printf(
    775                 /* translators: %s: URL to create a new menu */
     775                /* translators: %s: URL to create a new menu. */
    776776                __( 'Edit your menu below, or <a href="%s">create a new menu</a>. Don&#8217;t forget to save your changes!' ),
    777777                esc_url(
     
    835835                <?php
    836836                printf(
    837                     /* translators: %s: URL to create a new menu */
     837                    /* translators: %s: URL to create a new menu. */
    838838                    __( 'or <a href="%s">create a new menu</a>. Don&#8217;t forget to save your changes!' ),
    839839                    esc_url(
     
    981981                                                <?php
    982982                                                    printf(
    983                                                         /* translators: %s: menu name */
     983                                                        /* translators: %s: Menu name. */
    984984                                                        _x( '(Currently set to: %s)', 'menu location' ),
    985985                                                        wp_get_nav_menu_object( $menu_locations[ $location ] )->name
Note: See TracChangeset for help on using the changeset viewer.