X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/69ac90aac5f1f0c980444b182c6d03659fbc7e7a..959f97d8ecd5c1668103a3e41c795486b944bc68:/wp-admin/import/btt.php?ds=sidebyside diff --git a/wp-admin/import/btt.php b/wp-admin/import/btt.php index 76a02c32..4bd884c8 100644 --- a/wp-admin/import/btt.php +++ b/wp-admin/import/btt.php @@ -14,13 +14,13 @@ class BunnyTags_Import { function greet() { echo '
'; - echo '

'.__('Howdy! This imports tags from an existing Bunny’s Technorati Tags installation into this blog using the new WordPress native tagging structure.').'

'; + echo '

'.__('Howdy! This imports tags from Bunny’s Technorati Tags into WordPress tags.').'

'; echo '

'.__('This is suitable for Bunny’s Technorati Tags version 0.6.').'

'; echo '

'.__('All existing Bunny’s Technorati Tags will be removed after import.').'

'; echo '

'.__('Don’t be stupid - backup your database before proceeding!').'

'; echo '
'; wp_nonce_field('import-btt'); - echo '

'; + echo '

'; echo '
'; echo '
'; } @@ -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 '
'; echo '

'.__('Reading Bunny’s Technorati Tags…').'

'; - // 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 '

' . __('No Tags Found!') . '

'; return false; } else { $count = count($metakeys); - echo '

' . sprintf( __('Done! %s posts with tags were read.'), $count ) . '

'; + echo '

' . sprintf( __ngettext('Done! %s post with tags were read.', 'Done! %s posts with tags were read.', $count), $count ) . '

'; echo '
'; } @@ -110,6 +110,6 @@ class BunnyTags_Import { $btt_import = new BunnyTags_Import(); // add it to the import page! -register_importer('btt', 'Bunny’s Technorati Tags', __('Import Bunny’s Technorati Tags into the new native tagging structure.'), array($btt_import, 'dispatch')); +register_importer('btt', 'Bunny’s Technorati Tags', __('Import Bunny’s Technorati Tags into WordPress tags.'), array($btt_import, 'dispatch')); ?>