Make WordPress Core

Ticket #16012: blogger-importer-i18n-fix.patch

File blogger-importer-i18n-fix.patch, 1.0 KB (added by SergeyBiryukov, 13 years ago)
  • trunk/blogger-importer.php

     
    904904        }
    905905}
    906906
    907 $blogger_import = new Blogger_Import();
    908 
    909 register_importer('blogger', __('Blogger', 'blogger-importer'), __('Import posts, comments, and users from a Blogger blog.', 'blogger-importer'), array ($blogger_import, 'start'));
    910 
    911907class AtomEntry {
    912908        var $links = array();
    913909        var $categories = array();
     
    10951091
    10961092function blogger_importer_init() {
    10971093    load_plugin_textdomain( 'blogger-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
     1094
     1095        $blogger_import = new Blogger_Import();
     1096        register_importer('blogger', __('Blogger', 'blogger-importer'), __('Import posts, comments, and users from a Blogger blog.', 'blogger-importer'), array ($blogger_import, 'start'));
    10981097}
    1099 add_action( 'init', 'blogger_importer_init' );
     1098add_action( 'admin_init', 'blogger_importer_init' );