Permalink
Browse files

textdomain loaded

  • Loading branch information...
1 parent 30addcc commit e2fe9cedac8145139c4ef461b9aab13677e9a4df @piffpaffpuff piffpaffpuff committed Feb 28, 2012
Showing with 8 additions and 8 deletions.
  1. +3 −3 classes/class-wcdn-base.php
  2. +3 −3 classes/class-wcdn-settings.php
  3. +2 −2 classes/class-wcdn-writepanel.php
@@ -28,16 +28,16 @@ public function __construct() {
$this->plugin_path = plugin_dir_path( $this->plugin_basefile );
if ( $this->is_woocommerce_activated() ) {
- add_action( 'init', array( $this, 'load_all_hooks' ) );
+ add_action( 'init', array( $this, 'load_textdomain' ) );
}
}
/**
- * Load the hooks
+ * Load the text domain
*
* @since 1.0
*/
- public function load_all_hooks() {
+ public function load_textdomain() {
load_plugin_textdomain( 'woocommerce-delivery-notes', false, $this->plugin_basename . '/languages' );
}
@@ -24,7 +24,7 @@ public function __construct() {
$this->hidden_submit = $this->prefix . 'submit';
if ( $this->is_woocommerce_activated() ) {
- add_action( 'admin_init', array( $this, 'load_all_hooks' ) );
+ add_action( 'admin_init', array( $this, 'load_hooks' ) );
}
}
@@ -33,7 +33,7 @@ public function __construct() {
*
* @since 1.0
*/
- public function load_all_hooks() {
+ public function load_hooks() {
add_filter( 'plugin_action_links_' . $this->plugin_basefile, array( $this, 'add_settings_link') );
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_tab') );
add_action( 'woocommerce_settings_tabs_' . $this->tab_name, array( $this, 'create_settings_page') );
@@ -112,7 +112,7 @@ public function add_help_tabs() {
* @since 1.0
*/
public function add_settings_tab($tabs) {
- $tabs[$this->tab_name] = __( 'Delivery Notes', 'woocommerce-delivery-notes' );
+ $tabs[$this->tab_name] = __( 'Delivery Note', 'woocommerce-delivery-notes' );
return $tabs;
}
@@ -18,7 +18,7 @@ public function __construct() {
parent::__construct();
if ( $this->is_woocommerce_activated() ) {
- add_action( 'admin_init', array( $this, 'load_all_hooks' ) );
+ add_action( 'admin_init', array( $this, 'load_hooks' ) );
}
}
@@ -27,7 +27,7 @@ public function __construct() {
*
* @since 1.0
*/
- public function load_all_hooks() {
+ public function load_hooks() {
add_filter( 'plugin_row_meta', array( $this, 'add_support_links' ), 10, 2 );
add_action( 'add_meta_boxes_shop_order', array( $this, 'add_box' ) );
}

0 comments on commit e2fe9ce

Please sign in to comment.