Support » Plugin: BuddyPress FollowMe » Localisation not working

  • Resolved seogroup

    (@seogroup)


    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/

Viewing 1 replies (of 1 total)
  • Plugin Author meg@info

    (@megainfo)

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Localisation not working’ is closed to new replies.