Need help with bp-custom.php
-
I’m trying to setup BP with three languages: English (default), Simplified/Traditional Chinese.
I have added mo and po files (zh-tw and zh-cn) to: wp-content/plugins/buddypress/bp-languages
(zh-cn and zh-tw)
And I have added bp-custom.php to wp-content/plugins
This is the code:define( ‘BPLANG’, ‘zh-cn’ );
if ( file_exists( BP_PLUGIN_DIR . ‘/bp-languages/buddypress-’ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, BP_PLUGIN_DIR . ‘/bp-languages/buddypress-’ . BPLANG . ‘.mo’ );
}define( ‘BPLANG’, ‘zh-tw’ );
if ( file_exists( BP_PLUGIN_DIR . ‘/bp-languages/buddypress-’ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, BP_PLUGIN_DIR . ‘/bp-languages/buddypress-’ . BPLANG . ‘.mo’ );
}Could somebody tell me what am I missing here? I do not see any language changes.
I am using WPML.
You must be logged in to reply to this topic.