WordPress.org

Plugin Directory

Changeset 1503804


Ignore:
Timestamp:
09/27/16 15:53:24 (4 months ago)
Author:
rescuethemes
Message:

Fix textdomain function so translations work correctly

Location:
beer-directory/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • beer-directory/trunk/beer-post-type.php

    r1187094 r1503804  
    44 * Plugin URI:  https://rescuethemes.com/beer-directory 
    55 * Description: Enables a beer post type and beer list shortcode. 
    6  * Version:     0.0.4 
     6 * Version:     0.0.5 
    77 * Author:      Rescue Themes 
    88 * Author URI:  https://rescuethemes.com 
  • beer-directory/trunk/includes/class-post-type.php

    r1187094 r1503804  
    99     * Plugin version, used for cache-busting of style and script file references. 
    1010     */ 
    11     const VERSION = '0.0.4'; 
     11    const VERSION = '0.0.5'; 
    1212 
    1313    /** 
     
    3131 
    3232        // Load plugin text domain 
    33         add_action( 'init', array( $this, 'load_plugin_textdomain' ) );; 
     33        add_action( 'init', array( $this, 'beer_directory_load_plugin_textdomain' ) );; 
    3434 
    3535    } 
     
    5656     * 
    5757     */ 
    58     public function load_plugin_textdomain() { 
    59         $domain = self::PLUGIN_SLUG; 
    60         load_plugin_textdomain( $domain, FALSE, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages' ); 
     58    public function beer_directory_load_plugin_textdomain() { 
     59 
     60        load_plugin_textdomain( 'beer-directory' , FALSE, dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages' ); 
    6161    } 
    6262 
  • beer-directory/trunk/readme.txt

    r1187094 r1503804  
    22Contributors: rescuethemes 
    33Tags: beer, directory, brewery, homebrew, brew, hops, malt, yeast 
    4 Stable tag: 0.0.4 
     4Stable tag: 0.0.5 
    55Requires at least: 4.0 
    6 Tested up to: 4.2.2 
     6Tested up to: 4.6.1 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    7272 
    7373== Changelog == 
     74= 0.0.5 = June 23, 2016 
     75* Updated text domain hook so translations work 
     76 
    7477= 0.0.4 = June 23, 2015 
    7578* Updated text domain to 'beer-directory' 
Note: See TracChangeset for help on using the changeset viewer.