Skip to content

Commit

Permalink
load translation textdomain and file
Browse files Browse the repository at this point in the history
  • Loading branch information
franz-josef-kaiser committed Jan 30, 2013
1 parent cfc5656 commit c00a29a
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions bootstrap.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: (WCM) Filterama
* Plugin URI: http://example.com
* Description: Adds one taxonomy filter/drop-down/select box for each taxonomy attached to a (custom) post types list in the admin post list page.
* Version: 0.3.5
* Version: 0.4
* Author: Franz Josef Kaiser <wecodemore@gmail.com>
* Author URI: http://example.com
* Contributors: userabuser, kai-ser
Expand All @@ -28,12 +28,21 @@ static function init()

public function __construct()
{
add_action( 'load-edit.php', array( $this, 'load' ), 0 );
add_action( 'load-edit.php', array( $this, 'load_files' ), 0 );
add_action( 'load-edit.php', array( $this, 'load_l18n' ), 0 );
}

public function load()
public function load_files()
{
foreach ( glob( plugin_dir_path( __FILE__ ).'inc/*.php' ) as $file )
require_once $file;
}

public function l18n()
{
load_theme_textdomain(
'filterama'
,plugin_dir_path( __FILE__ ).'/lang'
);
}
}

0 comments on commit c00a29a

Please sign in to comment.