From e318b5bf1d675a70a829fc80a7aea2668a42c357 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 2 Sep 2016 04:13:28 +0000 Subject: [PATCH] I18N: Add translator comments for XML-RPC strings with placeholders. See #37792. Built from https://develop.svn.wordpress.org/trunk@38510 git-svn-id: http://core.svn.wordpress.org/trunk@38451 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 8 +++++--- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index fe4c35ecc6..fa776461c8 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -5812,8 +5812,9 @@ class wp_xmlrpc_server extends IXR_Server { $upload = wp_upload_bits($name, null, $bits); if ( ! empty($upload['error']) ) { - $errorString = sprintf(__('Could not write file %1$s (%2$s).'), $name, $upload['error']); - return new IXR_Error(500, $errorString); + /* translators: 1: file name, 2: error message */ + $errorString = sprintf( __( 'Could not write file %1$s (%2$s).' ), $name, $upload['error'] ); + return new IXR_Error( 500, $errorString ); } // Construct the attachment array $post_id = 0; @@ -6383,7 +6384,8 @@ class wp_xmlrpc_server extends IXR_Server { */ do_action( 'pingback_post', $comment_ID ); - return sprintf(__('Pingback from %1$s to %2$s registered. Keep the web talking! :-)'), $pagelinkedfrom, $pagelinkedto); + /* translators: 1: URL of the page linked from, 2: URL of the page linked to */ + return sprintf( __( 'Pingback from %1$s to %2$s registered. Keep the web talking! :-)' ), $pagelinkedfrom, $pagelinkedto ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index c1ade2b3e8..e852674968 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-alpha-38509'; +$wp_version = '4.7-alpha-38510'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.