]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/import/stp.php
Wordpress 2.9.1-scripts
[autoinstalls/wordpress.git] / wp-admin / import / stp.php
index 9d5371cf5d81694ad89eb7e7516f81af2f29475e..4568428c992b5c47cd3a0282fe4431f42e603aae 100644 (file)
@@ -1,7 +1,22 @@
 <?php
+/**
+ * Simple Tags Plugin Importer
+ *
+ * @package WordPress
+ * @subpackage Importer
+ */
+
+/**
+ * Simple Tags Plugin Tags converter class.
+ *
+ * Will convert Simple Tags Plugin tags over to the WordPress 2.3 taxonomy.
+ *
+ * @since unknown
+ */
 class STP_Import {
        function header()  {
                echo '<div class="wrap">';
+               screen_icon();
                echo '<h2>'.__('Import Simple Tagging').'</h2>';
                echo '<p>'.__('Steps may take a few minutes depending on the size of your database. Please be patient.').'<br /><br /></p>';
        }
@@ -12,13 +27,13 @@ class STP_Import {
 
        function greet() {
                echo '<div class="narrow">';
-               echo '<p>'.__('Howdy! This imports tags from an existing Simple Tagging 1.6.2 installation into this blog using the new WordPress native tagging structure.').'</p>';
+               echo '<p>'.__('Howdy! This imports tags from Simple Tagging 1.6.2 into WordPress tags.').'</p>';
                echo '<p>'.__('This has not been tested on any other versions of Simple Tagging. Mileage may vary.').'</p>';
                echo '<p>'.__('To accommodate larger databases for those tag-crazy authors out there, we have made this into an easy 4-step program to help you kick that nasty Simple Tagging habit. Just keep clicking along and we will let you know when you are in the clear!').'</p>';
                echo '<p><strong>'.__('Don&#8217;t be stupid - backup your database before proceeding!').'</strong></p>';
                echo '<form action="admin.php?import=stp&amp;step=1" method="post">';
                wp_nonce_field('import-stp');
-               echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 1 &raquo;').'" /></p>';
+               echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.esc_attr__('Step 1').'" /></p>';
                echo '</form>';
                echo '</div>';
        }
@@ -70,15 +85,15 @@ class STP_Import {
                        if ( get_option('stpimp_posts') ) {
                                delete_option('stpimp_posts');
                        }
-                       
+
                        add_option('stpimp_posts', $posts);
                        $count = count($posts);
-                       echo '<p>' . sprintf( __('Done! <strong>%s</strong> tag to post relationships were read.'), $count ) . '<br /></p>';
+                       echo '<p>' . sprintf( _n('Done! <strong>%s</strong> tag to post relationships were read.', 'Done! <strong>%s</strong> tags to post relationships were read.', $count), $count ) . '<br /></p>';
                }
 
                echo '<form action="admin.php?import=stp&amp;step=2" method="post">';
                wp_nonce_field('import-stp');
-               echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 2 &raquo;').'" /></p>';
+               echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.esc_attr__('Step 2').'" /></p>';
                echo '</form>';
                echo '</div>';
        }
@@ -87,14 +102,14 @@ class STP_Import {
        function import_t2p ( ) {
                echo '<div class="narrow">';
                echo '<p><h3>'.__('Adding Tags to Posts&#8230;').'</h3></p>';
-               
+
                // run that funky magic!
                $tags_added = $this->tag2post();
-               
-               echo '<p>' . sprintf( __('Done! <strong>%s</strong> tags where added!'), $tags_added ) . '<br /></p>';
+
+               echo '<p>' . sprintf( _n('Done! <strong>%s</strong> tag was added!', 'Done! <strong>%s</strong> tags were added!', $tags_added), $tags_added ) . '<br /></p>';
                echo '<form action="admin.php?import=stp&amp;step=3" method="post">';
                wp_nonce_field('import-stp');
-               echo '<p class="submit"><input type="submit" name="submit" value="'.__('Step 3 &raquo;').'" /></p>';
+               echo '<p class="submit"><input type="submit" name="submit" class="button" value="'.esc_attr__('Step 3').'" /></p>';
                echo '</form>';
                echo '</div>';
        }
@@ -151,5 +166,5 @@ class STP_Import {
 $stp_import = new STP_Import();
 
 // add it to the import page!
-register_importer('stp', 'Simple Tagging', __('Import Simple Tagging tags into the new native tagging structure.'), array($stp_import, 'dispatch'));
-?>
\ No newline at end of file
+register_importer('stp', 'Simple Tagging', __('Import Simple Tagging tags into WordPress tags.'), array($stp_import, 'dispatch'));
+?>