From e30516b2ee40c1c45c8f288c20a3d4372e478624 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 8 Sep 2006 10:57:32 +0000 Subject: WP Merge to #4124 git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@734 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-admin/import/mt.php | 47 +++++++++++++++++++++++++++++++++++++---------- 1 file changed, 37 insertions(+), 10 deletions(-) (limited to 'wp-admin/import/mt.php') diff --git a/wp-admin/import/mt.php b/wp-admin/import/mt.php index 59259ea..bf33718 100644 --- a/wp-admin/import/mt.php +++ b/wp-admin/import/mt.php @@ -32,7 +32,7 @@ class MT_Import { global $wpdb, $testing; $users = get_users_of_blog($wpdb->blogid); ?>'; + echo '
  • '.__('Current author:').' '.$author.'
    '.sprintf(__('Create user %1$s or map to existing'), '
    '); $this->users_form($j); echo '
  • '; } - echo ''.'
    '; + echo ''.'
    '; echo ''; echo ''; @@ -138,7 +162,10 @@ class MT_Import { function select_authors() { $file = wp_import_handle_upload(); if ( isset($file['error']) ) { - echo $file['error']; + $this->header(); + echo '

    '.__('Sorry, there has been an error').'.

    '; + echo '

    ' . $file['error'] . '

    '; + $this->footer(); return; } $this->file = $file['file']; @@ -170,7 +197,7 @@ class MT_Import { // We want the excerpt preg_match("|-----\nEXCERPT:(.*)|s", $post, $excerpt); - $excerpt = $wpdb->escape(trim($excerpt[1])); + $post_excerpt = $wpdb->escape(trim($excerpt[1])); $post = preg_replace("|(-----\nEXCERPT:.*)|s", '', $post); // We're going to put extended body into main body with a more tag @@ -307,7 +334,7 @@ class MT_Import { } } if ( $num_comments ) - printf(__(' (%s comments)'), $num_comments); + printf(' '.__('(%s comments)'), $num_comments); // Finally the pings // fix the double newline on the first one @@ -355,7 +382,7 @@ class MT_Import { } } if ( $num_pings ) - printf(__(' (%s pings)'), $num_pings); + printf(' '.__('(%s pings)'), $num_pings); echo ""; } @@ -403,5 +430,5 @@ class MT_Import { $mt_import = new MT_Import(); -register_importer('mt', 'Movable Type and Typepad', __('Imports posts and comments from your Movable Type or Typepad blog'), array ($mt_import, 'dispatch')); +register_importer('mt', __('Movable Type and Typepad'), __('Imports posts and comments from your Movable Type or Typepad blog'), array ($mt_import, 'dispatch')); ?> -- cgit