Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: New Plugin – BuddyPress Links – Beta Support


danbpfr
Participant

@chouf1

Translation is actually not working with your locale function “bp_links_load_textdomain()” in bp-links.php line 138

Instead of the function, a simple if statement is enough and works

if ( file_exists( WP_PLUGIN_DIR . '/buddypress-links/languages/buddypress-links-' . get_locale() . '.mo' ) )
load_textdomain( 'buddypress-links', WP_PLUGIN_DIR . '/buddypress-links/languages/buddypress-links-' . get_locale() . '.mo' );

If you wanna translate:

Erase (or comment) the function and use the code above instead

Name your .mo file buddypress-links-xx_XX.mo (xX are your country code)

Skip to toolbar