tliebig (@tliebig)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @tliebig

    Member

    @_ck_:

    A note on deep integration: As of 0.9.0.4, deep integration will break the localization due to the localization methods being used from WP’s core files (bb_settings.php line 75), causing the system to look for bbPress-language files in the WP language directory. Here’s what to fix to make bbPress load it’s own language files from bb_includes/languages when using deep integration:

    In line 376-377 of bb-settings.php, replace

    // Load the default text localization domain.
    load_default_textdomain();

    with

    // Load the default text localization domain.
    if ( !(defined('DB_NAME')) ) { // Include localization the bbPress-way when WP is not running.
    load_default_textdomain();
    }
    else {
    $locale = get_locale();
    $mofile = BB_LANG_DIR . "$locale.mo";

    load_textdomain('default', $mofile);
    };

Viewing 1 replies (of 1 total)