Skip to:
Content

BuddyPress.org

Changeset 8705


Ignore:
Timestamp:
07/27/2014 05:48:17 PM (10 years ago)
Author:
djpaul
Message:

i18n: disambiguate nav items' strings.

See #5777, props danbp

Location:
trunk/src
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-admin.php

    r8654 r8705  
    3030    // Add our screen
    3131    $hook = add_menu_page(
    32         __( 'Activity', 'buddypress' ),
    33         __( 'Activity', 'buddypress' ),
     32        _x( 'Activity', 'Admin Dashbord SWA page title', 'buddypress' ),
     33        _x( 'Activity', 'Admin Dashbord SWA menu', 'buddypress' ),
    3434        'bp_moderate',
    3535        'bp-activity',
     
    904904                <?php printf( __( 'Activity related to ID #%s', 'buddypress' ), number_format_i18n( (int) $_REQUEST['aid'] ) ); ?>
    905905            <?php else : ?>
    906                 <?php _e( 'Activity', 'buddypress' ); ?>
     906                <?php _x( 'Activity', 'Admin SWA page', 'buddypress' ); ?>
    907907            <?php endif; ?>
    908908
     
    12391239        return array(
    12401240            'cb'       => '<input name type="checkbox" />',
    1241             'author'   => __( 'Author', 'buddypress' ),
    1242             'comment'  => __( 'Activity', 'buddypress' ),
    1243             'action'   => __( 'Action', 'buddypress' ),
    1244             'response' => __( 'In Response To', 'buddypress' ),
     1241            'author'   => _x('Author', 'Admin SWA column header', 'buddypress' ),
     1242            'comment'  => _x( 'Activity', 'Admin SWA column header', 'buddypress' ),
     1243            'action'   => _x( 'Action', 'Admin SWA column header', 'buddypress' ),
     1244            'response' => _x( 'In Response To', 'Admin SWA column header', 'buddypress' ),
    12451245        );
    12461246    }
  • trunk/src/bp-activity/bp-activity-loader.php

    r8662 r8705  
    137137        // Add 'Activity' to the main navigation
    138138        $main_nav = array(
    139             'name'                => __( 'Activity', 'buddypress' ),
     139            'name'                => _x( 'Activity', 'Profile activity screen nav', 'buddypress' ),
    140140            'slug'                => $this->slug,
    141141            'position'            => 10,
     
    163163        // Add the subnav items to the activity nav item if we are using a theme that supports this
    164164        $sub_nav[] = array(
    165             'name'            => __( 'Personal', 'buddypress' ),
     165            'name'            => _x( 'Personal', 'Profile activity screen sub nav', 'buddypress' ),
    166166            'slug'            => 'just-me',
    167167            'parent_url'      => $activity_link,
     
    174174        if ( bp_activity_do_mentions() ) {
    175175            $sub_nav[] = array(
    176                 'name'            => __( 'Mentions', 'buddypress' ),
     176                'name'            => _x( 'Mentions', 'Profile activity screen sub nav', 'buddypress' ),
    177177                'slug'            => 'mentions',
    178178                'parent_url'      => $activity_link,
     
    186186        // Favorite activity items
    187187        $sub_nav[] = array(
    188             'name'            => __( 'Favorites', 'buddypress' ),
     188            'name'            => _x( 'Favorites', 'Profile activity screen sub nav', 'buddypress' ),
    189189            'slug'            => 'favorites',
    190190            'parent_url'      => $activity_link,
     
    198198        if ( bp_is_active( 'friends' ) ) {
    199199            $sub_nav[] = array(
    200                 'name'            => __( 'Friends', 'buddypress' ),
     200                'name'            => _x( 'Friends', 'Profile activity screen sub nav', 'buddypress' ),
    201201                'slug'            => bp_get_friends_slug(),
    202202                'parent_url'      => $activity_link,
     
    211211        if ( bp_is_active( 'groups' ) ) {
    212212            $sub_nav[] = array(
    213                 'name'            => __( 'Groups', 'buddypress' ),
     213                'name'            => _x( 'Groups', 'Profile activity screen sub nav', 'buddypress' ),
    214214                'slug'            => bp_get_groups_slug(),
    215215                'parent_url'      => $activity_link,
     
    256256                $count = bp_get_total_mention_count_for_user( bp_loggedin_user_id() );
    257257                if ( !empty( $count ) ) {
    258                     $title = sprintf( __( 'Mentions <span class="count">%s</span>', 'buddypress' ), number_format_i18n( $count ) );
     258                    $title = sprintf( _x( 'Mentions <span class="count">%s</span>', 'Toolbar Mention logged in user', 'buddypress' ), number_format_i18n( $count ) );
    259259                } else {
    260                     $title = __( 'Mentions', 'buddypress' );
     260                    $title = _x( 'Mentions', 'Toolbar Mention logged in user', 'buddypress' );
    261261                }
    262262            }
     
    266266                'parent' => $bp->my_account_menu_id,
    267267                'id'     => 'my-account-' . $this->id,
    268                 'title'  => __( 'Activity', 'buddypress' ),
     268                'title'  => _x( 'Activity', 'My Account Activity sub nav', 'buddypress' ),
    269269                'href'   => trailingslashit( $activity_link )
    270270            );
     
    274274                'parent' => 'my-account-' . $this->id,
    275275                'id'     => 'my-account-' . $this->id . '-personal',
    276                 'title'  => __( 'Personal', 'buddypress' ),
     276                'title'  => _x( 'Personal', 'My Account Activity sub nav', 'buddypress' ),
    277277                'href'   => trailingslashit( $activity_link )
    278278            );
     
    292292                'parent' => 'my-account-' . $this->id,
    293293                'id'     => 'my-account-' . $this->id . '-favorites',
    294                 'title'  => __( 'Favorites', 'buddypress' ),
     294                'title'  => _x( 'Favorites', 'My Account Activity sub nav', 'buddypress' ),
    295295                'href'   => trailingslashit( $activity_link . 'favorites' )
    296296            );
     
    301301                    'parent' => 'my-account-' . $this->id,
    302302                    'id'     => 'my-account-' . $this->id . '-friends',
    303                     'title'  => __( 'Friends', 'buddypress' ),
     303                    'title'  => _x( 'Friends', 'My Account Activity sub nav', 'buddypress' ),
    304304                    'href'   => trailingslashit( $activity_link . bp_get_friends_slug() )
    305305                );
     
    311311                    'parent' => 'my-account-' . $this->id,
    312312                    'id'     => 'my-account-' . $this->id . '-groups',
    313                     'title'  => __( 'Groups', 'buddypress' ),
     313                    'title'  => _x( 'Groups', 'My Account Activity sub nav', 'buddypress' ),
    314314                    'href'   => trailingslashit( $activity_link . bp_get_groups_slug() )
    315315                );
     
    335335        if ( bp_is_activity_component() ) {
    336336            if ( bp_is_my_profile() ) {
    337                 $bp->bp_options_title = __( 'My Activity', 'buddypress' );
     337                $bp->bp_options_title = _x( 'My Activity', 'Page and <title>', 'buddypress' );
    338338            } else {
    339339                $bp->bp_options_avatar = bp_core_fetch_avatar( array(
  • trunk/src/bp-core/bp-core-admin.php

    r8677 r8705  
    335335
    336336            // Add the main section
    337             add_settings_section( 'bp_xprofile',      __( 'Profile Settings', 'buddypress' ), 'bp_admin_setting_callback_xprofile_section', 'buddypress'                );
     337            add_settings_section( 'bp_xprofile', _x( 'Profile Settings', 'BuddyPress setting tab', 'buddypress' ), 'bp_admin_setting_callback_xprofile_section', 'buddypress' );
    338338
    339339            $avatar_setting = 'bp_xprofile';
  • trunk/src/bp-core/bp-core-loader.php

    r8610 r8705  
    231231            // Add 'Profile' to the main navigation
    232232            $main_nav = array(
    233                 'name'                => __( 'Profile', 'buddypress' ),
     233                'name'                => _x( 'Profile', 'Main navigation', 'buddypress' ),
    234234                'slug'                => $bp->core->profile->slug,
    235235                'position'            => 20,
     
    242242            // Add the subnav items to the profile
    243243            $sub_nav[] = array(
    244                 'name'            => __( 'View', 'buddypress' ),
     244                'name'            => _x( 'View', 'Profile sub nav', 'buddypress' ),
    245245                'slug'            => 'public',
    246246                'parent_url'      => $profile_link,
  • trunk/src/bp-core/bp-core-template.php

    r8700 r8705  
    378378
    379379    if ( bp_is_active( 'xprofile' ) ) {
    380         $options['members'] = __( 'Members', 'buddypress' );
     380        $options['members'] = _x( 'Members', 'search form', 'buddypress' );
    381381    }
    382382
    383383    if ( bp_is_active( 'groups' ) ) {
    384         $options['groups']  = __( 'Groups', 'buddypress' );
     384        $options['groups']  = _x( 'Groups', 'search form', 'buddypress' );
    385385    }
    386386
    387387    if ( bp_is_active( 'blogs' ) && is_multisite() ) {
    388         $options['blogs']   = __( 'Blogs',  'buddypress' );
     388        $options['blogs']   = _x( 'Blogs', 'search form', 'buddypress' );
    389389    }
    390390
    391391    if ( bp_is_active( 'forums' ) && bp_forums_is_installed_correctly() && bp_forums_has_directory() ) {
    392         $options['forums']  = __( 'Forums', 'buddypress' );
    393     }
    394 
    395     $options['posts'] = __( 'Posts', 'buddypress' );
     392        $options['forums']  = _x( 'Forums', 'search form', 'buddypress' );
     393    }
     394
     395    $options['posts'] = _x( 'Posts', 'search form', 'buddypress' );
    396396
    397397    // Eventually this won't be needed and a page will be built to integrate all search results.
    398     $selection_box  = '<label for="search-which" class="accessibly-hidden">' . __( 'Search these:', 'buddypress' ) . '</label>';
     398    $selection_box  = '<label for="search-which" class="accessibly-hidden">' . _x( 'Search these:', 'search form', 'buddypress' ) . '</label>';
    399399    $selection_box .= '<select name="search-which" id="search-which" style="width: auto">';
    400400
  • trunk/src/bp-friends/bp-friends-loader.php

    r8223 r8705  
    2222        parent::start(
    2323            'friends',
    24             __( 'Friend Connections', 'buddypress' ),
     24            _x( 'Friend Connections', 'Friends screen page <title>', 'buddypress' ),
    2525            buddypress()->plugin_dir,
    2626            array(
     
    138138        // Add the subnav items to the friends nav item
    139139        $sub_nav[] = array(
    140             'name'            => __( 'Friendships', 'buddypress' ),
     140            'name'            => _x( 'Friendships', 'Friends screen sub nav', 'buddypress' ),
    141141            'slug'            => 'my-friends',
    142142            'parent_url'      => $friends_link,
     
    148148
    149149        $sub_nav[] = array(
    150             'name'            => __( 'Requests',  'buddypress' ),
     150            'name'            => _x( 'Requests', 'Friends screen sub nav', 'buddypress' ),
    151151            'slug'            => 'requests',
    152152            'parent_url'      => $friends_link,
     
    183183            $count = count( friends_get_friendship_request_user_ids( bp_loggedin_user_id() ) );
    184184            if ( !empty( $count ) ) {
    185                 $title   = sprintf( __( 'Friends <span class="count">%s</span>',          'buddypress' ), number_format_i18n( $count ) );
    186                 $pending = sprintf( __( 'Pending Requests <span class="count">%s</span>', 'buddypress' ), number_format_i18n( $count ) );
     185                $title   = sprintf( _x( 'Friends <span class="count">%s</span>', 'My Account Friends menu', 'buddypress' ), number_format_i18n( $count ) );
     186                $pending = sprintf( _x( 'Pending Requests <span class="count">%s</span>', 'My Account Friends menu sub nav', 'buddypress' ), number_format_i18n( $count ) );
    187187            } else {
    188                 $title   = __( 'Friends',            'buddypress' );
    189                 $pending = __( 'No Pending Requests', 'buddypress' );
     188                $title   = _x( 'Friends', 'My Account Friends menu', 'buddypress' );
     189                $pending = _x( 'No Pending Requests','My Account Friends menu sub nav', 'buddypress' );
    190190            }
    191191
     
    198198            );
    199199
    200             // My Groups
     200            // My Friends
    201201            $wp_admin_nav[] = array(
    202202                'parent' => 'my-account-' . $this->id,
    203203                'id'     => 'my-account-' . $this->id . '-friendships',
    204                 'title'  => __( 'Friendships', 'buddypress' ),
     204                'title'  => _x( 'Friendships', 'My Account Friends menu sub nav', 'buddypress' ),
    205205                'href'   => trailingslashit( $friends_link )
    206206            );
  • trunk/src/bp-friends/bp-friends-screens.php

    r7619 r8705  
    8383            <tr>
    8484                <th class="icon"></th>
    85                 <th class="title"><?php _e( 'Friends', 'buddypress' ) ?></th>
     85                <th class="title"><?php _ex( 'Friends', 'Friend settings on notification settings page', 'buddypress' ) ?></th>
    8686                <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>
    8787                <th class="no"><?php _e( 'No', 'buddypress' )?></th>
     
    9292            <tr id="friends-notification-settings-request">
    9393                <td></td>
    94                 <td><?php _e( 'A member sends you a friendship request', 'buddypress' ) ?></td>
     94                <td><?php _ex( 'A member sends you a friendship request', 'Friend settings on notification settings page', 'buddypress' ) ?></td>
    9595                <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_request]" value="yes" <?php checked( $send_requests, 'yes', true ) ?>/></td>
    9696                <td class="no"><input type="radio" name="notifications[notification_friends_friendship_request]" value="no" <?php checked( $send_requests, 'no', true ) ?>/></td>
     
    9898            <tr id="friends-notification-settings-accepted">
    9999                <td></td>
    100                 <td><?php _e( 'A member accepts your friendship request', 'buddypress' ) ?></td>
     100                <td><?php _ex( 'A member accepts your friendship request', 'Friend settings on notification settings page', 'buddypress' ) ?></td>
    101101                <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="yes" <?php checked( $accept_requests, 'yes', true ) ?>/></td>
    102102                <td class="no"><input type="radio" name="notifications[notification_friends_friendship_accepted]" value="no" <?php checked( $accept_requests, 'no', true ) ?>/></td>
  • trunk/src/bp-groups/bp-groups-admin.php

    r8681 r8705  
    3030    // Add our screen
    3131    $hook = add_menu_page(
    32         __( 'Groups', 'buddypress' ),
    33         __( 'Groups', 'buddypress' ),
     32        _x( 'Groups', 'Admin Groups page title', 'buddypress' ),
     33        _x( 'Groups', 'Admin Groups menu', 'buddypress' ),
    3434        'bp_moderate',
    3535        'bp-groups',
  • trunk/src/bp-groups/bp-groups-loader.php

    r8677 r8705  
    8181        parent::start(
    8282            'groups',
    83             __( 'User Groups', 'buddypress' ),
     83            _x( 'User Groups', 'Group screen page <title>', 'buddypress' ),
    8484            buddypress()->plugin_dir,
    8585            array(
     
    149149            'directory_title'       => _x( 'Groups', 'component directory title', 'buddypress' ),
    150150            'notification_callback' => 'groups_format_notifications',
    151             'search_string'         => __( 'Search Groups...', 'buddypress' ),
     151            'search_string'         => _x( 'Search Groups...', 'Component directory search', 'buddypress' ),
    152152            'global_tables'         => $global_tables,
    153153            'meta_tables'           => $meta_tables,
     
    244244        $this->group_creation_steps = apply_filters( 'groups_create_group_steps', array(
    245245            'group-details'  => array(
    246                 'name'       => __( 'Details', 'buddypress' ),
     246                'name'       => _x( 'Details', 'Group screen nav', 'buddypress' ),
    247247                'position'   => 0
    248248            ),
    249249            'group-settings' => array(
    250                 'name'       => __( 'Settings', 'buddypress' ),
     250                'name'       => _x( 'Settings', 'Group screen nav', 'buddypress' ),
    251251                'position'   => 10
    252252            )
     
    256256        if ( ! (int) buddypress()->site_options['bp-disable-avatar-uploads'] ) {
    257257            $this->group_creation_steps['group-avatar'] = array(
    258                 'name'     => __( 'Profile Photo',  'buddypress' ),
     258                'name'     => _x( 'Profile Photo', 'Group screen nav', 'buddypress' ),
    259259                'position' => 20
    260260            );
     
    264264        if ( bp_is_active( 'friends' ) ) {
    265265            $this->group_creation_steps['group-invites'] = array(
    266                 'name'     => __( 'Invites', 'buddypress' ),
     266                'name'     => _x( 'Invites',  'Group screen nav', 'buddypress' ),
    267267                'position' => 30
    268268            );
     
    331331            $count    = bp_get_total_group_count_for_user();
    332332            $class    = ( 0 === $count ) ? 'no-count' : 'count';
    333             $nav_name = sprintf( __( 'Groups <span class="%s">%s</span>', 'buddypress' ), esc_attr( $class ), number_format_i18n( $count ) );
     333            $nav_name = sprintf( _x( 'Groups <span class="%s">%s</span>', 'Group screen nav with counter', 'buddypress' ), esc_attr( $class ), number_format_i18n( $count ) );
    334334        } else {
    335             $nav_name = __( 'Groups', 'buddypress' );
     335            $nav_name = _x( 'Groups', 'Group screen nav without counter', 'buddypress' );
    336336        }
    337337
     
    402402            // Add the "Home" subnav item, as this will always be present
    403403            $sub_nav[] = array(
    404                 'name'            =>  _x( 'Home', 'Group home navigation title', 'buddypress' ),
     404                'name'            =>  _x( 'Home', 'Group screen navigation title', 'buddypress' ),
    405405                'slug'            => 'home',
    406406                'parent_url'      => $group_link,
     
    422422
    423423                $sub_nav[] = array(
    424                     'name'               => __( 'Request Membership', 'buddypress' ),
     424                    'name'               => _x( 'Request Membership','Group screen nav', 'buddypress' ),
    425425                    'slug'               => 'request-membership',
    426426                    'parent_url'         => $group_link,
     
    434434            if ( $this->current_group->enable_forum && bp_is_active( 'forums' ) ) {
    435435                $sub_nav[] = array(
    436                     'name'            => __( 'Forum', 'buddypress' ),
     436                    'name'            => _x( 'Forum', 'My Group screen nav', 'buddypress' ),
    437437                    'slug'            => 'forum',
    438438                    'parent_url'      => $group_link,
     
    446446
    447447            $sub_nav[] = array(
    448                 'name'            => sprintf( __( 'Members <span>%s</span>', 'buddypress' ), number_format( $this->current_group->total_member_count ) ),
     448                'name'            => sprintf( _x( 'Members <span>%s</span>', 'My Group screen nav', 'buddypress' ), number_format( $this->current_group->total_member_count ) ),
    449449                'slug'            => 'members',
    450450                'parent_url'      => $group_link,
     
    459459            if ( bp_is_active( 'friends' ) && bp_groups_user_can_send_invites() ) {
    460460                $sub_nav[] = array(
    461                     'name'            => __( 'Send Invites', 'buddypress' ),
     461                    'name'            => _x( 'Send Invites', 'My Group screen nav', 'buddypress' ),
    462462                    'slug'            => 'send-invites',
    463463                    'parent_url'      => $group_link,
     
    474474            if ( bp_is_item_admin() ) {
    475475                $sub_nav[] = array(
    476                     'name'            => __( 'Admin', 'buddypress' ),
     476                    'name'            => _x( 'Admin', 'My Group screen nav', 'buddypress' ),
    477477                    'slug'            => 'admin',
    478478                    'parent_url'      => $group_link,
     
    511511            // Pending group invites
    512512            $count   = groups_get_invite_count_for_user();
    513             $title   = __( 'Groups',            'buddypress' );
    514             $pending = __( 'No Pending Invites', 'buddypress' );
     513            $title   = _x( 'Groups', 'My Account Groups', 'buddypress' );
     514            $pending = _x( 'No Pending Invites', 'My Account Groups sub nav', 'buddypress' );
    515515
    516516            if ( !empty( $count['total'] ) ) {
    517                 $title   = sprintf( __( 'Groups <span class="count">%s</span>',          'buddypress' ), $count );
    518                 $pending = sprintf( __( 'Pending Invites <span class="count">%s</span>', 'buddypress' ), $count );
     517                $title   = sprintf( _x( 'Groups <span class="count">%s</span>', 'My Account Groups nav', 'buddypress' ), $count );
     518                $pending = sprintf( _x( 'Pending Invites <span class="count">%s</span>', 'My Account Groups sub nav', 'buddypress' ), $count );
    519519            }
    520520
     
    531531                'parent' => 'my-account-' . $this->id,
    532532                'id'     => 'my-account-' . $this->id . '-memberships',
    533                 'title'  => __( 'Memberships', 'buddypress' ),
     533                'title'  => _x( 'Memberships', 'My Account Groups sub nav', 'buddypress' ),
    534534                'href'   => trailingslashit( $groups_link )
    535535            );
     
    548548                    'parent' => 'my-account-' . $this->id,
    549549                    'id'     => 'my-account-' . $this->id . '-create',
    550                     'title'  => __( 'Create a Group', 'buddypress' ),
     550                    'title'  => _x( 'Create a Group', 'My Account Groups sub nav', 'buddypress' ),
    551551                    'href'   => trailingslashit( bp_get_groups_directory_permalink() . 'create' )
    552552                );
     
    566566
    567567            if ( bp_is_my_profile() && !bp_is_single_item() ) {
    568                 $bp->bp_options_title = __( 'Memberships', 'buddypress' );
     568                $bp->bp_options_title = _x( 'Memberships', 'My Groups page <title>', 'buddypress' );
    569569
    570570            } else if ( !bp_is_my_profile() && !bp_is_single_item() ) {
  • trunk/src/bp-groups/bp-groups-screens.php

    r8682 r8705  
    934934            <tr>
    935935                <th class="icon"></th>
    936                 <th class="title"><?php _e( 'Groups', 'buddypress' ) ?></th>
     936                <th class="title"><?php _ex( 'Groups', 'Group settings on notification settings page', 'buddypress' ) ?></th>               
    937937                <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>
    938938                <th class="no"><?php _e( 'No', 'buddypress' )?></th>
     
    943943            <tr id="groups-notification-settings-invitation">
    944944                <td></td>
    945                 <td><?php _e( 'A member invites you to join a group', 'buddypress' ) ?></td>
     945                <td><?php _ex( 'A member invites you to join a group', 'group settings on notification settings page','buddypress' ) ?></td>
    946946                <td class="yes"><input type="radio" name="notifications[notification_groups_invite]" value="yes" <?php checked( $group_invite, 'yes', true ) ?>/></td>
    947947                <td class="no"><input type="radio" name="notifications[notification_groups_invite]" value="no" <?php checked( $group_invite, 'no', true ) ?>/></td>
     
    949949            <tr id="groups-notification-settings-info-updated">
    950950                <td></td>
    951                 <td><?php _e( 'Group information is updated', 'buddypress' ) ?></td>
     951                <td><?php _ex( 'Group information is updated', 'group settings on notification settings page', 'buddypress' ) ?></td>
    952952                <td class="yes"><input type="radio" name="notifications[notification_groups_group_updated]" value="yes" <?php checked( $group_update, 'yes', true ) ?>/></td>
    953953                <td class="no"><input type="radio" name="notifications[notification_groups_group_updated]" value="no" <?php checked( $group_update, 'no', true ) ?>/></td>
     
    955955            <tr id="groups-notification-settings-promoted">
    956956                <td></td>
    957                 <td><?php _e( 'You are promoted to a group administrator or moderator', 'buddypress' ) ?></td>
     957                <td><?php _ex( 'You are promoted to a group administrator or moderator', 'group settings on notification settings page', 'buddypress' ) ?></td>
    958958                <td class="yes"><input type="radio" name="notifications[notification_groups_admin_promotion]" value="yes" <?php checked( $group_promo, 'yes', true ) ?>/></td>
    959959                <td class="no"><input type="radio" name="notifications[notification_groups_admin_promotion]" value="no" <?php checked( $group_promo, 'no', true ) ?>/></td>
     
    961961            <tr id="groups-notification-settings-request">
    962962                <td></td>
    963                 <td><?php _e( 'A member requests to join a private group for which you are an admin', 'buddypress' ) ?></td>
     963                <td><?php _ex( 'A member requests to join a private group for which you are an admin', 'group settings on notification settings page', 'buddypress' ) ?></td>
    964964                <td class="yes"><input type="radio" name="notifications[notification_groups_membership_request]" value="yes" <?php checked( $group_request, 'yes', true ) ?>/></td>
    965965                <td class="no"><input type="radio" name="notifications[notification_groups_membership_request]" value="no" <?php checked( $group_request, 'no', true ) ?>/></td>
     
    11201120    public function create_dummy_post() {
    11211121
    1122         $title = __( 'Groups', 'buddypress' );
     1122        $title = _x( 'Groups', 'Group creation page', 'buddypress' );
    11231123
    11241124        bp_theme_compat_reset_post( array(
  • trunk/src/bp-members/bp-members-loader.php

    r8660 r8705  
    218218        // Setup the main navigation
    219219        $main_nav = array(
    220             'name'                => __( 'Profile', 'buddypress' ),
     220            'name'                => _x( 'Profile', 'Member profile main navigation', 'buddypress' ),
    221221            'slug'                => $bp->profile->slug,
    222222            'position'            => 20,
     
    232232        // Setup the subnav items for the member profile
    233233        $sub_nav[] = array(
    234             'name'            => __( 'View', 'buddypress' ),
     234            'name'            => _x( 'View', 'Member profile view', 'buddypress' ),
    235235            'slug'            => 'public',
    236236            'parent_url'      => $profile_link,
  • trunk/src/bp-messages/bp-messages-template.php

    r8692 r8705  
    827827    <select name="message-type-select" id="message-type-select">
    828828        <option value=""></option>
    829         <option value="read"><?php _e('Read', 'buddypress') ?></option>
    830         <option value="unread"><?php _e('Unread', 'buddypress') ?></option>
    831         <option value="all"><?php _e('All', 'buddypress') ?></option>
     829        <option value="read"><?php _x('Read', 'Message dropdown filter', 'buddypress') ?></option>
     830        <option value="unread"><?php _x('Unread', 'Message dropdown filter', 'buddypress') ?></option>
     831        <option value="all"><?php _x('All', 'Message dropdown filter', 'buddypress') ?></option>
    832832    </select> &nbsp;
    833833
    834834    <?php if ( ! bp_is_current_action( 'sentbox' ) && bp_is_current_action( 'notices' ) ) : ?>
    835835
    836         <a href="#" id="mark_as_read"><?php _e('Mark as Read', 'buddypress') ?></a> &nbsp;
    837         <a href="#" id="mark_as_unread"><?php _e('Mark as Unread', 'buddypress') ?></a> &nbsp;
     836        <a href="#" id="mark_as_read"><?php _x('Mark as Read', 'Message management markup', 'buddypress') ?></a> &nbsp;
     837        <a href="#" id="mark_as_unread"><?php _x('Mark as Unread', 'Message management markup', 'buddypress') ?></a> &nbsp;
    838838
    839839    <?php endif; ?>
  • trunk/src/bp-notifications/bp-notifications-loader.php

    r8568 r8705  
    2424        parent::start(
    2525            'notifications',
    26             __( 'Notifications', 'buddypress' ),
     26            _x( 'Notifications', 'Page <title>', 'buddypress' ),
    2727            buddypress()->plugin_dir,
    2828            array(
     
    108108            $count    = bp_notifications_get_unread_notification_count( bp_displayed_user_id() );
    109109            $class    = ( 0 === $count ) ? 'no-count' : 'count';
    110             $nav_name = sprintf( __( 'Notifications <span class="%s">%s</span>', 'buddypress' ), esc_attr( $class ), number_format_i18n( $count ) );
     110            $nav_name = sprintf( _x( 'Notifications <span class="%s">%s</span>', 'Profile screen nav', 'buddypress' ), esc_attr( $class ), number_format_i18n( $count ) );
    111111        } else {
    112             $nav_name = __( 'Notifications', 'buddypress' );
     112            $nav_name = _x( 'Notifications', 'Profile screen nav', 'buddypress' );
    113113        }
    114114
     
    137137        // Add the subnav items to the notifications nav item
    138138        $sub_nav[] = array(
    139             'name'            => __( 'Unread', 'buddypress' ),
     139            'name'            => _x( 'Unread', 'Notification screen nav', 'buddypress' ),
    140140            'slug'            => 'unread',
    141141            'parent_url'      => $notifications_link,
     
    148148
    149149        $sub_nav[] = array(
    150             'name'            => __( 'Read',  'buddypress' ),
     150            'name'            => _x( 'Read', 'Notification screen nav', 'buddypress' ),
    151151            'slug'            => 'read',
    152152            'parent_url'      => $notifications_link,
     
    182182            $count = bp_notifications_get_unread_notification_count( bp_loggedin_user_id() );
    183183            if ( ! empty( $count ) ) {
    184                 $title  = sprintf( __( 'Notifications <span class="count">%s</span>', 'buddypress' ), number_format_i18n( $count ) );
    185                 $unread = sprintf( __( 'Unread <span class="count">%s</span>',        'buddypress' ), number_format_i18n( $count ) );
     184                $title  = sprintf( _x( 'Notifications <span class="count">%s</span>', 'My Account Notification pending', 'buddypress' ), number_format_i18n( $count ) );
     185                $unread = sprintf( _x( 'Unread <span class="count">%s</span>', 'My Account Notification pending', 'buddypress' ), number_format_i18n( $count ) );
    186186            } else {
    187                 $title  = __( 'Notifications', 'buddypress' );
    188                 $unread = __( 'Unread',        'buddypress' );
     187                $title  = _x( 'Notifications', 'My Account Notification', 'buddypress' );
     188                $unread = _x( 'Unread', 'My Account Notification sub nav', 'buddypress' );
    189189            }
    190190
  • trunk/src/bp-notifications/bp-notifications-template.php

    r8667 r8705  
    793793        ob_start(); ?>
    794794
    795         <a href="<?php bp_the_notification_mark_unread_url(); ?>" class="mark-unread primary"><?php _e( 'Unread', 'buddypress' ); ?></a>
     795        <a href="<?php bp_the_notification_mark_unread_url(); ?>" class="mark-unread primary"><?php _x( 'Unread',  'Notification screen action', 'buddypress' ); ?></a>
    796796
    797797        <?php $retval = ob_get_clean();
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php

    r7658 r8705  
    1212                </div>
    1313
    14                 <h4><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a><span class="small"> - <?php printf( _n( '1 member', '%d members', bp_get_group_total_members( false ), 'buddypress' ), bp_get_group_total_members( false )  ); ?></span></h4>
     14                <h4><a href="<?php bp_group_permalink(); ?>"><?php bp_group_name(); ?></a><span class="small"> - <?php printf( _nx( '1 member', '%d members', bp_get_group_total_members( false ),'Group member count', 'buddypress' ), bp_get_group_total_members( false )  ); ?></span></h4>
    1515
    1616                <p class="desc">
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r8677 r8705  
    2525        return false;
    2626
    27     add_users_page( __( 'Profile Fields', 'buddypress' ), __( 'Profile Fields', 'buddypress' ), 'manage_options', 'bp-profile-setup', 'xprofile_admin' );
     27    add_users_page( _x( 'Profile Fields', 'xProfile admin page title', 'buddypress' ), _x( 'Profile Fields', 'Admin Users menu', 'buddypress' ), 'manage_options', 'bp-profile-setup', 'xprofile_admin' );
    2828}
    2929add_action( bp_core_admin_hook(), 'xprofile_add_admin_menu' );
     
    6969
    7070        <h2>
    71             <?php _e( 'Profile Fields', 'buddypress'); ?>
     71            <?php _ex( 'Profile Fields', 'Settings page header', 'buddypress'); ?>
    7272            <a id="add_group" class="add-new-h2" href="users.php?page=bp-profile-setup&amp;mode=add_group"><?php _e( 'Add New Field Group', 'buddypress' ); ?></a>
    7373        </h2>
  • trunk/src/bp-xprofile/bp-xprofile-loader.php

    r8677 r8705  
    3939        parent::start(
    4040            'xprofile',
    41             __( 'Extended Profiles', 'buddypress' ),
     41            _x( 'Extended Profiles', 'Component page <title>', 'buddypress' ),
    4242            buddypress()->plugin_dir,
    4343            array(
     
    111111            'public' => array(
    112112                'id'      => 'public',
    113                 'label' => __( 'Everyone', 'buddypress' )
     113                'label' => _x( 'Everyone', 'Visibility level setting', 'buddypress' )
    114114            ),
    115115            'adminsonly' => array(
    116116                'id'      => 'adminsonly',
    117                 'label' => __( 'Only Me', 'buddypress' )
     117                'label' => _x( 'Only Me', 'Visibility level setting', 'buddypress' )
    118118            ),
    119119            'loggedin' => array(
    120120                'id'      => 'loggedin',
    121                 'label' => __( 'All Members', 'buddypress' )
     121                'label' => _x( 'All Members', 'Visibility level setting', 'buddypress' )
    122122            )
    123123        );
     
    126126            $this->visibility_levels['friends'] = array(
    127127                'id'    => 'friends',
    128                 'label' => __( 'My Friends', 'buddypress' )
     128                'label' => _x( 'My Friends', 'Visibility level setting', 'buddypress' )
    129129            );
    130130        }
     
    166166        // Add 'Profile' to the main navigation
    167167        $main_nav = array(
    168             'name'                => __( 'Profile', 'buddypress' ),
     168            'name'                => _x( 'Profile', 'Profile header menu', 'buddypress' ),
    169169            'slug'                => $this->slug,
    170170            'position'            => 20,
     
    187187        // Add the subnav items to the profile
    188188        $sub_nav[] = array(
    189             'name'            => __( 'View', 'buddypress' ),
     189            'name'            => _x( 'Profile', 'Profile header menu', 'buddypress' ),
    190190            'slug'            => 'public',
    191191            'parent_url'      => $profile_link,
     
    197197        // Edit Profile
    198198        $sub_nav[] = array(
    199             'name'            => __( 'Edit', 'buddypress' ),
     199            'name'            => _x( 'Edit','Profile header sub menu', 'buddypress' ),
    200200            'slug'            => 'edit',
    201201            'parent_url'      => $profile_link,
     
    209209        if ( buddypress()->avatar->show_avatars ) {
    210210            $sub_nav[] = array(
    211                 'name'            => __( 'Change Profile Photo', 'buddypress' ),
     211                'name'            => _x( 'Change Profile Photo', 'Profile header sub menu', 'buddypress' ),
    212212                'slug'            => 'change-avatar',
    213213                'parent_url'      => $profile_link,
     
    252252
    253253        bp_core_new_subnav_item( array(
    254             'name'            => __( 'Profile', 'buddypress' ),
     254            'name'            => _x( 'Profile', 'Profile settings  sub nav', 'buddypress' ),
    255255            'slug'            => 'profile',
    256256            'parent_url'      => trailingslashit( $user_domain . $settings_slug ),
     
    281281                'parent' => $bp->my_account_menu_id,
    282282                'id'     => 'my-account-' . $this->id,
    283                 'title'  => __( 'Profile', 'buddypress' ),
     283                'title'  => _x( 'Profile', 'My Account Profile', 'buddypress' ),
    284284                'href'   => trailingslashit( $profile_link )
    285285            );
     
    289289                'parent' => 'my-account-' . $this->id,
    290290                'id'     => 'my-account-' . $this->id . '-public',
    291                 'title'  => __( 'View', 'buddypress' ),
     291                'title'  => _x( 'View', 'My Account Profile sub nav', 'buddypress' ),
    292292                'href'   => trailingslashit( $profile_link . 'public' )
    293293            );
     
    297297                'parent' => 'my-account-' . $this->id,
    298298                'id'     => 'my-account-' . $this->id . '-edit',
    299                 'title'  => __( 'Edit', 'buddypress' ),
     299                'title'  => _x( 'Edit', 'My Account Profile sub nav', 'buddypress' ),
    300300                'href'   => trailingslashit( $profile_link . 'edit' )
    301301            );
     
    306306                    'parent' => 'my-account-' . $this->id,
    307307                    'id'     => 'my-account-' . $this->id . '-change-avatar',
    308                     'title'  => __( 'Change Profile Photo', 'buddypress' ),
     308                    'title'  => _x( 'Change Profile Photo', 'My Account Profile sub nav', 'buddypress' ),
    309309                    'href'   => trailingslashit( $profile_link . 'change-avatar' )
    310310                );
     
    333333        if ( bp_is_profile_component() ) {
    334334            if ( bp_is_my_profile() ) {
    335                 $bp->bp_options_title = __( 'My Profile', 'buddypress' );
     335                $bp->bp_options_title = _x( 'My Profile', 'Page title', 'buddypress' );
    336336            } else {
    337337                $bp->bp_options_avatar = bp_core_fetch_avatar( array(
    338338                    'item_id' => bp_displayed_user_id(),
    339339                    'type'    => 'thumb',
    340                     'alt'     => sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_get_displayed_user_fullname() )
     340                    'alt'     => sprintf( _x( 'Profile picture of %s', 'Avatar alt', 'buddypress' ), bp_get_displayed_user_fullname() )
    341341                ) );
    342342                $bp->bp_options_title = bp_get_displayed_user_fullname();
     
    363363            'parent' => 'my-account-' . buddypress()->settings->id,
    364364            'id'     => 'my-account-' . buddypress()->settings->id . '-profile',
    365             'title'  => __( 'Profile', 'buddypress' ),
     365            'title'  => _x( 'Profile', 'My Account Settings sub nav', 'buddypress' ),
    366366            'href'   => trailingslashit( $settings_link . 'profile' )
    367367        );
Note: See TracChangeset for help on using the changeset viewer.