Support » Plugin: Activity Reactions For Buddypress » cannot translate reaction but good plugin!

  • fixed with a little manual edit!

    *public_html/wp-content/plugins/activity-reactions-for-buddypress/class/class.php

    search:

    /*********
    function used for inserting default values 
    in database tables on activation 
    *************/
    function arete_plugin_smileys()
    {
        GLOBAL $wpdb;
        $settings      = $wpdb->base_prefix . 'arete_buddypress_smileys';
    	$bp_setting    = $wpdb->base_prefix . 'arete_buddypress_smiley_settings';
        
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Like', 'like.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Love', 'love.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Thankful', 'thankful.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Ha Ha', 'haha.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Wow', 'wow.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Sad', 'sad.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Angry', 'angry.png');
    	
    	$enable_query = ai_bp_reactions_settings_check_existance($bp_setting , 'favorite', "0");
    }

    change to (this can be ok for italian):

    /*********
    function used for inserting default values 
    in database tables on activation 
    *************/
    function arete_plugin_smileys()
    {
        GLOBAL $wpdb;
        $settings      = $wpdb->base_prefix . 'arete_buddypress_smileys';
    	$bp_setting    = $wpdb->base_prefix . 'arete_buddypress_smiley_settings';
        
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Mi piace', 'like.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'T.V.B.', 'love.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Grazie', 'thankful.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Ahahaha', 'haha.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Wow', 'wow.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Triste', 'sad.png');
    	$enable_query = ai_bp_reactions_check_existance($settings, 'Grrrr', 'angry.png');
    	
    	$enable_query = ai_bp_reactions_settings_check_existance($bp_setting , 'favorite', "0");
    }

    after change, u need to disable and re-enable plugin 🙂

    work here: [link removed]

    hope this can help other users and author to insert maybe a translation file (.po) for this…

    regards,
    S.N.

    • This topic was modified 1 year, 3 months ago by  bdbrown.
    • This topic was modified 1 year, 3 months ago by  bdbrown. Reason: Links not permitted in reviews
  • The topic ‘cannot translate reaction but good plugin!’ is closed to new replies.