Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: localize a theme with my own translation, is it possible?

@hnla

Participant

You have copied the same example twice and that’s the stock default directory for bp language files.

You want the second example below that one:
`define( ‘BPLANG’, ‘mysite’ );
if ( file_exists( WP_PLUGIN_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
load_textdomain( ‘buddypress’, WP_PLUGIN_DIR . ‘/buddypress-‘ . BPLANG . ‘.mo’ );
}`
if you want the files in their own directory then do:

/my-language-files/buddypress-‘ . BPLANG . ‘.mo’

Skip to toolbar