Skip to:
Content
Pages
Categories
Search
Top
Bottom

how to avoid losing language files in an upgrade?


  • Dwenaus
    Participant

    @dwenaus

    I followed this very helpful guide here about how to customize buddypress words. (for example, our beta testers get confused by ‘Leave Group’ thinking it is just a way to leave the page, so I want to change it to the less attractive Quit Group.)

    but I realize that by putting the language translation files in the buddypress folder itself, it will get overwritten in the next buddypress upgrade. is this true? and i so do people know of a work around? perhaps a symlink to a folder outside the buddypres folder. ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • This is true, but a symlink would still get deleted. I know improving this is on the cards, maybe for 1.3. I’ve no magic solution for you at the moment :(


    Dwenaus
    Participant

    @dwenaus

    but at least the sym link would be easy to re-create, rather than losing your custom files in case you lack a back-up. but i don’t like sym-links. I guess I’ll just remember to keep that folder duplicated somewhere. thanks.


    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’ );`

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how to avoid losing language files in an upgrade?’ is closed to new replies.
Skip to toolbar