Ticket #16012: opml-importer-i18n-fix.patch
File opml-importer-i18n-fix.patch, 1.1 KB (added by , 14 years ago) |
---|
-
trunk/opml-importer.php
22 22 require_once $class_wp_importer; 23 23 } 24 24 25 /** Load WordPress Administration Bootstrap */26 $parent_file = 'tools.php';27 $submenu_file = 'import.php';28 $title = __('Import Blogroll', 'opml-importer');29 30 25 /** 31 26 * OPML Importer 32 27 * … … 168 163 function OPML_Import() {} 169 164 } 170 165 171 $opml_importer = new OPML_Import();172 173 register_importer('opml', __('Blogroll', 'opml-importer'), __('Import links in OPML format.', 'opml-importer'), array(&$opml_importer, 'dispatch'));174 175 166 } // class_exists( 'WP_Importer' ) 176 167 177 168 function opml_importer_init() { 178 169 load_plugin_textdomain( 'opml-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 170 171 $opml_importer = new OPML_Import(); 172 register_importer('opml', __('Blogroll', 'opml-importer'), __('Import links in OPML format.', 'opml-importer'), array(&$opml_importer, 'dispatch')); 179 173 } 180 add_action( ' init', 'opml_importer_init' );174 add_action( 'admin_init', 'opml_importer_init' );