WordPress.org

Make WordPress Core

Changeset 38345


Ignore:
Timestamp:
08/23/2016 11:52:31 PM (3 years ago)
Author:
SergeyBiryukov
Message:

I18N: Add translator comments for strings in wp-includes/functions.wp-scripts.php.

Props ramiy.
Fixes #37803.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.wp-scripts.php

    r37985 r38345  
    4040
    4141    _doing_it_wrong( $function, sprintf(
     42        /* translators: 1: wp_enqueue_scripts, 2: admin_enqueue_scripts, 3: login_enqueue_scripts */
    4243        __( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
    4344        '<code>wp_enqueue_scripts</code>',
     
    225226
    226227        if ( in_array( $handle, $no ) ) {
    227             $message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
    228                 "<code>$handle</code>", '<code>wp_enqueue_scripts</code>' );
     228            $message = sprintf(
     229                /* translators: 1: script name, 2: wp_enqueue_scripts */
     230                __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
     231                "<code>$handle</code>",
     232                '<code>wp_enqueue_scripts</code>'
     233            );
    229234            _doing_it_wrong( __FUNCTION__, $message, '3.6.0' );
    230235            return;
Note: See TracChangeset for help on using the changeset viewer.