Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: how to avoid losing language files in an upgrade?


Dwenaus
Participant

@dwenaus

it turns out you can just define a different place to put the language file, so it’s no big deal really. for example, put the bp-languages folder outside of the buddypress directory and load it like so

`if ( file_exists( WP_PLUGIN_DIR . ‘/bp-languages/buddypress-custom.mo’ ) )
load_textdomain( ‘buddypress’, WP_PLUGIN_DIR . ‘/bp-languages/buddypress-custom.mo’ );`

Skip to toolbar