1.5 Language, Child Theme and Multisite
-
I just noticed that the language customizations are not working after upgrading to 1.5. As far as I remember everything was working before.
I’ve tried everything again as stated here http://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/ — but no luck, I’ve tried putting the .mo files in /wp-content/languages, i tried keeping it in the bp plugin /lang and even inside the child theme /lang dir’s…each time pointing the following snippet to the right dir…still with no luck of the translations working.
`// change “en_US” to your locale
define( ‘BPLANG’, ‘en_US’ );
if ( file_exists( WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, WP_LANG_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ );
}
`here’s the name of the .mo file as I have it in the /wp-content/languages
buddypress-en_US.mo
I’m stumped. What’s odd, is that I was having the same trouble on a singular wordpress installation and i ended up getting it working by putting .mo files in the child theme dir and placing the following in the functions.php
`
define( ‘BPLANG’, ‘lang_EN’ );
if ( file_exists( STYLESHEETPATH . ‘/buddypress.mo’ ) ) {
load_textdomain( ‘buddypress’, STYLESHEETPATH . ‘/buddypress.mo’ );}
`Any ideas.
- The topic ‘1.5 Language, Child Theme and Multisite’ is closed to new replies.