Plugin Directory

Changeset 333288


Ignore:
Timestamp:
01/16/2011 07:26:26 PM (15 years ago)
Author:
jameslafferty
Message:

Setup for i18n support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • term-menu-order/trunk/lib/ns_tmo_plugin.class.php

    r323804 r333288  
    1313    private static $taxonomies;
    1414   
     15    private static $textdomain = 'mailchimp-widget';
     16   
    1517    private function __construct () {
    1618       
     
    2628       
    2729        add_action('init', array(&$this, 'init'));
     30       
     31        self::load_text_domain();
    2832       
    2933    }
     
    146150    }
    147151   
     152    private static function load_text_domain () {
     153       
     154        load_plugin_textdomain(self::$textdomain, null, str_replace('lib', 'languages', dirname(plugin_basename(__FILE__))));
     155       
     156    }
     157   
    148158}
    149159
Note: See TracChangeset for help on using the changeset viewer.