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

Props ramiy.
Fixes #37803.
Built from https://develop.svn.wordpress.org/trunk@38345


git-svn-id: http://core.svn.wordpress.org/trunk@38286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-08-23 23:53:27 +00:00
parent d64e4beb67
commit d611efe5b1
2 changed files with 8 additions and 3 deletions

View File

@ -39,6 +39,7 @@ function _wp_scripts_maybe_doing_it_wrong( $function ) {
}
_doing_it_wrong( $function, sprintf(
/* translators: 1: wp_enqueue_scripts, 2: admin_enqueue_scripts, 3: login_enqueue_scripts */
__( 'Scripts and styles should not be registered or enqueued until the %1$s, %2$s, or %3$s hooks.' ),
'<code>wp_enqueue_scripts</code>',
'<code>admin_enqueue_scripts</code>',
@ -224,8 +225,12 @@ function wp_deregister_script( $handle ) {
);
if ( in_array( $handle, $no ) ) {
$message = sprintf( __( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
"<code>$handle</code>", '<code>wp_enqueue_scripts</code>' );
$message = sprintf(
/* translators: 1: script name, 2: wp_enqueue_scripts */
__( 'Do not deregister the %1$s script in the administration area. To target the front-end theme, use the %2$s hook.' ),
"<code>$handle</code>",
'<code>wp_enqueue_scripts</code>'
);
_doing_it_wrong( __FUNCTION__, $message, '3.6.0' );
return;
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.7-alpha-38344';
$wp_version = '4.7-alpha-38345';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.