It should be working. (place your bp-custom.php outside buddypress as it will be deleted when you upgrade buddypress next time by wordpress update system)
Thanks once again Socialpreneur. )) Now it works.
I’m trying to do this as well, however, it’s not working. I have my buddypress.po and buddypress.mo in my bp-languages folder and I uploaded a new bp-custom.php to the /plugins/ folder however, from there how do I enable the new translation?
I’m using:
<?php
define( 'BPLANG', 'mysite' );
if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ) ) {
load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' );
}
?>
You need to remove the “- ‘.BPLANG.'” suffix from the .po/.mo files in your bp-custom.php
Use this:
<?php
define( 'BPLANG', 'mysite' );
if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress.mo' ) ) {
load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress.mo' );
}
?>
*bow*
Thanks r-a-y, once again you have proven to be very knowledgeable .
This thread helped me! Thanks a lot guys!