Skip to:
Content
Pages
Categories
Search
Top
Bottom

Language files for site in subdomain

  • @wamoma

    Participant

    I’ve tried to change some labels using language files as explained in the Buddypress docs. Whatever I do the changes just don’t happen. I’ve also tried with this plugin:

    http://www.code-styling.de/english/development/wordpress-plugin-codestyling-localization-en

    but the changes don’t work with that either.

    I’m wondering if anybody would know if the issue may be to do with having my site in a folder off the root directory? If so are there things I should have done that might be causing the problem?

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