Skip to:
Content

BuddyPress.org

Changeset 9106


Ignore:
Timestamp:
10/29/2014 07:39:23 PM (10 years ago)
Author:
djpaul
Message:

Core: Page title: don't hardcode the word separator for some of our page titles.

Fixes #5838

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-filters.php

    r9105 r9106  
    451451    } elseif ( bp_is_active( 'groups' ) && ! empty( $bp->groups->current_group ) && ! empty( $bp->bp_options_nav[ $bp->groups->current_group->slug ] ) ) {
    452452        $subnav = isset( $bp->bp_options_nav[ $bp->groups->current_group->slug ][ bp_current_action() ]['name'] ) ? $bp->bp_options_nav[ $bp->groups->current_group->slug ][ bp_current_action() ]['name'] : '';
    453         // translators: "group name | group nav section name"
    454         $title = sprintf( __( '%1$s | %2$s', 'buddypress' ), $bp->bp_options_title, $subnav );
     453        // translators: 1 = group name, 2 = group nav section name, 3 = separator
     454        $title = sprintf( __( '%1$s %3$s %2$s', 'buddypress' ), $bp->bp_options_title, $subnav, $sep );
    455455
    456456    // A single item from a component other than groups
    457457    } elseif ( bp_is_single_item() ) {
    458         // translators: "component item name | component nav section name"
    459         $title = sprintf( __( '%1$s | %2$s', 'buddypress' ), $bp->bp_options_title, $bp->bp_options_nav[ bp_current_item() ][ bp_current_action() ]['name'] );
     458        // translators: 1 = component item name, 2 = component nav section name, 3 = separator
     459        $title = sprintf( __( '%1$s %3$s %2$s', 'buddypress' ), $bp->bp_options_title, $bp->bp_options_nav[ bp_current_item() ][ bp_current_action() ]['name'], $sep );
    460460
    461461    // An index or directory
Note: See TracChangeset for help on using the changeset viewer.