Re: Translating BuddyPress
Hope someone can help me… I’m tearing my hair out!
I’ve created buddypress-xxx.po and .mo files, put them in both /wp-content/plugins/buddypress/languages and /wp-content/mu-plugins/bp-languages
I’ve also added the following code to /wp-content/plugins/buddypress/bp-custom.php:
Code:
// Activate the custom terminology for DevelopaDream
define( ‘BPLANG’, ‘developadream’ );
if ( file_exists( BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ );
}
define( ‘BPLANG’, ‘developadream’ );
if ( file_exists( BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ );
}
Despite that, I’m still not getting any change in language on the site at all.
Am I missing something?