Skip to:
Content
Pages
Categories
Search
Top
Bottom

Language files for site in subdomain

Viewing 3 replies - 1 through 3 (of 3 total)
  • @djpaul

    Keymaster

    No, a subdirectory install wouldn’t matter. Let’s start at the beginning; what file have you created and where have you put it?

    @wamoma

    Participant

    Hi Paul – this is what I have in custom.php

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

    and I have ‘buddypress-s4c.mo in the languages folder (in plugins) (and also the .po file)

    I’ve just gone through it again just to double check I wasn’t being dumb. I’m using poedit and noticed it gave a couple of errors when saving (wasn’t clear what they were). I’ll download poedit again and see if that maybe helps.

    @wamoma

    Participant

    The error was just because I’d deleted a string for one of the translations. Have added the string back in and now saves with no errors but still doesn’t update the changes on the site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Language files for site in subdomain’ is closed to new replies.
Skip to toolbar