Changeset 12586 for trunk/src/bp-activity/bp-activity-template.php
- Timestamp:
- 03/28/2020 01:31:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r12564 r12586 453 453 $message = __( 'Viewing 1 item', 'buddypress' ); 454 454 } else { 455 /* translators: 1: the from number item. 2: the to number item. 3: the total number of items. */ 455 456 $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s item', 'Viewing %1$s - %2$s of %3$s items', $activities_template->total_activity_count, 'buddypress' ), $from_num, $to_num, $total ); 456 457 } … … 1035 1036 1036 1037 // Prepend some descriptive text to alt. 1037 $alt_default = !empty( $dn_default ) ? sprintf( __( 'Profile picture of %s', 'buddypress' ), $dn_default ) : __( 'Profile picture', 'buddypress' ); 1038 $alt_default = __( 'Profile picture', 'buddypress' ); 1039 if ( ! empty( $dn_default ) ) { 1040 /* translators: %s: member name */ 1041 $alt_default = sprintf( __( 'Profile picture of %s', 'buddypress' ), $dn_default ); 1042 } 1038 1043 1039 1044 $defaults = array( … … 1183 1188 1184 1189 if ( ! empty( $name ) ) { 1190 /* translators: %s: the Group name */ 1185 1191 $alt = sprintf( __( 'Group logo of %s', 'buddypress' ), $name ); 1186 1192 } … … 1194 1200 1195 1201 if ( empty( $alt ) ) { 1202 /* translators: %s: the blog name */ 1196 1203 $alt = sprintf( __( 'Profile picture of the author of the site %s', 'buddypress' ), get_blog_option( $item_id, 'blogname' ) ); 1197 1204 } … … 1204 1211 1205 1212 if ( empty( $alt ) ) { 1213 /* translators: %s: member name */ 1206 1214 $alt = sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $activities_template->activity->secondary_item_id ) ); 1207 1215 } … … 1215 1223 1216 1224 if ( empty( $alt ) ) { 1225 /* translators: %s: member name */ 1217 1226 $alt = sprintf( __( 'Profile picture of %s', 'buddypress' ), $activities_template->activity->display_name ); 1218 1227 } … … 2172 2181 // Deprecated notice about $args. 2173 2182 if ( ! empty( $deprecated ) ) { 2174 _deprecated_argument( __FUNCTION__, '1.2', sprintf( __( '%1$s no longer accepts arguments. See the inline documentation at %2$s for more details.', 'buddypress' ), __FUNCTION__, __FILE__ ) ); 2183 _deprecated_argument( 2184 __FUNCTION__, 2185 '1.2', 2186 sprintf( 2187 /* translators: 1: the name of the function. 2: the name of the file. */ 2188 __( '%1$s no longer accepts arguments. See the inline documentation at %2$s for more details.', 'buddypress' ), 2189 __FUNCTION__, 2190 __FILE__ 2191 ) 2192 ); 2175 2193 } 2176 2194
Note: See TracChangeset
for help on using the changeset viewer.