Make WordPress Core

Changeset 41641


Ignore:
Timestamp:
09/29/2017 11:43:27 AM (7 years ago)
Author:
SergeyBiryukov
Message:

I18N: Use a consistent pattern for translator comments for placeholders in wp-admin/includes/dashboard.php.

See #41974.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r41605 r41641  
    278278        <?php
    279279        $moderated_comments_count_i18n = number_format_i18n( $num_comm->moderated );
    280         /* translators: Number of comments in moderation */
     280        /* translators: %s: number of comments in moderation */
    281281        $text = sprintf( _nx( '%s in moderation', '%s in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n );
    282         /* translators: Number of comments in moderation */
     282        /* translators: %s: number of comments in moderation */
    283283        $aria_label = sprintf( _nx( '%s comment in moderation', '%s comments in moderation', $num_comm->moderated, 'comments' ), $moderated_comments_count_i18n );
    284284        ?>
     
    393393    $c_blogs = get_blog_count();
    394394
    395     /* translators: 1: Number of users on the network */
     395    /* translators: %s: number of users on the network */
    396396    $user_text = sprintf( _n( '%s user', '%s users', $c_users ), number_format_i18n( $c_users ) );
    397     /* translators: 1: Number of sites on the network */
     397    /* translators: %s: number of sites on the network */
    398398    $blog_text = sprintf( _n( '%s site', '%s sites', $c_blogs ), number_format_i18n( $c_blogs ) );
    399399
    400     /* translators: 1: Text indicating the number of sites on the network, 2: Text indicating the number of users on the network */
     400    /* translators: 1: text indicating the number of sites on the network, 2: text indicating the number of users on the network */
    401401    $sentence = sprintf( __( 'You have %1$s and %2$s.' ), $blog_text, $user_text );
    402402
     
    12081208    <script id="tmpl-community-events-attend-event-near" type="text/template">
    12091209        <?php printf(
    1210             /* translators: %s is a placeholder for the name of a city. */
     1210            /* translators: %s: the name of a city */
    12111211            __( 'Attend an upcoming event near %s.' ),
    12121212            '<strong>{{ data.location.description }}</strong>'
     
    12591259            <# } else { #>
    12601260                <?php printf(
    1261                     /* translators: meetup organization documentation URL. */
     1261                    /* translators: %s: meetup organization documentation URL */
    12621262                    __( 'There aren&#8217;t any events scheduled near you at the moment. Would you like to <a href="%s">organize one</a>?' ),
    12631263                    __( 'https://make.wordpress.org/community/handbook/meetup-organizer/welcome/' )
     
    14041404        <li class="storage-count">
    14051405            <?php $text = sprintf(
    1406                 /* translators: number of megabytes */
     1406                /* translators: %s: number of megabytes */
    14071407                __( '%s MB Space Allowed' ),
    14081408                number_format_i18n( $quota )
Note: See TracChangeset for help on using the changeset viewer.