Skip to:

Re: I want to speak Spotlish

Lance Willett



Here is how I did a custom translation to replace slugs and labels. I’m replacing my language name with spots so you can see how it would work for you.

1. First I opened the POT file, copied it to a .po version, and then made the changes I wanted in a text editor (most with search and replace, but also had to do some new lines by hand).

2. I uploaded the .po file to my web server, and ran this from a command line:

msgfmt -o buddypress-spots.po

3. In my bp-custom file (wp-content/mu-plugins/bp-custom.php) I added a language definition:

define( 'BPLANG', 'spots' );

if ( file_exists( ABSPATH . MUPLUGINDIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ) ) {

load_textdomain( 'buddypress', ABSPATH . MUPLUGINDIR . '/bp-languages/buddypress-' . BPLANG . '.mo' );


4. Then I went into wp-content/mu-plugins/bp-languages and added the file there.

This solution is better (in my opinion) than using the define (‘WPLANG’, ”); in your wp-config.php file, and won’t break when you upgrade BuddyPress.

Skip to toolbar