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/includes/ms.php

    r45926 r45932  
    3333    $file_size = filesize( $file['tmp_name'] );
    3434    if ( $space_left < $file_size ) {
    35         /* translators: %s: required disk space in kilobytes */
     35        /* translators: %s: Required disk space in kilobytes. */
    3636        $file['error'] = sprintf( __( 'Not enough space to upload. %s KB needed.' ), number_format( ( $file_size - $space_left ) / KB_IN_BYTES ) );
    3737    }
    3838
    3939    if ( $file_size > ( KB_IN_BYTES * get_site_option( 'fileupload_maxk', 1500 ) ) ) {
    40         /* translators: %s: maximum allowed file size in kilobytes */
     40        /* translators: %s: Maximum allowed file size in kilobytes. */
    4141        $file['error'] = sprintf( __( 'This file is too big. Files must be less than %s KB in size.' ), get_site_option( 'fileupload_maxk', 1500 ) );
    4242    }
     
    228228        if ( $echo ) {
    229229            printf(
    230                 /* translators: %s: allowed space allocation */
     230                /* translators: %s: Allowed space allocation. */
    231231                __( 'Sorry, you have used your space allocation of %s. Please delete some files to upload more files.' ),
    232232                size_format( $space_allowed * MB_IN_BYTES )
     
    254254    <strong>
    255255    <?php
    256         /* translators: Storage space that's been used. 1: Percentage of used space, 2: Total space allowed in megabytes or gigabytes */
     256        /* translators: Storage space that's been used. 1: Percentage of used space, 2: Total space allowed in megabytes or gigabytes. */
    257257        printf( __( 'Used: %1$s%% of %2$s' ), number_format( $percent_used ), $space );
    258258    ?>
     
    582582        wp_die(
    583583            sprintf(
    584                 /* translators: 1: Site title */
     584                /* translators: 1: Site title. */
    585585                __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ),
    586586                $blog_name
     
    591591
    592592    $output = '<p>' . sprintf(
    593         /* translators: 1: Site title */
     593        /* translators: 1: Site title. */
    594594        __( 'You attempted to access the "%1$s" dashboard, but you do not currently have privileges on this site. If you believe you should be able to access the "%1$s" dashboard, please contact your network administrator.' ),
    595595        $blog_name
     
    703703    if ( get_site_option( 'wpmu_upgrade_site' ) != $wp_db_version ) {
    704704        echo "<div class='update-nag'>" . sprintf(
    705             /* translators: %s: URL to Upgrade Network screen */
     705            /* translators: %s: URL to Upgrade Network screen. */
    706706            __( 'Thank you for Updating! Please visit the <a href="%s">Upgrade Network</a> page to update all your sites.' ),
    707707            esc_url( network_admin_url( 'upgrade.php' ) )
     
    760760    <table class="form-table" role="presentation">
    761761    <tr>
    762     <?php /* translators: My Sites label */ ?>
     762    <?php /* translators: My Sites label. */ ?>
    763763        <th scope="row"><label for="primary_blog"><?php _e( 'Primary Site' ); ?></label></th>
    764764        <td>
     
    880880                wp_die(
    881881                    sprintf(
    882                         /* translators: %s: user login */
     882                        /* translators: %s: User login. */
    883883                        __( 'Warning! User %s cannot be deleted.' ),
    884884                        $delete_user->user_login
     
    890890                wp_die(
    891891                    sprintf(
    892                         /* translators: %s: user login */
     892                        /* translators: %s: User login. */
    893893                        __( 'Warning! User cannot be deleted. The user %s is a network administrator.' ),
    894894                        '<em>' . $delete_user->user_login . '</em>'
     
    909909                <?php
    910910                printf(
    911                     /* translators: user login */
     911                    /* translators: User login. */
    912912                    __( 'What should be done with content owned by %s?' ),
    913913                    '<em>' . $delete_user->user_login . '</em>'
     
    942942                            <li>
    943943                                <?php
    944                                 /* translators: %s: link to user's site */
     944                                /* translators: %s: Link to user's site. */
    945945                                printf( __( 'Site: %s' ), $user_site );
    946946                                ?>
     
    11331133            '<p>' . __( '<strong>Users</strong> &mdash; This displays the users associated with this site. You can also change their role, reset their password, or remove them from the site. Removing the user from the site does not remove the user from the network.' ) . '</p>' .
    11341134            '<p>' . sprintf(
    1135                 /* translators: %s: URL to Network Themes screen */
     1135                /* translators: %s: URL to Network Themes screen. */
    11361136                __( '<strong>Themes</strong> &mdash; This area shows themes that are not already enabled across the network. Enabling a theme in this menu makes it accessible to this site. It does not activate the theme, but allows it to show in the site&#8217;s Appearance menu. To enable a theme for the entire network, see the <a href="%s">Network Themes</a> screen.' ),
    11371137                network_admin_url( 'themes.php' )
Note: See TracChangeset for help on using the changeset viewer.