From 42e7bfd9b503514ca6026c8ebd0e19d3b58b5e52 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 29 Oct 2015 19:03:47 +0000 Subject: [PATCH] REST API: Add missing translator comments for deprecated function and argument strings. Props akirk. Fixes #34486. git-svn-id: https://develop.svn.wordpress.org/trunk@35433 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/rest-functions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-includes/rest-api/rest-functions.php b/src/wp-includes/rest-api/rest-functions.php index c3f6be0d43..4dd69dd805 100644 --- a/src/wp-includes/rest-api/rest-functions.php +++ b/src/wp-includes/rest-api/rest-functions.php @@ -361,8 +361,10 @@ function rest_ensure_response( $response ) { */ function rest_handle_deprecated_function( $function, $replacement, $version ) { if ( ! empty( $replacement ) ) { + /* translators: 1: function name, 2: WordPress version number, 3: new function name */ $string = sprintf( __( '%1$s (since %2$s; use %3$s instead)' ), $function, $version, $replacement ); } else { + /* translators: 1: function name, 2: WordPress version number */ $string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version ); } @@ -380,8 +382,10 @@ function rest_handle_deprecated_function( $function, $replacement, $version ) { */ function rest_handle_deprecated_argument( $function, $replacement, $version ) { if ( ! empty( $replacement ) ) { + /* translators: 1: function name, 2: WordPress version number, 3: new argument name */ $string = sprintf( __( '%1$s (since %2$s; %3$s)' ), $function, $version, $replacement ); } else { + /* translators: 1: function name, 2: WordPress version number */ $string = sprintf( __( '%1$s (since %2$s; no alternative available)' ), $function, $version ); }