Skip to:
Content

BuddyPress.org

Ticket #2595: 2595.patch

File 2595.patch, 1.8 KB (added by SergeyBiryukov, 14 years ago)
  • bp-core-templatetags.php

     
    893893
    894894        } else if ( bp_is_blog_page() ) {
    895895                if ( is_single() ) {
    896                         $title = __( 'Blog | ' . $post->post_title, 'buddypress' );
     896                        $title = __( 'Blog | ', 'buddypress' ) . $post->post_title;
    897897                } 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 );
    899899                } 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 );
    901901                } else if ( is_page() ){
    902902                        $title = $post->post_title;
    903903                } else
    904904                        $title = __( 'Blog', 'buddypress' );
    905905
    906906        } 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' ) );
    908908
    909909        } 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'];
    911911
    912912        } else if ( $bp->is_directory ) {
    913913                $title = get_the_title();