Make WordPress Core


Ignore:
Timestamp:
09/03/2019 12:39:13 AM (5 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-includes/ms-functions.php

    r45926 r45932  
    640640
    641641    if ( strlen( $blogname ) < $minimum_site_name_length ) {
    642         /* translators: %s: minimum site name length */
     642        /* translators: %s: Minimum site name length. */
    643643        $errors->add( 'blogname', sprintf( _n( 'Site name must be at least %s character.', 'Site name must be at least %s characters.', $minimum_site_name_length ), number_format_i18n( $minimum_site_name_length ) ) );
    644644    }
     
    945945        apply_filters(
    946946            'wpmu_signup_blog_notification_email',
    947             /* translators: New site notification email. 1: Activation URL, 2: New site URL */
     947            /* translators: New site notification email. 1: Activation URL, 2: New site URL. */
    948948            __( "To activate your blog, please click the following link:\n\n%1\$s\n\nAfter you activate, you will receive *another email* with your login.\n\nAfter you activate, you can visit your site here:\n\n%2\$s" ),
    949949            $domain,
     
    978978        apply_filters(
    979979            'wpmu_signup_blog_notification_subject',
    980             /* translators: New site notification email subject. 1: Network name, 2: New site URL */
     980            /* translators: New site notification email subject. 1: Network title, 2: New site URL. */
    981981            _x( '[%1$s] Activate %2$s', 'New site notification email subject' ),
    982982            $domain,
     
    10641064        apply_filters(
    10651065            'wpmu_signup_user_notification_email',
    1066             /* translators: New user notification email. %s: Activation URL */
     1066            /* translators: New user notification email. %s: Activation URL. */
    10671067            __( "To activate your user, please click the following link:\n\n%s\n\nAfter you activate, you will receive *another email* with your login." ),
    10681068            $user_login,
     
    10891089        apply_filters(
    10901090            'wpmu_signup_user_notification_subject',
    1091             /* translators: New user notification email subject. 1: Network name, 2: New user login */
     1091            /* translators: New user notification email subject. 1: Network title, 2: New user login. */
    10921092            _x( '[%1$s] Activate %2$s', 'New user notification email subject' ),
    10931093            $user_login,
     
    13861386
    13871387    $msg = sprintf(
    1388         /* translators: New site notification email. 1: Site URL, 2: User IP address, 3: Settings screen URL */
     1388        /* translators: New site notification email. 1: Site URL, 2: User IP address, 3: URL to Network Settings screen. */
    13891389        __(
    13901390            'New Site: %1$s
     
    14091409    $msg = apply_filters( 'newblog_notify_siteadmin', $msg );
    14101410
    1411     /* translators: New site notification email subject. %s: New site URL */
     1411    /* translators: New site notification email subject. %s: New site URL. */
    14121412    wp_mail( $email, sprintf( __( 'New Site Registration: %s' ), $siteurl ), $msg );
    14131413
     
    14421442
    14431443    $msg = sprintf(
    1444         /* translators: New user notification email. 1: User login, 2: User IP address, 3: Settings screen URL */
     1444        /* translators: New user notification email. 1: User login, 2: User IP address, 3: URL to Network Settings screen. */
    14451445        __(
    14461446            'New User: %1$s
     
    14651465    $msg = apply_filters( 'newuser_notify_siteadmin', $msg, $user );
    14661466
    1467     /* translators: New user notification email subject. %s: User login */
     1467    /* translators: New user notification email subject. %s: User login. */
    14681468    wp_mail( $email, sprintf( __( 'New User Registration: %s' ), $user->user_login ), $msg );
    14691469
     
    16151615    }
    16161616
    1617     /* translators: New site notification email subject. 1: Network name, 2: New site name */
     1617    /* translators: New site notification email subject. 1: Network title, 2: New site title. */
    16181618    $subject = __( 'New %1$s Site: %2$s' );
    16191619
     
    17071707    }
    17081708
    1709     /* translators: New user notification email subject. 1: Network name, 2: New user login */
     1709    /* translators: New user notification email subject. 1: Network title, 2: New user login. */
    17101710    $subject = __( 'New %1$s User: %2$s' );
    17111711
     
    19981998
    19991999    if ( strlen( $upload['bits'] ) > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
    2000         /* translators: %s: maximum allowed file size in kilobytes */
     2000        /* translators: %s: Maximum allowed file size in kilobytes. */
    20012001        return sprintf( __( 'This file is too big. Files must be less than %s KB in size.' ) . '<br />', get_site_option( 'fileupload_maxk', 1500 ) );
    20022002    }
     
    20922092        wp_die(
    20932093            sprintf(
    2094                 /* translators: %s: Home URL */
     2094                /* translators: %s: Home URL. */
    20952095                __( 'An error occurred adding you to this site. Back to the <a href="%s">homepage</a>.' ),
    20962096                home_url()
     
    21012101    wp_die(
    21022102        sprintf(
    2103             /* translators: 1: Home URL, 2: Admin URL */
     2103            /* translators: 1: Home URL, 2: Admin URL. */
    21042104            __( 'You have been added to this site. Please visit the <a href="%1$s">homepage</a> or <a href="%2$s">log in</a> using your username and password.' ),
    21052105            home_url(),
     
    26842684        $value,
    26852685        sprintf(
    2686             /* translators: Email change notification email subject. %s: Network title */
     2686            /* translators: Email change notification email subject. %s: Network title. */
    26872687            __( '[%s] Network Admin Email Change Request' ),
    26882688            wp_specialchars_decode( get_site_option( 'site_name' ), ENT_QUOTES )
     
    27472747    $email_change_email = array(
    27482748        'to'      => $old_email,
    2749         /* translators: Network admin email change notification email subject. %s: Network title */
     2749        /* translators: Network admin email change notification email subject. %s: Network title. */
    27502750        'subject' => __( '[%s] Network Admin Email Changed' ),
    27512751        'message' => $email_change_text,
Note: See TracChangeset for help on using the changeset viewer.