Ticket #16012: rss-importer-i18n-fix.patch
File rss-importer-i18n-fix.patch, 853 bytes (added by , 14 years ago) |
---|
-
trunk/rss-importer.php
214 214 } 215 215 } 216 216 217 $rss_import = new RSS_Import();218 219 register_importer('rss', __('RSS', 'rss-importer'), __('Import posts from an RSS feed.', 'rss-importer'), array ($rss_import, 'dispatch'));220 221 217 } // class_exists( 'WP_Importer' ) 222 218 223 219 function rss_importer_init() { 224 220 load_plugin_textdomain( 'rss-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); 221 222 $rss_import = new RSS_Import(); 223 register_importer('rss', __('RSS', 'rss-importer'), __('Import posts from an RSS feed.', 'rss-importer'), array ($rss_import, 'dispatch')); 225 224 } 226 add_action( ' init', 'rss_importer_init' );225 add_action( 'admin_init', 'rss_importer_init' );