Changeset 8705 for trunk/src/bp-xprofile/bp-xprofile-loader.php
- Timestamp:
- 07/27/2014 05:48:17 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-loader.php
r8677 r8705 39 39 parent::start( 40 40 'xprofile', 41 _ _( 'Extended Profiles', 'buddypress' ),41 _x( 'Extended Profiles', 'Component page <title>', 'buddypress' ), 42 42 buddypress()->plugin_dir, 43 43 array( … … 111 111 'public' => array( 112 112 'id' => 'public', 113 'label' => _ _( 'Everyone', 'buddypress' )113 'label' => _x( 'Everyone', 'Visibility level setting', 'buddypress' ) 114 114 ), 115 115 'adminsonly' => array( 116 116 'id' => 'adminsonly', 117 'label' => _ _( 'Only Me', 'buddypress' )117 'label' => _x( 'Only Me', 'Visibility level setting', 'buddypress' ) 118 118 ), 119 119 'loggedin' => array( 120 120 'id' => 'loggedin', 121 'label' => _ _( 'All Members', 'buddypress' )121 'label' => _x( 'All Members', 'Visibility level setting', 'buddypress' ) 122 122 ) 123 123 ); … … 126 126 $this->visibility_levels['friends'] = array( 127 127 'id' => 'friends', 128 'label' => _ _( 'My Friends', 'buddypress' )128 'label' => _x( 'My Friends', 'Visibility level setting', 'buddypress' ) 129 129 ); 130 130 } … … 166 166 // Add 'Profile' to the main navigation 167 167 $main_nav = array( 168 'name' => _ _( 'Profile', 'buddypress' ),168 'name' => _x( 'Profile', 'Profile header menu', 'buddypress' ), 169 169 'slug' => $this->slug, 170 170 'position' => 20, … … 187 187 // Add the subnav items to the profile 188 188 $sub_nav[] = array( 189 'name' => _ _( 'View', 'buddypress' ),189 'name' => _x( 'Profile', 'Profile header menu', 'buddypress' ), 190 190 'slug' => 'public', 191 191 'parent_url' => $profile_link, … … 197 197 // Edit Profile 198 198 $sub_nav[] = array( 199 'name' => _ _( 'Edit', 'buddypress' ),199 'name' => _x( 'Edit','Profile header sub menu', 'buddypress' ), 200 200 'slug' => 'edit', 201 201 'parent_url' => $profile_link, … … 209 209 if ( buddypress()->avatar->show_avatars ) { 210 210 $sub_nav[] = array( 211 'name' => _ _( 'Change Profile Photo', 'buddypress' ),211 'name' => _x( 'Change Profile Photo', 'Profile header sub menu', 'buddypress' ), 212 212 'slug' => 'change-avatar', 213 213 'parent_url' => $profile_link, … … 252 252 253 253 bp_core_new_subnav_item( array( 254 'name' => _ _( 'Profile', 'buddypress' ),254 'name' => _x( 'Profile', 'Profile settings sub nav', 'buddypress' ), 255 255 'slug' => 'profile', 256 256 'parent_url' => trailingslashit( $user_domain . $settings_slug ), … … 281 281 'parent' => $bp->my_account_menu_id, 282 282 'id' => 'my-account-' . $this->id, 283 'title' => _ _( 'Profile', 'buddypress' ),283 'title' => _x( 'Profile', 'My Account Profile', 'buddypress' ), 284 284 'href' => trailingslashit( $profile_link ) 285 285 ); … … 289 289 'parent' => 'my-account-' . $this->id, 290 290 'id' => 'my-account-' . $this->id . '-public', 291 'title' => _ _( 'View', 'buddypress' ),291 'title' => _x( 'View', 'My Account Profile sub nav', 'buddypress' ), 292 292 'href' => trailingslashit( $profile_link . 'public' ) 293 293 ); … … 297 297 'parent' => 'my-account-' . $this->id, 298 298 'id' => 'my-account-' . $this->id . '-edit', 299 'title' => _ _( 'Edit', 'buddypress' ),299 'title' => _x( 'Edit', 'My Account Profile sub nav', 'buddypress' ), 300 300 'href' => trailingslashit( $profile_link . 'edit' ) 301 301 ); … … 306 306 'parent' => 'my-account-' . $this->id, 307 307 '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' ), 309 309 'href' => trailingslashit( $profile_link . 'change-avatar' ) 310 310 ); … … 333 333 if ( bp_is_profile_component() ) { 334 334 if ( bp_is_my_profile() ) { 335 $bp->bp_options_title = _ _( 'My Profile', 'buddypress' );335 $bp->bp_options_title = _x( 'My Profile', 'Page title', 'buddypress' ); 336 336 } else { 337 337 $bp->bp_options_avatar = bp_core_fetch_avatar( array( 338 338 'item_id' => bp_displayed_user_id(), 339 339 '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() ) 341 341 ) ); 342 342 $bp->bp_options_title = bp_get_displayed_user_fullname(); … … 363 363 'parent' => 'my-account-' . buddypress()->settings->id, 364 364 'id' => 'my-account-' . buddypress()->settings->id . '-profile', 365 'title' => _ _( 'Profile', 'buddypress' ),365 'title' => _x( 'Profile', 'My Account Settings sub nav', 'buddypress' ), 366 366 'href' => trailingslashit( $settings_link . 'profile' ) 367 367 );
Note: See TracChangeset
for help on using the changeset viewer.