]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/import/blogware.php
Wordpress 2.5.1
[autoinstalls/wordpress.git] / wp-admin / import / blogware.php
index d85fd92107af068a935e83b22d134513b1e0cbfd..6bb63a7bdf3bfc0220b8da5b448c2a9a1e2dc9a4 100644 (file)
@@ -86,9 +86,9 @@ class BW_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 ) ) {
@@ -141,7 +141,7 @@ class BW_Import {
                        }
                        if ( $num_comments ) {
                                echo ' ';
-                               printf(__('(%s comments)'), $num_comments);
+                               printf( __ngettext('%s comment', '%s comments', $num_comments), $num_comments );
                        }
                        echo '</li>';
                        flush();
@@ -162,7 +162,7 @@ class BW_Import {
                if ( is_wp_error( $result ) )
                        return $result;
                wp_import_cleanup($file['id']);
-
+               do_action('import_done', 'blogware');
                echo '<h3>';
                printf(__('All done. <a href="%s">Have fun!</a>'), get_option('home'));
                echo '</h3>';
@@ -197,5 +197,5 @@ class BW_Import {
 
 $blogware_import = new BW_Import();
 
-register_importer('blogware', __('Blogware'), __('Import posts from Blogware'), array ($blogware_import, 'dispatch'));
+register_importer('blogware', __('Blogware'), __('Import posts from Blogware.'), array ($blogware_import, 'dispatch'));
 ?>