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/menu.php

    r45926 r45932  
    4545    $submenu['index.php'][10] = array(
    4646        sprintf(
    47             /* translators: %s: number of pending updates */
     47            /* translators: %s: Number of pending updates. */
    4848            __( 'Updates %s' ),
    4949            sprintf(
     
    6565$menu[10]                     = array( __( 'Media' ), 'upload_files', 'upload.php', '', 'menu-top menu-icon-media', 'menu-media', 'dashicons-admin-media' );
    6666    $submenu['upload.php'][5] = array( __( 'Library' ), 'upload_files', 'upload.php' );
    67     /* translators: add new file */
     67    /* translators: Add new file. */
    6868    $submenu['upload.php'][10] = array( _x( 'Add New', 'file' ), 'upload_files', 'media-new.php' );
    6969    $i                         = 15;
     
    7979$menu[15]                           = array( __( 'Links' ), 'manage_links', 'link-manager.php', '', 'menu-top menu-icon-links', 'menu-links', 'dashicons-admin-links' );
    8080    $submenu['link-manager.php'][5] = array( _x( 'All Links', 'admin menu' ), 'manage_links', 'link-manager.php' );
    81     /* translators: add new links */
     81    /* translators: Add new links. */
    8282    $submenu['link-manager.php'][10] = array( _x( 'Add New', 'link' ), 'manage_links', 'link-add.php' );
    8383    $submenu['link-manager.php'][15] = array( __( 'Link Categories' ), 'manage_categories', 'edit-tags.php?taxonomy=link_category' );
     
    9090    $awaiting_mod      = $awaiting_mod->moderated;
    9191    $awaiting_mod_i18n = number_format_i18n( $awaiting_mod );
    92     /* translators: %s: number of comments */
     92    /* translators: %s: Number of comments. */
    9393    $awaiting_mod_text = sprintf( _n( '%s Comment in moderation', '%s Comments in moderation', $awaiting_mod ), $awaiting_mod_i18n );
    9494
    9595    $menu[25] = array(
    96         /* translators: %s: number of comments */
     96        /* translators: %s: Number of comments. */
    9797        sprintf( __( 'Comments %s' ), '<span class="awaiting-mod count-' . absint( $awaiting_mod ) . '"><span class="pending-count" aria-hidden="true">' . $awaiting_mod_i18n . '</span><span class="comments-in-moderation-text screen-reader-text">' . $awaiting_mod_text . '</span></span>' ),
    9898        'edit_posts',
     
    236236}
    237237
    238 /* translators: %s: number of pending plugin updates */
     238/* translators: %s: Number of pending plugin updates. */
    239239$menu[65] = array( sprintf( __( 'Plugins %s' ), $count ), 'activate_plugins', 'plugins.php', '', 'menu-top menu-icon-plugins', 'menu-plugins', 'dashicons-admin-plugins' );
    240240
     
    242242
    243243if ( ! is_multisite() ) {
    244     /* translators: add new plugin */
     244    /* translators: Add new plugin. */
    245245    $submenu['plugins.php'][10] = array( _x( 'Add New', 'plugin' ), 'install_plugins', 'plugin-install.php' );
    246246    $submenu['plugins.php'][15] = array( __( 'Plugin Editor' ), 'edit_plugins', 'plugin-editor.php' );
Note: See TracChangeset for help on using the changeset viewer.