[buddypress-trac] [BuddyPress] #3731: Language of titles

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Sun Nov 6 13:07:10 UTC 2011


#3731: Language of titles
--------------------------+------------------------------
 Reporter:  RuBAN-GT      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Core          |     Version:
 Severity:  major         |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by RuBAN-GT):

 And so, I made corrections in analogy with 1.2 version of buddypress.
 Fixes for 1.5:
 '''bp-core/bp-core-filters.php:'''

 {{{
 $title = strip_tags( sprintf( __( '%1$s | %2$s', 'buddypress' ),
 bp_get_displayed_user_fullname(), ucwords( bp_current_component() ) ) );
 }}}

 replace:

 {{{
 $title = strip_tags( sprintf( __( '%1$s | %2$s', 'buddypress' ),
 $bp->displayed_user->fullname, __( ucwords( $bp->current_component ),
 'buddypress' ) ) );
 }}}

 ----------------

 {{{
 $title = sprintf( __( '%1$s | %2$s | %3$s', 'buddypress' ),
 $bp->bp_options_title,
 $bp->bp_options_nav[$bp->current_item][$bp->current_action]['name'],
 bp_get_name_from_root_slug( bp_get_root_slug() ) );
 }}}

 replace:

 {{{
 $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']
 );
 }}}

 --------------

 {{{
 $title = sprintf( __( '%s Directory', 'buddypress' ),
 bp_get_name_from_root_slug( bp_members_slug() ) );
 else
 $title = sprintf( __( '%s Directory', 'buddypress' ),
 bp_get_name_from_root_slug( bp_get_root_slug() ) );
 }}}

 replace:

 {{{
 $title = sprintf( __( '%s Directory', 'buddypress' ), __( ucwords(
 $bp->members->slug ), 'buddypress' ) );
 else
 $title = sprintf( __( '%s Directory', 'buddypress' ), __(
 bp_get_name_from_root_slug(), 'buddypress' ) );
 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3731#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list