Skip to:
Content

BuddyPress.org

Changeset 391 for trunk/bp-friends.php


Ignore:
Timestamp:
10/12/2008 08:19:04 PM (17 years ago)
Author:
apeatling
Message:

Added the 'buddypress' textdomain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends.php

    r375 r391  
    9393   
    9494    /* 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'] );
    9696    bp_core_add_nav_default( $bp['friends']['slug'], 'friends_screen_my_friends', 'my-friends' );
    9797   
     
    9999   
    100100    /* 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' );
    105105   
    106106    if ( $bp['current_component'] == $bp['friends']['slug'] ) {
    107107        if ( bp_is_home() ) {
    108             $bp['bp_options_title'] = __('My Friends');
     108            $bp['bp_options_title'] = __('My Friends', 'buddypress');
    109109        } else {
    110110            $bp['bp_options_avatar'] = bp_core_get_avatar( $bp['current_userid'], 1 );
     
    127127       
    128128        if ( friends_accept_friendship( $bp['action_variables'][1] ) ) {
    129             $bp['message'] = __('Friendship accepted');
     129            $bp['message'] = __('Friendship accepted', 'buddypress');
    130130            $bp['message_type'] = 'success';
    131131        } else {
    132             $bp['message'] = __('Friendship could not be accepted');
     132            $bp['message'] = __('Friendship could not be accepted', 'buddypress');
    133133            $bp['message_type'] = 'error';                 
    134134        }
     
    138138       
    139139        if ( friends_reject_friendship( $bp['action_variables'][1] ) ) {
    140             $bp['message'] = __('Friendship rejected');
     140            $bp['message'] = __('Friendship rejected', 'buddypress');
    141141            $bp['message_type'] = 'success';
    142142        } else {
    143             $bp['message'] = __('Friendship could not be rejected');
     143            $bp['message'] = __('Friendship could not be rejected', 'buddypress');
    144144            $bp['message_type'] = 'error';             
    145145        }
     
    198198           
    199199            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>';               
    201201            } 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>';                               
    203203            }
    204204
Note: See TracChangeset for help on using the changeset viewer.