Changeset 391 for trunk/bp-friends.php
- Timestamp:
- 10/12/2008 08:19:04 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-friends.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-friends.php
r375 r391 93 93 94 94 /* Add 'Friends' to the main navigation */ 95 bp_core_add_nav_item( __('Friends' ), $bp['friends']['slug'] );95 bp_core_add_nav_item( __('Friends', 'buddypress'), $bp['friends']['slug'] ); 96 96 bp_core_add_nav_default( $bp['friends']['slug'], 'friends_screen_my_friends', 'my-friends' ); 97 97 … … 99 99 100 100 /* Add the subnav items to the friends nav item */ 101 bp_core_add_subnav_item( $bp['friends']['slug'], 'my-friends', __('My Friends' ), $friends_link, 'friends_screen_my_friends' );102 bp_core_add_subnav_item( $bp['friends']['slug'], 'requests', __('Requests' ), $friends_link, 'friends_screen_requests' );103 bp_core_add_subnav_item( $bp['friends']['slug'], 'friend-finder', __('Friend Finder' ), $friends_link, 'friends_screen_friend_finder' );104 bp_core_add_subnav_item( $bp['friends']['slug'], 'invite-friend', __('Invite Friends' ), $friends_link, 'friends_screen_invite_friends' );101 bp_core_add_subnav_item( $bp['friends']['slug'], 'my-friends', __('My Friends', 'buddypress'), $friends_link, 'friends_screen_my_friends' ); 102 bp_core_add_subnav_item( $bp['friends']['slug'], 'requests', __('Requests', 'buddypress'), $friends_link, 'friends_screen_requests' ); 103 bp_core_add_subnav_item( $bp['friends']['slug'], 'friend-finder', __('Friend Finder', 'buddypress'), $friends_link, 'friends_screen_friend_finder' ); 104 bp_core_add_subnav_item( $bp['friends']['slug'], 'invite-friend', __('Invite Friends', 'buddypress'), $friends_link, 'friends_screen_invite_friends' ); 105 105 106 106 if ( $bp['current_component'] == $bp['friends']['slug'] ) { 107 107 if ( bp_is_home() ) { 108 $bp['bp_options_title'] = __('My Friends' );108 $bp['bp_options_title'] = __('My Friends', 'buddypress'); 109 109 } else { 110 110 $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 ); … … 127 127 128 128 if ( friends_accept_friendship( $bp['action_variables'][1] ) ) { 129 $bp['message'] = __('Friendship accepted' );129 $bp['message'] = __('Friendship accepted', 'buddypress'); 130 130 $bp['message_type'] = 'success'; 131 131 } else { 132 $bp['message'] = __('Friendship could not be accepted' );132 $bp['message'] = __('Friendship could not be accepted', 'buddypress'); 133 133 $bp['message_type'] = 'error'; 134 134 } … … 138 138 139 139 if ( friends_reject_friendship( $bp['action_variables'][1] ) ) { 140 $bp['message'] = __('Friendship rejected' );140 $bp['message'] = __('Friendship rejected', 'buddypress'); 141 141 $bp['message_type'] = 'success'; 142 142 } else { 143 $bp['message'] = __('Friendship could not be rejected' );143 $bp['message'] = __('Friendship could not be rejected', 'buddypress'); 144 144 $bp['message_type'] = 'error'; 145 145 } … … 198 198 199 199 if ( $for_secondary_user ) { 200 return bp_core_get_userlink( $friendship->initiator_user_id ) . ' ' . __('and' ) . ' ' . bp_core_get_userlink($friendship->friend_user_id, false, false, true) . ' ' . __('are now friends') . '. <span class="time-since">%s</span>';200 return bp_core_get_userlink( $friendship->initiator_user_id ) . ' ' . __('and', 'buddypress') . ' ' . bp_core_get_userlink($friendship->friend_user_id, false, false, true) . ' ' . __('are now friends', 'buddypress') . '. <span class="time-since">%s</span>'; 201 201 } else { 202 return bp_core_get_userlink( $friendship->friend_user_id ) . ' ' . __('and' ) . ' ' . bp_core_get_userlink($friendship->initiator_user_id) . ' ' . __('are now friends') . '. <span class="time-since">%s</span>';202 return bp_core_get_userlink( $friendship->friend_user_id ) . ' ' . __('and', 'buddypress') . ' ' . bp_core_get_userlink($friendship->initiator_user_id) . ' ' . __('are now friends', 'buddypress') . '. <span class="time-since">%s</span>'; 203 203 } 204 204
Note: See TracChangeset
for help on using the changeset viewer.