Skip to:
Content

BuddyPress.org

Ticket #3731: localize_titles.patch

File localize_titles.patch, 1.4 KB (added by slaFFik, 10 years ago)
  • bp-core/bp-core-filters.php

     
    281281        // Displayed user
    282282        if ( !empty( $bp->displayed_user->fullname ) && !is_404() ) {
    283283                // translators: "displayed user's name | canonicalised component name"
    284                 $title = strip_tags( sprintf( __( '%1$s | %2$s', 'buddypress' ), bp_get_displayed_user_fullname(), ucwords( bp_current_component() ) ) );
     284                $title = strip_tags( sprintf( __( '%1$s | %2$s', 'buddypress' ), bp_get_displayed_user_fullname(), __( ucwords( bp_current_component() ), 'buddypress' ) ) );
    285285
    286286        // A single group
    287287        } elseif ( bp_is_active( 'groups' ) && !empty( $bp->groups->current_group ) && !empty( $bp->bp_options_nav[$bp->groups->current_group->slug] ) ) {
     
    297297        // An index or directory
    298298        } elseif ( bp_is_directory() ) {
    299299                if ( !bp_current_component() )
    300                         $title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug( bp_members_slug() ) );
     300                        $title = sprintf( __( '%s Directory', 'buddypress' ), __( bp_get_name_from_root_slug(), 'buddypress' ) );
    301301                else
    302                         $title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug( bp_get_root_slug() ) );
     302                        $title = sprintf( __( '%s Directory', 'buddypress' ), __( bp_get_name_from_root_slug(), 'buddypress' ) );
    303303
    304304        // Sign up page
    305305        } elseif ( bp_is_register_page() ) {