]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/import/btt.php
Wordpress 2.5.1
[autoinstalls/wordpress.git] / wp-admin / import / btt.php
index 76a02c32d98b631b8b16dfe21c65378e42d15574..4bd884c87c52ed625949ecadf90ea165e8088e9c 100644 (file)
@@ -14,13 +14,13 @@ class BunnyTags_Import {
 
        function greet() {
                echo '<div class="narrow">';
-               echo '<p>'.__('Howdy! This imports tags from an existing Bunny&#8217;s Technorati Tags installation into this blog using the new WordPress native tagging structure.').'</p>';
+               echo '<p>'.__('Howdy! This imports tags from Bunny&#8217;s Technorati Tags into WordPress tags.').'</p>';
                echo '<p>'.__('This is suitable for Bunny&#8217;s Technorati Tags version 0.6.').'</p>';
                echo '<p><strong>'.__('All existing Bunny&#8217;s Technorati Tags will be removed after import.').'</strong></p>';
                echo '<p><strong>'.__('Don&#8217;t be stupid - backup your database before proceeding!').'</strong></p>';
                echo '<form action="admin.php?import=btt&amp;step=1" method="post">';
                wp_nonce_field('import-btt');
-               echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Tags &raquo;').'" /></p>';
+               echo '<p class="submit"><input type="submit" name="submit" value="'.__('Import Tags').'" /></p>';
                echo '</form>';
                echo '</div>';
        }
@@ -29,7 +29,7 @@ class BunnyTags_Import {
                if ( empty($_GET['step']) )
                        $step = 0;
                else
-                       $step = abs(intval($_GET['step']));
+                       $step = absint($_GET['step']);
 
                // load the header
                $this->header();
@@ -61,14 +61,14 @@ class BunnyTags_Import {
                echo '<div class="narrow">';
                echo '<p><h3>'.__('Reading Bunny&#8217;s Technorati Tags&#8230;').'</h3></p>';
 
-               // import Bunny's Keywords tags 
+               // import Bunny's Keywords tags
                $metakeys = $wpdb->get_results("SELECT post_id, meta_id, meta_key, meta_value FROM $wpdb->postmeta WHERE $wpdb->postmeta.meta_key = 'tags'");
                if ( !is_array($metakeys)) {
                        echo '<p>' . __('No Tags Found!') . '</p>';
                        return false;
                } else {
                        $count = count($metakeys);
-                       echo '<p>' . sprintf( __('Done! <strong>%s</strong> posts with tags were read.'), $count ) . '<br /></p>';
+                       echo '<p>' . sprintf( __ngettext('Done! <strong>%s</strong> post with tags were read.', 'Done! <strong>%s</strong> posts with tags were read.', $count), $count ) . '<br /></p>';
                        echo '<ul>';
                        foreach ( $metakeys as $post_meta ) {
                                if ( $post_meta->meta_value != '' ) {
@@ -90,7 +90,7 @@ class BunnyTags_Import {
 
                echo '<form action="admin.php?import=btt&amp;step='.($precheck? 2:3).'" method="post">';
                wp_nonce_field('import-btt');
-               echo '<p class="submit"><input type="submit" name="submit" value="'.__('Next &raquo;').'" /></p>';
+               echo '<p class="submit"><input type="submit" name="submit" value="'.__('Next').'" /></p>';
                echo '</form>';
                echo '</div>';
        }
@@ -110,6 +110,6 @@ class BunnyTags_Import {
 $btt_import = new BunnyTags_Import();
 
 // add it to the import page!
-register_importer('btt', 'Bunny&#8217;s Technorati Tags', __('Import Bunny&#8217;s Technorati Tags into the new native tagging structure.'), array($btt_import, 'dispatch'));
+register_importer('btt', 'Bunny&#8217;s Technorati Tags', __('Import Bunny&#8217;s Technorati Tags into WordPress tags.'), array($btt_import, 'dispatch'));
 
 ?>