Ticket #2595: 2595.patch
File 2595.patch, 1.8 KB (added by , 14 years ago) |
---|
-
bp-core-templatetags.php
893 893 894 894 } else if ( bp_is_blog_page() ) { 895 895 if ( is_single() ) { 896 $title = __( 'Blog | ' . $post->post_title, 'buddypress' );896 $title = __( 'Blog | ', 'buddypress' ) . $post->post_title; 897 897 } else if ( is_category() ) { 898 $title = __( 'Blog | Categories | ' . ucwords( $wp_query->query_vars['category_name'] ), 'buddypress');898 $title = __( 'Blog | Categories | ', 'buddypress' ) . ucwords( $wp_query->queried_object->name ); 899 899 } else if ( is_tag() ) { 900 $title = __( 'Blog | Tags | ' . ucwords( $wp_query->query_vars['tag'] ), 'buddypress');900 $title = __( 'Blog | Tags | ', 'buddypress' ) . ucwords( $wp_query->queried_object->name ); 901 901 } else if ( is_page() ){ 902 902 $title = $post->post_title; 903 903 } else 904 904 $title = __( 'Blog', 'buddypress' ); 905 905 906 906 } else if ( !empty( $bp->displayed_user->fullname ) ) { 907 $title = strip_tags( $bp->displayed_user->fullname . ' | ' . ucwords( $bp->current_component) );907 $title = strip_tags( $bp->displayed_user->fullname . ' | ' . __( ucwords( $bp->current_component ), 'buddypress' ) ); 908 908 909 909 } else if ( $bp->is_single_item ) { 910 $title = ucwords( $bp->current_component) . ' | ' . $bp->bp_options_title . ' | ' . $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name'];910 $title = __( ucwords( $bp->current_component ), 'buddypress' ) . ' | ' . $bp->bp_options_title . ' | ' . $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name']; 911 911 912 912 } else if ( $bp->is_directory ) { 913 913 $title = get_the_title();