Skip to:
Content
Pages
Categories
Search
Top
Bottom

Question about Customizing Labels, Messages etc


  • voopress
    Participant

    @voopress

    I am running a WP 3.5.1 MU site with latest BP as the main site.
    I have edited my language file, generated the mo, etc.

    The steps however, include adding the following code into wp-content/plugins/bp-custom.php which does not exist, I’m guessing because it’s an MU site.

    The code is;

    define( ‘BPLANG’, ‘mysite’ );
    if ( file_exists( BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ ) ) {
    load_textdomain( ‘buddypress’, BP_PLUGIN_DIR . ‘/bp-languages/buddypress-‘ . BPLANG . ‘.mo’ );
    }

    Since I had nowhere to put it, I put it in my networked Snippets plugin and that worked fine. However, my question is, is this safe, is this ok, are there any problems down the road? Should I create the bp-custom.php file and put it somewhere instead?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

  • voopress
    Participant

    @voopress

    Forgot to mention that I did try the following as well;

    https://codex.buddypress.org/customizing/bp-custom-php/


    danbpfr
    Participant

    @chouf1

    It’s not ok, and not safe.

    If you put the mo file into bp-languages folder, it will be erased at the next BP update. This folder only exist to provide the release pot file needed to update your existing buddypress- xx_XX.mo after an update.

    So, there is no need to add something into /plugins/bp-custom.php. Aside, this file will only exist if you create it, it’s not shipped with BP (MS nor single WP)

    Bp language file goes to /wp-content/languages/buddypress-xx_XX.mo

    xx_XX is the wp_lang setting you have in wp-config.php of your main site.

     

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Question about Customizing Labels, Messages etc’ is closed to new replies.
Skip to toolbar