Translation files not being picked up
-
I’m having trouble getting a translation to take effect. I must be missing something but I’ve spent ages trying to figure it out and gotten nowhere.
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:
// 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' );
}
Despite that, I’m still not getting any change in language on the site at all.
My set up is :
- WPMU 2.7.1
- BuddyPress 1.0
- Plugin: bp-Events 0.58
- Custom BP theme (though only customised colour scheme)
Am I missing something?
- The topic ‘Translation files not being picked up’ is closed to new replies.