Remove unnecessary `echo()`, add translator comment.

props ramiy.
fixes #31873.

git-svn-id: https://develop.svn.wordpress.org/trunk@31986 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2015-04-02 19:00:08 +00:00
parent 2563a4f802
commit 08e6f5306e
1 changed files with 7 additions and 4 deletions

View File

@ -75,9 +75,12 @@ $xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
if ( ! xml_parse( $xml_parser, $opml, true ) ) {
echo(sprintf(__('XML error: %1$s at line %2$s'),
printf(
/* translators: 1: error message, 2: line number */
__( 'XML Error: %1$s at line %2$s' ),
xml_error_string( xml_get_error_code( $xml_parser ) ),
xml_get_current_line_number($xml_parser)));
xml_get_current_line_number( $xml_parser )
);
}
// Free up memory used by the XML parser