From 80439d1c48747708a08dac20123772eeb470c6bd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 23 Aug 2016 23:52:31 +0000 Subject: [PATCH] I18N: Add translator comments for strings in `wp-includes/functions.wp-scripts.php`. Props ramiy. Fixes #37803. git-svn-id: https://develop.svn.wordpress.org/trunk@38345 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.wp-scripts.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/functions.wp-scripts.php b/src/wp-includes/functions.wp-scripts.php index 767d995d67..315d69f8d0 100644 --- a/src/wp-includes/functions.wp-scripts.php +++ b/src/wp-includes/functions.wp-scripts.php @@ -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.' ), 'wp_enqueue_scripts', 'admin_enqueue_scripts', @@ -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.' ), - "$handle", 'wp_enqueue_scripts' ); + $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.' ), + "$handle", + 'wp_enqueue_scripts' + ); _doing_it_wrong( __FUNCTION__, $message, '3.6.0' ); return; }