Changeset 8705 for trunk/src/bp-activity/bp-activity-loader.php
- Timestamp:
- 07/27/2014 05:48:17 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-loader.php
r8662 r8705 137 137 // Add 'Activity' to the main navigation 138 138 $main_nav = array( 139 'name' => _ _( 'Activity', 'buddypress' ),139 'name' => _x( 'Activity', 'Profile activity screen nav', 'buddypress' ), 140 140 'slug' => $this->slug, 141 141 'position' => 10, … … 163 163 // Add the subnav items to the activity nav item if we are using a theme that supports this 164 164 $sub_nav[] = array( 165 'name' => _ _( 'Personal', 'buddypress' ),165 'name' => _x( 'Personal', 'Profile activity screen sub nav', 'buddypress' ), 166 166 'slug' => 'just-me', 167 167 'parent_url' => $activity_link, … … 174 174 if ( bp_activity_do_mentions() ) { 175 175 $sub_nav[] = array( 176 'name' => _ _( 'Mentions', 'buddypress' ),176 'name' => _x( 'Mentions', 'Profile activity screen sub nav', 'buddypress' ), 177 177 'slug' => 'mentions', 178 178 'parent_url' => $activity_link, … … 186 186 // Favorite activity items 187 187 $sub_nav[] = array( 188 'name' => _ _( 'Favorites', 'buddypress' ),188 'name' => _x( 'Favorites', 'Profile activity screen sub nav', 'buddypress' ), 189 189 'slug' => 'favorites', 190 190 'parent_url' => $activity_link, … … 198 198 if ( bp_is_active( 'friends' ) ) { 199 199 $sub_nav[] = array( 200 'name' => _ _( 'Friends', 'buddypress' ),200 'name' => _x( 'Friends', 'Profile activity screen sub nav', 'buddypress' ), 201 201 'slug' => bp_get_friends_slug(), 202 202 'parent_url' => $activity_link, … … 211 211 if ( bp_is_active( 'groups' ) ) { 212 212 $sub_nav[] = array( 213 'name' => _ _( 'Groups', 'buddypress' ),213 'name' => _x( 'Groups', 'Profile activity screen sub nav', 'buddypress' ), 214 214 'slug' => bp_get_groups_slug(), 215 215 'parent_url' => $activity_link, … … 256 256 $count = bp_get_total_mention_count_for_user( bp_loggedin_user_id() ); 257 257 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 ) ); 259 259 } else { 260 $title = _ _( 'Mentions', 'buddypress' );260 $title = _x( 'Mentions', 'Toolbar Mention logged in user', 'buddypress' ); 261 261 } 262 262 } … … 266 266 'parent' => $bp->my_account_menu_id, 267 267 'id' => 'my-account-' . $this->id, 268 'title' => _ _( 'Activity', 'buddypress' ),268 'title' => _x( 'Activity', 'My Account Activity sub nav', 'buddypress' ), 269 269 'href' => trailingslashit( $activity_link ) 270 270 ); … … 274 274 'parent' => 'my-account-' . $this->id, 275 275 'id' => 'my-account-' . $this->id . '-personal', 276 'title' => _ _( 'Personal', 'buddypress' ),276 'title' => _x( 'Personal', 'My Account Activity sub nav', 'buddypress' ), 277 277 'href' => trailingslashit( $activity_link ) 278 278 ); … … 292 292 'parent' => 'my-account-' . $this->id, 293 293 'id' => 'my-account-' . $this->id . '-favorites', 294 'title' => _ _( 'Favorites', 'buddypress' ),294 'title' => _x( 'Favorites', 'My Account Activity sub nav', 'buddypress' ), 295 295 'href' => trailingslashit( $activity_link . 'favorites' ) 296 296 ); … … 301 301 'parent' => 'my-account-' . $this->id, 302 302 'id' => 'my-account-' . $this->id . '-friends', 303 'title' => _ _( 'Friends', 'buddypress' ),303 'title' => _x( 'Friends', 'My Account Activity sub nav', 'buddypress' ), 304 304 'href' => trailingslashit( $activity_link . bp_get_friends_slug() ) 305 305 ); … … 311 311 'parent' => 'my-account-' . $this->id, 312 312 'id' => 'my-account-' . $this->id . '-groups', 313 'title' => _ _( 'Groups', 'buddypress' ),313 'title' => _x( 'Groups', 'My Account Activity sub nav', 'buddypress' ), 314 314 'href' => trailingslashit( $activity_link . bp_get_groups_slug() ) 315 315 ); … … 335 335 if ( bp_is_activity_component() ) { 336 336 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' ); 338 338 } else { 339 339 $bp->bp_options_avatar = bp_core_fetch_avatar( array(
Note: See TracChangeset
for help on using the changeset viewer.