Changeset 12596
- Timestamp:
- 03/28/2020 01:52:20 PM (5 years ago)
- Location:
- trunk/src/bp-xprofile
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-activity.php
r12393 r12596 61 61 function bp_xprofile_format_activity_action_new_avatar( $action, $activity ) { 62 62 $userlink = bp_core_get_userlink( $activity->user_id ); 63 $action = sprintf( esc_html__( '%s changed their profile picture', 'buddypress' ), $userlink ); 63 64 /* translators: %s: user link */ 65 $action = sprintf( esc_html__( '%s changed their profile picture', 'buddypress' ), $userlink ); 64 66 65 67 // Legacy filter - pass $user_id instead of $activity. … … 95 97 // natural translation. 96 98 $profile_link = trailingslashit( bp_core_get_user_domain( $activity->user_id ) . bp_get_profile_slug() ); 97 $action = sprintf( esc_html__( "%s's profile was updated", 'buddypress' ), '<a href="' . esc_url( $profile_link ) . '">' . bp_core_get_user_displayname( $activity->user_id ) . '</a>' ); 99 100 /* translators: %s: user profile link */ 101 $action = sprintf( esc_html__( "%s's profile was updated", 'buddypress' ), '<a href="' . esc_url( $profile_link ) . '">' . bp_core_get_user_displayname( $activity->user_id ) . '</a>' ); 98 102 99 103 /** -
trunk/src/bp-xprofile/bp-xprofile-admin.php
r12529 r12596 571 571 572 572 if ( !$field->delete( (bool) $delete_data ) ) { 573 /* translators: %s: the field type */ 573 574 $message = sprintf( __( 'There was an error deleting the %s. Please try again.', 'buddypress' ), $field_type ); 574 575 $type = 'error'; 575 576 } else { 577 /* translators: %s: the field type */ 576 578 $message = sprintf( __( 'The %s was deleted successfully!', 'buddypress' ), $field_type ); 577 579 $type = 'success'; -
trunk/src/bp-xprofile/bp-xprofile-template.php
r12555 r12596 1165 1165 * @param string $value Formatted last updated indicator string. 1166 1166 */ 1167 return apply_filters( 'bp_get_profile_last_updated', sprintf( __( 'Profile updated %s', 'buddypress' ), bp_core_time_since( strtotime( $last_updated ) ) ) ); 1167 return apply_filters( 1168 'bp_get_profile_last_updated', 1169 /* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */ 1170 sprintf( __( 'Profile updated %s', 'buddypress' ), bp_core_time_since( strtotime( $last_updated ) ) ) 1171 ); 1168 1172 } 1169 1173 -
trunk/src/bp-xprofile/classes/class-bp-xprofile-component.php
r12559 r12596 385 385 'item_id' => bp_displayed_user_id(), 386 386 'type' => 'thumb', 387 388 /* translators: %s: member name */ 387 389 'alt' => sprintf( _x( 'Profile picture of %s', 'Avatar alt', 'buddypress' ), bp_get_displayed_user_fullname() ) 388 390 ) ); -
trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php
r12532 r12596 785 785 } 786 786 787 /* translators: %s: comma separated list of member types */ 787 788 $label = sprintf( __( '(Member types: %s)', 'buddypress' ), implode( ', ', array_map( 'esc_html', $member_type_labels ) ) ); 788 789 } else { … … 1112 1113 // Check that field is of valid type. 1113 1114 if ( ! in_array( $_POST['fieldtype'], array_keys( bp_xprofile_get_field_types() ), true ) ) { 1115 /* translators: %s: field type name */ 1114 1116 $message = sprintf( esc_html__( 'The profile field type %s is not registered.', 'buddypress' ), '<code>' . esc_attr( $_POST['fieldtype'] ) . '</code>' ); 1115 1117 return false; … … 1138 1140 // Check for missing or malformed options. 1139 1141 if ( 0 === $field_count ) { 1142 /* translators: %s: field type name */ 1140 1143 $message = sprintf( esc_html__( '%s require at least one option.', 'buddypress' ), $field_type->name ); 1141 1144 return false; … … 1144 1147 // If only one option exists, it cannot be an empty string. 1145 1148 if ( ( 1 === $field_count ) && ( '' === $field_options[0] ) ) { 1149 /* translators: %s: field type name */ 1146 1150 $message = sprintf( esc_html__( '%s require at least one option.', 'buddypress' ), $field_type->name ); 1147 1151 return false;
Note: See TracChangeset
for help on using the changeset viewer.