WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress FollowMe
[resolved] Localisation not working (2 posts)

  1. seogroup
    Member
    Posted 1 year ago #

    Hello,

    i tried to translate but it doesnt work. At first you are using in bp-follow-loader load_textdomain. Thats not correct. Correct is: load_plugin_textdomain. I have changed it to this:

    function bp_followme_action_init()
    {
        load_plugin_textdomain('bp-follow', false, dirname(plugin_basename(__FILE__)) . '/languages');
    }  
    
    add_action('init', 'bp_followme_action_init');

    But it is still not working. I donĀ“t understand why. Do you have an idear?

    Netelb

    http://wordpress.org/extend/plugins/buddypress-follow-me/

  2. meg@info
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    thankls for report, i was fix the problem.
    you can edit the bp-follow-loader.php anre replace the code in lines 12,13 with this code

    if ( file_exists( BP_FOLLOW_PLUGIN_DIR . '/languages/' . get_locale() . '.mo' ) )<br />
    	load_textdomain( 'bp-follow', BP_FOLLOW_PLUGIN_DIR . '/languages/' . get_locale() . '.mo' );<br />

    Or follw the dev in GitHub
    https://github.com/dzmounir/buddypress-follow-me

    Regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic