How To Customise BuddyPress Default Messages

04.03.10 by Jerome in Tutorials

How To Customise BuddyPress Default Messages

Thanks go to the BuddyPress development team for making it really easy to amend any text labels and messages through your BuddyPress install. For example, if you would like to change the word “Groups” to “Topics” through the site, or you would like to change the entire website into a foreign language- simply follow the steps below.

Step 1

On your website files go to wp-content/plugins/buddypress/bp-languages and duplicate and rename the file buddypress.pot to buddypress-mywebsite.pot in the same location under wp-content/plugins/buddypress/bp-languages

Step 2

Download and install the free software Poedit

Step 3

Open Poedit and go to File –> Open and Select your new file wp-content/plugins/buddypress/bp-languages/buddypress-mywebsite.pot and make your text changes.

poedit How To Customise BuddyPress Default Messages

When the text changes are done simply save your file.

Step 4

Create or Edit your bp-custom.php file under wp-content/plugins/bp-custom.php and simply add the code below:

<?php
define( 'BPLANG', 'mywebsite' );
if ( file_exists( BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' ) ) {
    load_textdomain( 'buddypress', BP_PLUGIN_DIR . '/bp-languages/buddypress-' . BPLANG . '.mo' );
}
?>

That’s it! I just love it. Imagine if you had to go to edit every single page to make any text changes!

Related posts:

buddypress, Tutorials

Get More Wordpress Tips & Tricks

Liked this post? subscribe to our email updates or RSS feed!

    blog comments powered by Disqus