Plugin Directory

Changeset 2601515


Ignore:
Timestamp:
09/20/2021 05:23:19 AM (5 years ago)
Author:
Desertsnowman
Message:

v2.0.5 - update: fix translation loader

Location:
plugin-groups/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • plugin-groups/trunk/bootstrap.php

    r2585975 r2601515  
    2020}
    2121
    22 add_action( 'plugins_loaded', 'Plugin_Groups\activate_plugin_groups' );
     22add_action( 'init', 'Plugin_Groups\activate_plugin_groups' );
  • plugin-groups/trunk/classes/class-bulk-actions.php

    r2593591 r2601515  
    105105        $current_group = $this->plugin_groups->get_current_group();
    106106        if ( $current_group ) {
    107             $actions['remove-from-group'] = sprintf( __( 'Remove from %s', 'plugins-groups' ), $current_group['name'] );
     107            $actions['remove-from-group'] = sprintf( __( 'Remove from %s', 'plugin-groups' ), $current_group['name'] );
    108108        }
    109         $actions['add-to-group'] = __( 'Add to group', 'plugins-groups' );
     109        $actions['add-to-group'] = __( 'Add to group', 'plugin-groups' );
    110110
    111111        $this->enqueue_script();
  • plugin-groups/trunk/classes/class-extras.php

    r2597155 r2601515  
    7070        $newaction[] = '<select disabled=disabled data-plugin="' . $plugin['slug'] . '" style="width:120px;">';
    7171        $newaction[] = '<option value="_select">';
    72         $newaction[] = __( 'Add to group', 'plugins-groups' );
     72        $newaction[] = __( 'Add to group', 'plugin-groups' );
    7373        $newaction[] = '</option>';
    7474        foreach ( $groups as $group ) {
  • plugin-groups/trunk/classes/class-plugin-groups.php

    r2597155 r2601515  
    88namespace Plugin_Groups;
    99
     10use WP_Admin_Bar;
     11
    1012/**
    1113 * Plugin_Groups Class.
     
    124126
    125127        // Load plugin text domain
    126         add_action( 'init', array( $this, 'load_text_domain' ) );
    127128        add_action( 'init', array( $this, 'plugin_groups_init' ), PHP_INT_MAX ); // Always the last thing to init.
    128129        add_action( 'admin_init', array( $this, 'admin_init' ) );
     
    188189
    189190        return $url;
    190     }
    191 
    192     /**
    193      * Load the plugin text domain for translation.
    194      */
    195     public function load_text_domain() {
    196 
    197         load_plugin_textdomain( self::$slug, false, basename( PLGGRP_PATH ) . '/languages' );
    198191    }
    199192
     
    808801            wp_enqueue_script( self::$slug );
    809802            wp_enqueue_style( self::$slug );
    810 
     803            wp_set_script_translations(self::$slug, self::$slug );
    811804            $this->prep_config();
    812805        }
     
    829822     * @param int|null $site_id The site to get config for, ir null for current.
    830823     *
    831      * @return string
     824     * @return string|false
    832825     */
    833826    public function build_config_object( $site_id = null ) {
  • plugin-groups/trunk/plugincore.php

    r2597155 r2601515  
    44 * Plugin URI: https://cramer.co.za
    55 * Description: Organize Plugins in groups
    6  * Version: 2.0.4
     6 * Version: 2.0.5
    77 * Author: David Cramer
    88 * Author URI: https://cramer.co.za
  • plugin-groups/trunk/readme.txt

    r2597155 r2601515  
    55Requires at least: 5.3
    66Tested up to: 5.8
    7 Stable tag: 2.0.4
     7Stable tag: 2.0.5
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141
    4242== Changelog ==
     43
     44= 2.0.5 =
     45- Fixed an issue that prevented translations from being added.
    4346
    4447= 2.0.4 =
Note: See TracChangeset for help on using the changeset viewer.