Ticket #2595: 2595.3.patch
File 2595.3.patch, 2.4 KB (added by , 14 years ago) |
---|
-
bp-core/bp-core-template.php
216 216 // Blog 217 217 } elseif ( bp_is_blog_page() ) { 218 218 if ( is_single() ) { 219 $title = __( 'Blog | ' . $post->post_title, 'buddypress');219 $title = sprintf( __( 'Blog | %s', 'buddypress' ), $post->post_title ); 220 220 } else if ( is_category() ) { 221 $title = __( 'Blog | Categories | ' . ucwords( $wp_query->query_vars['category_name'] ), 'buddypress');221 $title = sprintf( __( 'Blog | Categories | %s', 'buddypress' ), ucwords( $wp_query->query_vars['category_name'] ) ); 222 222 } else if ( is_tag() ) { 223 $title = __( 'Blog | Tags | ' . ucwords( $wp_query->query_vars['tag'] ), 'buddypress');223 $title = sprintf( __( 'Blog | Tags | %s', 'buddypress' ), ucwords( $wp_query->query_vars['tag'] ) ); 224 224 } else if ( is_page() ){ 225 225 $title = $post->post_title; 226 226 } else … … 228 228 229 229 // Displayed user 230 230 } elseif ( !empty( $bp->displayed_user->fullname ) ) { 231 $title = strip_tags( $bp->displayed_user->fullname . ' | ' . ucwords( $bp->current_component) );231 $title = strip_tags( sprintf( __( '%1$s | %2$s', 'buddypress' ), $bp->displayed_user->fullname, __( ucwords( $bp->current_component ), 'buddypress' ) ) ); 232 232 233 233 // A single item of a component 234 234 } 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 = sprintf( __( '%1$s | %2$s | %3$s', 'buddypress' ), __( bp_get_name_from_root_slug(), 'buddypress' ), $bp->bp_options_title, $bp->bp_options_nav[$bp->current_component][$bp->current_action]['name'] ); 236 236 237 237 // An index or directory 238 238 } elseif ( bp_is_directory() ) { 239 239 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' ) ); 241 241 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' ) ); 243 243 244 244 // Sign up page 245 245 } elseif ( bp_is_register_page() ) {