Skip to:
Content

BuddyPress.org

Ticket #2555: 2555.patch

File 2555.patch, 1.3 KB (added by sorich87, 15 years ago)
  • bp-core-templatetags.php

     
    937937                $title = ucwords( $bp->current_component ) . ' | ' . $bp->bp_options_title . ' | ' . $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name'];
    938938
    939939        } else if ( $bp->is_directory ) {
    940                 if ( !$bp->current_component )
    941                         $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( BP_MEMBERS_SLUG ) );
    942                 else
    943                         $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( $bp->current_component ) );
     940                if ( !$bp->current_component || BP_MEMBERS_SLUG == $bp->current_component ) {
     941                        $title = __( 'Members Directory', 'buddypress' );
     942                       
     943                } else if ( BP_GROUPS_SLUG == $bp->current_component ) {
     944                        $title = __( 'Groups Directory', 'buddypress' );
     945                       
     946                } else if ( BP_FORUMS_SLUG == $bp->current_component ) {
     947                        $title = __( 'Forums Directory', 'buddypress' );
     948                       
     949                } else if ( BP_BLOGS_SLUG == $bp->current_component ) {
     950                        $title = __( 'Blogs Directory', 'buddypress' );
     951                       
     952                } else if ( BP_ACTIVITY_SLUG == $bp->current_component ) {
     953                        $title = __( 'Activity Directory', 'buddypress' );
     954                }
    944955
    945956        } else if ( bp_is_register_page() ) {
    946957                $title = __( 'Create an Account', 'buddypress' );