Ticket #16012: stp-importer-i18n-fix.patch
File stp-importer-i18n-fix.patch, 989 bytes (added by , 14 years ago) |
---|
-
trunk/stp-importer.php
178 178 } 179 179 } 180 180 181 // create the import object182 $stp_import = new STP_Import();183 184 // add it to the import page!185 register_importer('stp', 'Simple Tagging', __('Import Simple Tagging tags into WordPress tags.', 'stp-importer'), array($stp_import, 'dispatch'));186 187 181 } // class_exists( 'WP_Importer' ) 188 182 189 183 function stp_importer_init() { 190 184 load_plugin_textdomain( 'stp-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 185 186 // create the import object 187 $stp_import = new STP_Import(); 188 // add it to the import page! 189 register_importer('stp', 'Simple Tagging', __('Import Simple Tagging tags into WordPress tags.', 'stp-importer'), array($stp_import, 'dispatch')); 191 190 } 192 add_action( ' init', 'stp_importer_init' );191 add_action( 'admin_init', 'stp_importer_init' );