Ticket #16012: textpattern-importer-i18n-fix.patch
File textpattern-importer-i18n-fix.patch, 1.1 KB (added by , 14 years ago) |
---|
-
trunk/textpattern-importer.php
702 702 } 703 703 } 704 704 705 $txp_import = new Textpattern_Import();706 707 register_importer('textpattern', __('TextPattern', 'textpattern-importer'), __('Import categories, users, posts, comments, and links from a TextPattern blog.', 'textpattern-importer'), array ($txp_import, 'dispatch'));708 709 705 } // class_exists( 'WP_Importer' ) 710 706 711 707 function textpattern_importer_init() { 712 708 load_plugin_textdomain( 'textpattern-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 709 710 $txp_import = new Textpattern_Import(); 711 register_importer('textpattern', __('TextPattern', 'textpattern-importer'), __('Import categories, users, posts, comments, and links from a TextPattern blog.', 'textpattern-importer'), array ($txp_import, 'dispatch')); 713 712 } 714 add_action( ' init', 'textpattern_importer_init' );713 add_action( 'admin_init', 'textpattern_importer_init' );