WordPress.org

Plugin Directory

Changeset 543563


Ignore:
Timestamp:
05/13/12 01:21:23 (2 years ago)
Author:
jeremyfelt
Message:

Totally forgot the language stuff.

Location:
youtube-favorite-video-posts/trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • youtube-favorite-video-posts/trunk/youtube-favorite-video-posts.php

    r543562 r543563  
    4040        add_action( 'admin_menu', array( $this, 'add_settings' ) ); 
    4141        add_action( 'admin_init', array( $this, 'register_settings' ) ); 
    42  
     42        add_action( 'admin_init', array( $this, 'add_languages' ) ); 
    4343        /* Register the jf_yfvp_youtube custom post type */ 
    4444        add_action( 'init', array( $this, 'create_content_type' ) ); 
     
    7676    public function deactivate_plugin(){ 
    7777        wp_clear_scheduled_hook( 'jf_yfvp_process_feed' ); 
     78    } 
     79 
     80    /** 
     81     * Add the text domain for plugin translation 
     82     */ 
     83    public function add_languages() { 
     84        load_plugin_textdomain( 'youtube-favorite-video-posts', false, basename( dirname( __FILE__ ) ) . '/lang' ); 
    7885    } 
    7986 
Note: See TracChangeset for help on using the changeset viewer.