Use sprintf instead of interpolation in translatable strings. Props demetris, fixes #13286

git-svn-id: https://develop.svn.wordpress.org/trunk@14492 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Nikolay Bachiyski 2010-05-07 00:50:12 +00:00
parent a30c320a55
commit e076d0b0ac
1 changed files with 3 additions and 3 deletions

View File

@ -319,7 +319,7 @@ class WP_Import {
$catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name', 'category_description'); $catarr = compact('category_nicename', 'category_parent', 'posts_private', 'links_private', 'posts_private', 'cat_name', 'category_description');
print "<em>" . __( "Importing category $cat_name" ) . "</em><br />\n"; print '<em>' . sprintf( __( 'Importing category <em>%s</em>&#8230;' ), esc_html($cat_name) ) . '</em><br />' . "\n";
$cat_ID = wp_insert_category($catarr); $cat_ID = wp_insert_category($catarr);
} }
} }
@ -341,7 +341,7 @@ class WP_Import {
$tagarr = compact('slug', 'description'); $tagarr = compact('slug', 'description');
print "<em>" . __( "Importing tag $tag_name" ) . "</em><br />\n"; print '<em>' . sprintf( __( 'Importing tag <em>%s</em>&#8230;' ), esc_html($tag_name) ) . '</em><br />' . "\n";
$tag_ID = wp_insert_term($tag_name, 'post_tag', $tagarr); $tag_ID = wp_insert_term($tag_name, 'post_tag', $tagarr);
} }
} }
@ -379,7 +379,7 @@ class WP_Import {
$termarr = compact('slug', 'description'); $termarr = compact('slug', 'description');
print "<em>" . __( "Importing $term_name" ) . "</em><br />\n"; print '<em>' . sprintf( __( 'Importing <em>%s</em>&#8230;' ), esc_html($term_name) ) . '</em><br />' . "\n";
$term_ID = wp_insert_term($term_name, $this->get_tag( $c, 'wp:term_taxonomy' ), $termarr); $term_ID = wp_insert_term($term_name, $this->get_tag( $c, 'wp:term_taxonomy' ), $termarr);
} }
} }