Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: [Resolved] Edit buddypress.pot file

@shanebp

Moderator

Yeah, it can be frustrating to change some strings.
I’m not sure why you’re having trouble with the .mo approach.

For one or two changes, you can use a function in your theme/functions.php or in bp-custom.php
Try this:

function example_gettext_with_context( $translated, $text, $context, $domain ) {

     if ( 'buddypress' !== $domain )
        return $translated;

     switch ( $text ) {

        case 'Site-Wide Activity':
            return 'text you want to appear instead';

        default:
            return $translated;
    }

    return $translated;
}
add_filter( 'gettext_with_context', 'example_gettext_with_context', 11, 4 );
Skip to toolbar