Skip to:
Content

BuddyPress.org


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

i18n: disambiguate nav items' strings.

See #5777, props danbp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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(
Note: See TracChangeset for help on using the changeset viewer.