WordPress.org

Plugin Directory

Changeset 610095


Ignore:
Timestamp:
10/09/12 17:41:50 (19 months ago)
Author:
MattyRob
Message:

Call i18n code via a hook - props by dimadin

Location:
subscribe2/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • subscribe2/trunk/ReadMe.txt

    r609897 r610095  
    329329* Improve AJAX form to obey the shortcode hide parameter - proposed by bwsl 
    330330* Correct spelling error in the Settings page - proposed by dimadin 
     331* Call translation code via a hook to allow greater dynamic control - proposed by dimadin 
    331332 
    332333= Version 8.5 by Matthew Robinson = 
  • subscribe2/trunk/classes/class-s2-core.php

    r609682 r610095  
    22class s2class { 
    33// variables and constructor are declared at the end 
     4    /** 
     5    Load translations 
     6    */ 
     7    function load_translations() { 
     8        load_plugin_textdomain('subscribe2', false, S2DIR); 
     9    } // end load_translations() 
     10 
    411    /** 
    512    Load all our strings 
     
    16591666        $this->wp_release = $tmp[0]; 
    16601667 
    1661         load_plugin_textdomain('subscribe2', false, S2DIR); 
    1662  
    16631668        // Is this WordPressMU or not? 
    16641669        if ( isset($wpmu_version) || strpos($wp_version, 'wordpress-mu') ) { 
     
    16791684        } 
    16801685 
    1681         // load our strings 
     1686        // load our translations and strings 
     1687        add_action('init', array(&$this, 'load_translations'), 5); 
    16821688        add_action('init', array(&$this, 'load_strings')); 
    16831689 
Note: See TracChangeset for help on using the changeset viewer.