Skip to:
Content

BuddyPress.org

Ticket #2595: 2595.2.patch

File 2595.2.patch, 2.3 KB (added by SergeyBiryukov, 14 years ago)
  • bp-core/bp-core-template.php

     
    216216        // Blog
    217217        } elseif ( bp_is_blog_page() ) {
    218218                if ( is_single() ) {
    219                         $title = __( 'Blog | ' . $post->post_title, 'buddypress' );
     219                        $title = __( 'Blog | ', 'buddypress' ) . $post->post_title;
    220220                } else if ( is_category() ) {
    221                         $title = __( 'Blog | Categories | ' . ucwords( $wp_query->query_vars['category_name'] ), 'buddypress' );
     221                        $title = __( 'Blog | Categories | ', 'buddypress' ) . ucwords( $wp_query->query_vars['category_name'] );
    222222                } else if ( is_tag() ) {
    223                         $title = __( 'Blog | Tags | ' . ucwords( $wp_query->query_vars['tag'] ), 'buddypress' );
     223                        $title = __( 'Blog | Tags | ', 'buddypress' ) . ucwords( $wp_query->query_vars['tag'] );
    224224                } else if ( is_page() ){
    225225                        $title = $post->post_title;
    226226                } else
     
    228228
    229229        // Displayed user
    230230        } elseif ( !empty( $bp->displayed_user->fullname ) ) {
    231                 $title = strip_tags( $bp->displayed_user->fullname . ' | ' . ucwords( $bp->current_component ) );
     231                $title = strip_tags( $bp->displayed_user->fullname . ' | ' . __( ucwords( $bp->current_component ), 'buddypress' ) );
    232232
    233233        // A single item of a component
    234234        } elseif ( bp_is_single_item() ) {
    235                 $title = bp_get_name_from_root_slug() . ' | ' . $bp->bp_options_title . ' | ' . $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name'];
     235                $title = __( bp_get_name_from_root_slug(), 'buddypress' ) . ' | ' . $bp->bp_options_title . ' | ' . $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name'];
    236236
    237237        // An index or directory
    238238        } elseif ( bp_is_directory() ) {
    239239                if ( !bp_current_component() )
    240                         $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( $bp->members->slug ) );
     240                        $title = sprintf( __( '%s Directory', 'buddypress' ), __( ucwords( $bp->members->slug ), 'buddypress' ) );
    241241                else
    242                         $title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug() );
     242                        $title = sprintf( __( '%s Directory', 'buddypress' ), __( bp_get_name_from_root_slug(), 'buddypress' ) );
    243243
    244244        // Sign up page
    245245        } elseif ( bp_is_register_page() ) {