Skip to:
Content

BuddyPress.org

Changeset 5354


Ignore:
Timestamp:
11/24/2011 02:46:56 AM (10 years ago)
Author:
boonebgorges
Message:

Passes automatically generated <title>s through translation functions, so that they can be localized. Fixes #3731. Props RuBAN-GT, slaFFik

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.5/bp-core/bp-core-filters.php

    r5153 r5354  
    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
     
    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
Note: See TracChangeset for help on using the changeset viewer.