summaryrefslogtreecommitdiffstats
path: root/wp-admin/import/livejournal.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-04-04 16:44:15 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-04-04 16:44:15 +0000
commit7740e89de3e1bc0cc636120e3ca8ab9e97e4d3cc (patch)
treec6fd23b598f3994eddb18cb1c0f2e8d95ff054fa /wp-admin/import/livejournal.php
parentf650f48c048bfbbb2ae702b6425d87e39358d748 (diff)
Merged with WordPress 2.5, unstable, only for testing
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1218 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-admin/import/livejournal.php')
-rw-r--r--wp-admin/import/livejournal.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/wp-admin/import/livejournal.php b/wp-admin/import/livejournal.php
index 81f0365..bd8394e 100644
--- a/wp-admin/import/livejournal.php
+++ b/wp-admin/import/livejournal.php
@@ -66,9 +66,9 @@ class LJ_Import {
echo '<li>';
if ($post_id = post_exists($post_title, $post_content, $post_date)) {
- printf(__('Post <i>%s</i> already exists.'), stripslashes($post_title));
+ printf(__('Post <em>%s</em> already exists.'), stripslashes($post_title));
} else {
- printf(__('Importing post <i>%s</i>...'), stripslashes($post_title));
+ printf(__('Importing post <em>%s</em>...'), stripslashes($post_title));
$postdata = compact('post_author', 'post_date', 'post_content', 'post_title', 'post_status');
$post_id = wp_insert_post($postdata);
if ( is_wp_error( $post_id ) )
@@ -119,7 +119,7 @@ class LJ_Import {
}
if ( $num_comments ) {
echo ' ';
- printf(__('(%s comments)'), $num_comments);
+ printf(__ngettext('(%s comment)', '(%s comments)', $num_comments), $num_comments);
}
echo '</li>';
}
@@ -138,6 +138,7 @@ class LJ_Import {
if ( is_wp_error( $result ) )
return $result;
wp_import_cleanup($file['id']);
+ do_action('import_done', 'livejournal');
echo '<h3>';
printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
@@ -174,5 +175,5 @@ class LJ_Import {
$livejournal_import = new LJ_Import();
-register_importer('livejournal', __('LiveJournal'), __('Import posts from a LiveJournal XML export file'), array ($livejournal_import, 'dispatch'));
+register_importer('livejournal', __('LiveJournal'), __('Import posts from a LiveJournal XML export file.'), array ($livejournal_import, 'dispatch'));
?>