WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/01/2019 05:12:43 PM (6 weeks ago)
Author:
SergeyBiryukov
Message:

I18N: Improve translator comments.

  • Add missing translator comments.
  • Fix placement of some translator comments. Translator comments should be on the line directly above the line containing the translation function call for optimal compatibility with various .pot file generation tools. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of translator comments.

Includes minor code layout fixes.

Polyglots, rejoice! All WordPress core files now have translator comments for all strings with placeholders!

Props jrf, subrataemfluence, GaryJ, webdados, Dency, swissspidy, alvarogois, marcomartins, mihaiiceyro, vladwtz, niq1982, flipkeijzer, michielatyoast, chandrapatel, thrijith, joshuanoyce, FesoVik, tessak22, bhaktirajdev, cleancoded, dhavalkasvala, garrett-eclipse, bibliofille, socalchristina, priyankkpatel, 5hel2l2y, adamsilverstein, JeffPaul, pierlo, SergeyBiryukov.
Fixes #44360.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/sites.php

    r45674 r45926  
    6262    // A list of valid actions and their associated messaging for confirmation output.
    6363    $manage_actions = array(
     64        /* translators: %s: Site URL */
    6465        'activateblog'   => __( 'You are about to activate the site %s.' ),
     66        /* translators: %s: Site URL */
    6567        'deactivateblog' => __( 'You are about to deactivate the site %s.' ),
     68        /* translators: %s: Site URL */
    6669        'unarchiveblog'  => __( 'You are about to unarchive the site %s.' ),
     70        /* translators: %s: Site URL */
    6771        'archiveblog'    => __( 'You are about to archive the site %s.' ),
     72        /* translators: %s: Site URL */
    6873        'unspamblog'     => __( 'You are about to unspam the site %s.' ),
     74        /* translators: %s: Site URL */
    6975        'spamblog'       => __( 'You are about to mark the site %s as spam.' ),
     76        /* translators: %s: Site URL */
    7077        'deleteblog'     => __( 'You are about to delete the site %s.' ),
     78        /* translators: %s: Site URL */
    7179        'unmatureblog'   => __( 'You are about to mark the site %s as mature.' ),
     80        /* translators: %s: Site URL */
    7281        'matureblog'     => __( 'You are about to mark the site %s as not mature.' ),
    7382    );
     
    153162                    $site_address = untrailingslashit( $site->domain . $site->path );
    154163
    155                     wp_die( sprintf( __( 'Sorry, you are not allowed to delete the site %s.' ), $site_address ), 403 );
     164                    wp_die(
     165                        sprintf(
     166                            /* translators: %s: Site URL */
     167                            __( 'Sorry, you are not allowed to delete the site %s.' ),
     168                            $site_address
     169                        ),
     170                        403
     171                    );
    156172                }
    157173
Note: See TracChangeset for help on using the changeset viewer.