Changeset 12588
- Timestamp:
- 03/28/2020 01:35:36 PM (5 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-components.php
r11914 r12588 143 143 $current_components = $retired_components; 144 144 break; 145 } ?> 145 } 146 147 $component_views = array( 148 array( 149 'action' => 'all', 150 'view' => sprintf( 151 /* translators: %s: the number of installed components */ 152 _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $all_count, 'plugins', 'buddypress' ), 153 number_format_i18n( $all_count ) 154 ), 155 ), 156 array( 157 'action' => 'active', 158 'view' => sprintf( 159 /* translators: %s: the number of active components */ 160 _n( 'Active <span class="count">(%s)</span>', 'Active <span class="count">(%s)</span>', count( $active_components ), 'buddypress' ), 161 number_format_i18n( count( $active_components ) ) 162 ), 163 ), 164 array( 165 'action' => 'inactive', 166 'view' => sprintf( 167 /* translators: %s: the number of inactive components */ 168 _n( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', count( $inactive_components ), 'buddypress' ), 169 number_format_i18n( count( $inactive_components ) ) 170 ), 171 ), 172 array( 173 'action' => 'mustuse', 174 'view' => sprintf( 175 /* translators: %s: the number of must-Use components */ 176 _n( 'Must-Use <span class="count">(%s)</span>', 'Must-Use <span class="count">(%s)</span>', count( $required_components ), 'buddypress' ), 177 number_format_i18n( count( $required_components ) ) 178 ), 179 ), 180 array( 181 'action' => 'retired', 182 'view' => sprintf( 183 /* translators: %s: the number of retired components */ 184 _n( 'Retired <span class="count">(%s)</span>', 'Retired <span class="count">(%s)</span>', count( $retired_components ), 'buddypress' ), 185 number_format_i18n( count( $retired_components ) ) 186 ), 187 ), 188 ); 189 ?> 146 190 147 191 <h3 class="screen-reader-text"><?php 148 192 /* translators: accessibility text */ 149 _e( 'Filter components list', 'buddypress' );193 esc_html_e( 'Filter components list', 'buddypress' ); 150 194 ?></h3> 151 195 152 196 <ul class="subsubsub"> 153 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'all' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'all' ) : ?>class="current"<?php endif; ?>><?php printf( _nx( 'All <span class="count">(%s)</span>', 'All <span class="count">(%s)</span>', $all_count, 'plugins', 'buddypress' ), number_format_i18n( $all_count ) ); ?></a> | </li> 154 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'active' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'active' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Active <span class="count">(%s)</span>', 'Active <span class="count">(%s)</span>', count( $active_components ), 'buddypress' ), number_format_i18n( count( $active_components ) ) ); ?></a> | </li> 155 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'inactive' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'inactive' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', count( $inactive_components ), 'buddypress' ), number_format_i18n( count( $inactive_components ) ) ); ?></a> | </li> 156 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'mustuse' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'mustuse' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Must-Use <span class="count">(%s)</span>', 'Must-Use <span class="count">(%s)</span>', count( $required_components ), 'buddypress' ), number_format_i18n( count( $required_components ) ) ); ?></a> | </li> 157 <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'retired' ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'retired' ) : ?>class="current"<?php endif; ?>><?php printf( _n( 'Retired <span class="count">(%s)</span>', 'Retired <span class="count">(%s)</span>', count( $retired_components ), 'buddypress' ), number_format_i18n( count( $retired_components ) ) ); ?></a></li> 197 <?php foreach ( $component_views as $component_view ) : ?> 198 <li> 199 <a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => $component_view['action'] ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === $component_view['action'] ) : ?>class="current"<?php endif; ?>> 200 <?php echo wp_kses( $component_view['view'], array( 'span' => array( 'class' => true ) ) ); ?> 201 </a><?php echo 'retired' !== $component_view['action'] ? ' |' : ''; ?> 202 </li> 203 <?php endforeach ;?> 158 204 </ul> 159 205 160 206 <h3 class="screen-reader-text"><?php 161 207 /* translators: accessibility text */ 162 _e( 'Components list', 'buddypress' );208 esc_html_e( 'Components list', 'buddypress' ); 163 209 ?></h3> 164 210 -
trunk/src/bp-core/admin/bp-core-admin-slugs.php
r12550 r12588 191 191 <?php else : ?> 192 192 <?php if ( is_multisite() ) : ?> 193 <p><?php printf( __( 'Registration is currently disabled. Before associating a page is allowed, please enable registration by selecting either the "User accounts may be registered" or "Both sites and user accounts can be registered" option on <a href="%s">this page</a>.', 'buddypress' ), network_admin_url( 'settings.php' ) ); ?></p> 193 <p> 194 <?php 195 /* translators: %s: the link to the Network settings page */ 196 printf( __( 'Registration is currently disabled. Before associating a page is allowed, please enable registration by selecting either the "User accounts may be registered" or "Both sites and user accounts can be registered" option on <a href="%s">this page</a>.', 'buddypress' ), network_admin_url( 'settings.php' ) ); 197 ?> 198 </p> 194 199 <?php else : ?> 195 <p><?php printf( __( 'Registration is currently disabled. Before associating a page is allowed, please enable registration by clicking on the "Anyone can register" checkbox on <a href="%s">this page</a>.', 'buddypress' ), admin_url( 'options-general.php' ) ); ?></p> 200 <p> 201 <?php 202 /* translators: %s: the link to the Site settings page */ 203 printf( __( 'Registration is currently disabled. Before associating a page is allowed, please enable registration by clicking on the "Anyone can register" checkbox on <a href="%s">this page</a>.', 'buddypress' ), admin_url( 'options-general.php' ) ); 204 ?> 205 </p> 196 206 <?php endif; ?> 197 207 <?php endif; ?> -
trunk/src/bp-core/admin/bp-core-admin-tools.php
r12391 r12588 174 174 } 175 175 176 /* translators: %s: the result of the action performed by the repair tool */ 176 177 $statement = __( 'Counting the number of friends for each user… %s', 'buddypress' ); 177 178 $result = __( 'Failed!', 'buddypress' ); … … 232 233 } 233 234 235 /* translators: %s: the result of the action performed by the repair tool */ 234 236 $statement = __( 'Counting the number of groups for each user… %s', 'buddypress' ); 235 237 $result = __( 'Failed!', 'buddypress' ); … … 274 276 function bp_admin_repair_blog_records() { 275 277 276 / / Description of this tool, displayed to the user.278 /* translators: %s: the result of the action performed by the repair tool */ 277 279 $statement = __( 'Repopulating Blogs records… %s', 'buddypress' ); 278 280 … … 303 305 */ 304 306 function bp_admin_repair_count_members() { 307 /* translators: %s: the result of the action performed by the repair tool */ 305 308 $statement = __( 'Counting the number of active members on the site… %s', 'buddypress' ); 306 309 delete_transient( 'bp_active_member_count' ); … … 317 320 */ 318 321 function bp_admin_repair_last_activity() { 322 /* translators: %s: the result of the action performed by the repair tool */ 319 323 $statement = __( 'Determining last activity dates for each user… %s', 'buddypress' ); 320 324 bp_last_activity_migrate(); … … 408 412 <p> 409 413 <?php esc_html_e( 'BuddyPress keeps track of various relationships between users, groups, and activity items. Occasionally these relationships become out of sync, most often after an import, update, or migration.', 'buddypress' ); ?> 410 <?php printf( esc_html_x( 'Use the %s to repair these relationships.', 'buddypress tools intro', 'buddypress' ), '<a href="' . esc_url( $url ) . '">' . esc_html__( 'BuddyPress Tools', 'buddypress' ) . '</a>' ); ?> 414 <?php 415 printf( 416 /* translators: %s: the link to the BuddyPress repair tools */ 417 esc_html_x( 'Use the %s to repair these relationships.', 'buddypress tools intro', 'buddypress' ), 418 '<a href="' . esc_url( $url ) . '">' . esc_html__( 'BuddyPress Tools', 'buddypress' ) . '</a>' 419 ); 420 ?> 411 421 </p> 412 422 </div> -
trunk/src/bp-core/bp-core-admin.php
r11360 r12588 55 55 ); 56 56 57 /* translators: %s: the link to the BuddyPress release notes */ 57 58 __( 'For more information, see <a href="%s">the release notes</a>.', 'buddypress' ); 58 59 } -
trunk/src/bp-core/bp-core-attachments.php
r12572 r12588 641 641 array( 642 642 'queue_limit_exceeded' => __( 'You have attempted to queue too many files.', 'buddypress' ), 643 644 /* translators: %s: File name. */ 643 645 'file_exceeds_size_limit' => __( '%s exceeds the maximum upload size for this site.', 'buddypress' ), 644 646 'zero_byte_file' => __( 'This file is empty. Please try another.', 'buddypress' ), … … 652 654 'http_error' => __( 'HTTP error.', 'buddypress' ), 653 655 'upload_failed' => __( 'Upload failed.', 'buddypress' ), 656 657 /* translators: 1: Opening link tag, 2: Closing link tag. */ 654 658 'big_upload_failed' => __( 'Please try uploading this file with the %1$sbrowser uploader%2$s.', 'buddypress' ), 659 660 /* translators: %s: File name. */ 655 661 'big_upload_queued' => __( '%s exceeds the maximum upload size for the multi-file uploader when used in your browser.', 'buddypress' ), 656 662 'io_error' => __( 'IO error.', 'buddypress' ), … … 661 667 'crunching' => __( 'Crunching…', 'buddypress' ), 662 668 'unique_file_warning' => __( 'Make sure to upload a unique file', 'buddypress' ), 669 670 /* translators: %s: File name. */ 663 671 'error_uploading' => __( '“%s” has failed to upload.', 'buddypress' ), 664 672 'has_avatar_warning' => __( 'If you'd like to delete the existing profile photo but not upload a new one, please use the delete tab.', 'buddypress' ) … … 831 839 $strings['cover_image_warnings'] = apply_filters( 'bp_attachments_cover_image_ui_warnings', array( 832 840 'dimensions' => sprintf( 833 __( 'For better results, make sure to upload an image that is larger than %1$spx wide, and %2$spx tall.', 'buddypress' ), 834 (int) $cover_dimensions['width'], 835 (int) $cover_dimensions['height'] 836 ), 841 /* translators: 1: the advised width size in pixels. 2: the advised height size in pixels. */ 842 __( 'For better results, make sure to upload an image that is larger than %1$spx wide, and %2$spx tall.', 'buddypress' ), 843 (int) $cover_dimensions['width'], 844 (int) $cover_dimensions['height'] 845 ), 837 846 ) ); 838 847 } … … 1354 1363 bp_attachments_json_response( false, $is_html4, array( 1355 1364 'type' => 'upload_error', 1356 'message' => sprintf( __( 'Upload Failed! Error was: %s', 'buddypress' ), $uploaded['error'] ), 1365 'message' => sprintf( 1366 /* translators: %s: the upload error message */ 1367 __( 'Upload Failed! Error was: %s', 'buddypress' ), 1368 $uploaded['error'] 1369 ), 1357 1370 ) ); 1358 1371 } -
trunk/src/bp-core/bp-core-avatars.php
r12565 r12588 912 912 // In case of an error, stop the process and display a feedback to the user. 913 913 if ( ! empty( $bp->avatar_admin->original['error'] ) ) { 914 /* translators: %s: the upload error message */ 914 915 bp_core_add_message( sprintf( __( 'Upload Failed! Error was: %s', 'buddypress' ), $bp->avatar_admin->original['error'] ), 'error' ); 915 916 return false; … … 940 941 // Check for WP_Error on what should be an image. 941 942 if ( is_wp_error( $bp->avatar_admin->image->dir ) ) { 943 /* translators: %s: the upload error message */ 942 944 bp_core_add_message( sprintf( __( 'Upload failed! Error was: %s', 'buddypress' ), $bp->avatar_admin->image->dir->get_error_message() ), 'error' ); 943 945 return false; … … 946 948 // If the uploaded image is smaller than the "full" dimensions, throw a warning. 947 949 if ( $avatar_attachment->is_too_small( $bp->avatar_admin->image->file ) ) { 948 bp_core_add_message( sprintf( __( 'You have selected an image that is smaller than recommended. For best results, upload a picture larger than %d x %d pixels.', 'buddypress' ), bp_core_avatar_full_width(), bp_core_avatar_full_height() ), 'error' ); 950 /* translators: 1: the advised width size in pixels. 2: the advised height size in pixels. */ 951 bp_core_add_message( sprintf( __( 'You have selected an image that is smaller than recommended. For best results, upload a picture larger than %1$d x %2$d pixels.', 'buddypress' ), bp_core_avatar_full_width(), bp_core_avatar_full_height() ), 'error' ); 949 952 } 950 953 -
trunk/src/bp-core/bp-core-filters.php
r12569 r12588 601 601 602 602 if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() && ! bp_is_single_activity() ) { 603 /* translators: %s: the page number. */ 603 604 $bp_title_parts['page'] = sprintf( __( 'Page %s', 'buddypress' ), max( $paged, $page ) ); 604 605 } -
trunk/src/bp-core/bp-core-functions.php
r12569 r12588 1186 1186 * @param string $value String representing the time since the older date. 1187 1187 */ 1188 $ago_text = apply_filters( 'bp_core_time_since_ago_text', __( '%s ago', 'buddypress' ) ); 1188 $ago_text = apply_filters( 1189 'bp_core_time_since_ago_text', 1190 /* translators: %s: the human time diff. */ 1191 __( '%s ago', 'buddypress' ) 1192 ); 1189 1193 1190 1194 // Array of time period chunks. … … 1247 1251 switch ( $seconds ) { 1248 1252 case YEAR_IN_SECONDS : 1253 /* translators: %s: the number of years. */ 1249 1254 $output = sprintf( _n( '%s year', '%s years', $count, 'buddypress' ), $count ); 1250 1255 break; 1251 1256 case 30 * DAY_IN_SECONDS : 1257 /* translators: %s: the number of months. */ 1252 1258 $output = sprintf( _n( '%s month', '%s months', $count, 'buddypress' ), $count ); 1253 1259 break; 1254 1260 case WEEK_IN_SECONDS : 1261 /* translators: %s: the number of weeks. */ 1255 1262 $output = sprintf( _n( '%s week', '%s weeks', $count, 'buddypress' ), $count ); 1256 1263 break; 1257 1264 case DAY_IN_SECONDS : 1265 /* translators: %s: the number of days. */ 1258 1266 $output = sprintf( _n( '%s day', '%s days', $count, 'buddypress' ), $count ); 1259 1267 break; 1260 1268 case HOUR_IN_SECONDS : 1269 /* translators: %s: the number of hours. */ 1261 1270 $output = sprintf( _n( '%s hour', '%s hours', $count, 'buddypress' ), $count ); 1262 1271 break; 1263 1272 case MINUTE_IN_SECONDS : 1273 /* translators: %s: the number of minutes. */ 1264 1274 $output = sprintf( _n( '%s minute', '%s minutes', $count, 'buddypress' ), $count ); 1265 1275 break; 1266 1276 default: 1277 /* translators: %s: the number of seconds. */ 1267 1278 $output = sprintf( _n( '%s second', '%s seconds', $count, 'buddypress' ), $count ); 1268 1279 } … … 1284 1295 switch ( $seconds2 ) { 1285 1296 case 30 * DAY_IN_SECONDS : 1297 /* translators: %s: the number of months. */ 1286 1298 $output .= sprintf( _n( '%s month', '%s months', $count2, 'buddypress' ), $count2 ); 1287 1299 break; 1288 1300 case WEEK_IN_SECONDS : 1301 /* translators: %s: the number of weeks. */ 1289 1302 $output .= sprintf( _n( '%s week', '%s weeks', $count2, 'buddypress' ), $count2 ); 1290 1303 break; 1291 1304 case DAY_IN_SECONDS : 1305 /* translators: %s: the number of days. */ 1292 1306 $output .= sprintf( _n( '%s day', '%s days', $count2, 'buddypress' ), $count2 ); 1293 1307 break; 1294 1308 case HOUR_IN_SECONDS : 1309 /* translators: %s: the number of hours. */ 1295 1310 $output .= sprintf( _n( '%s hour', '%s hours', $count2, 'buddypress' ), $count2 ); 1296 1311 break; 1297 1312 case MINUTE_IN_SECONDS : 1313 /* translators: %s: the number of minutes. */ 1298 1314 $output .= sprintf( _n( '%s minute', '%s minutes', $count2, 'buddypress' ), $count2 ); 1299 1315 break; 1300 1316 default: 1317 /* translators: %s: the number of seconds. */ 1301 1318 $output .= sprintf( _n( '%s second', '%s seconds', $count2, 'buddypress' ), $count2 ); 1302 1319 } … … 3250 3267 */ 3251 3268 function bp_email_get_appearance_settings() { 3252 /* translators: This is the copyright text for email footers. 1. Copyright year, 2. Site name */3253 3269 $footer_text = array( 3254 3270 sprintf( 3255 _x( '© %1$s %2$s', 'email', 'buddypress' ), 3271 /* translators: 1. Copyright year, 2. Site name */ 3272 _x( '© %1$s %2$s', 'copyright text for email footers', 'buddypress' ), 3256 3273 date_i18n( 'Y' ), 3257 3274 bp_get_option( 'blogname' ) -
trunk/src/bp-core/bp-core-template.php
r12561 r12588 144 144 // If none is found, concatenate. 145 145 } elseif ( isset( buddypress()->{$component}->name ) ) { 146 /* translators: %s: Name of the BuddyPress component */ 146 147 $title = sprintf( __( '%s Directory', 'buddypress' ), buddypress()->{$component}->name ); 147 148 } … … 196 197 'item_id' => $comment->user_id, 197 198 'type' => 'thumb', 198 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $comment->user_id ) ) 199 'alt' => sprintf( 200 /* translators: %s: member name */ 201 __( 'Profile photo of %s', 'buddypress' ), 202 bp_core_get_user_displayname( $comment->user_id ) 203 ), 199 204 ) ) ); 200 205 } … … 211 216 'item_id' => $post->post_author, 212 217 'type' => 'thumb', 213 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $post->post_author ) ) 218 'alt' => sprintf( 219 /* translators: %s: member name */ 220 __( 'Profile photo of %s', 'buddypress' ), 221 bp_core_get_user_displayname( $post->post_author ) 222 ), 214 223 ) ) ); 215 224 } … … 3758 3767 * @param string $token The Recipient token. 3759 3768 */ 3760 return apply_filters( 'bp_email_get_salutation', sprintf( _x( 'Hi %s,', 'recipient salutation', 'buddypress' ), $token ), $settings, $token ); 3761 } 3769 return apply_filters( 3770 'bp_email_get_salutation', 3771 sprintf( 3772 /* translators: %s: the email token for the recipient name */ 3773 _x( 'Hi %s,', 'recipient salutation', 'buddypress' ), 3774 $token 3775 ), 3776 $settings, 3777 $token 3778 ); 3779 } -
trunk/src/bp-core/classes/class-bp-admin.php
r12553 r12588 780 780 <?php 781 781 printf( 782 /* translators: 1: heart dashicons. 2: BP Credits screen url. 3: number of BuddyPress contributors to this version. */ 782 783 _n( 'Built with %1$s by <a href="%2$s">%3$d volunteer</a>.', 'Built with %1$s by <a href="%2$s">%3$d volunteers</a>.', 28, 'buddypress' ), 783 784 '<span class="dashicons dashicons-heart"></span>', … … 956 957 </ul> 957 958 958 <h3 class="wp-people-group"><?php printf( esc_html__( 'Contributors to BuddyPress %s', 'buddypress' ), self::display_version() ); ?></h3> 959 <h3 class="wp-people-group"> 960 <?php 961 printf( 962 /* translators: %s: BuddyPress version number */ 963 esc_html__( 'Contributors to BuddyPress %s', 'buddypress' ), 964 self::display_version() 965 ); 966 ?> 967 </h3> 959 968 <p class="wp-credits-list"> 960 969 <a href="https://github.com/baconbro">baconbro</a>, -
trunk/src/bp-core/classes/class-bp-attachment-avatar.php
r12547 r12588 38 38 // Specific errors for avatars. 39 39 'upload_error_strings' => array( 40 9 => sprintf( __( 'That photo is too big. Please upload one smaller than %s', 'buddypress' ), size_format( bp_core_avatar_original_max_filesize() ) ), 41 10 => sprintf( _n( 'Please upload only this file type: %s.', 'Please upload only these file types: %s.', count( $allowed_types ), 'buddypress' ), self::get_avatar_types( $allowed_types ) ), 40 /* translators: %s: Max file size for the profile photo */ 41 9 => sprintf( _x( 'That photo is too big. Please upload one smaller than %s', 'profile photo upload error', 'buddypress' ), size_format( bp_core_avatar_original_max_filesize() ) ), 42 43 /* translators: %s: comma separated list of file types allowed for the profile photo */ 44 10 => sprintf( _nx( 'Please upload only this file type: %s.', 'Please upload only these file types: %s.', count( $allowed_types ), 'profile photo upload error', 'buddypress' ), self::get_avatar_types( $allowed_types ) ), 42 45 ), 43 46 ) ); -
trunk/src/bp-core/classes/class-bp-attachment-cover-image.php
r11875 r12588 38 38 // Specific errors for cover images. 39 39 'upload_error_strings' => array( 40 11 => sprintf( __( 'That image is too big. Please upload one smaller than %s', 'buddypress' ), size_format( $max_upload_file_size ) ), 41 12 => sprintf( _n( 'Please upload only this file type: %s.', 'Please upload only these file types: %s.', count( $allowed_types ), 'buddypress' ), self::get_cover_image_types( $allowed_types ) ), 40 /* translators: %s: Max file size for the cover image */ 41 11 => sprintf( _x( 'That image is too big. Please upload one smaller than %s', 'cover image upload error', 'buddypress' ), size_format( $max_upload_file_size ) ), 42 43 /* translators: %s: comma separated list of file types allowed for the cover image */ 44 12 => sprintf( _nx( 'Please upload only this file type: %s.', 'Please upload only these file types: %s.', count( $allowed_types ), 'cover image upload error', 'buddypress' ), self::get_cover_image_types( $allowed_types ) ), 42 45 ), 43 46 ) ); -
trunk/src/bp-core/classes/class-bp-attachment.php
r12547 r12588 160 160 0 => __( 'The file was uploaded successfully', 'buddypress' ), 161 161 1 => __( 'The uploaded file exceeds the maximum allowed file size for this site', 'buddypress' ), 162 163 /* translators: %s: Max file size for the file */ 162 164 2 => sprintf( __( 'The uploaded file exceeds the maximum allowed file size of: %s', 'buddypress' ), size_format( $this->original_max_filesize ) ), 163 165 3 => __( 'The uploaded file was only partially uploaded.', 'buddypress' ), … … 501 503 502 504 if ( empty( $ext ) || empty( $supported_image_types[ $ext ] ) ) { 503 $wp_error->add( 'crop_error', sprintf( __( 'Cropping the file failed: %s is not a supported image file.', 'buddypress' ), $file['error'] ) ); 505 $wp_error->add( 506 'crop_error', 507 sprintf( 508 /* translators: %s: image file extension */ 509 __( 'Cropping the file failed: %s is not a supported image file.', 'buddypress' ), 510 $file['error'] 511 ) 512 ); 513 504 514 return $wp_error; 505 515 } -
trunk/src/bp-core/classes/class-bp-core-user.php
r11818 r12588 167 167 } 168 168 169 $this->avatar = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'full', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->fullname ) ) ); 170 $this->avatar_thumb = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->fullname ) ) ); 171 $this->avatar_mini = bp_core_fetch_avatar( array( 'item_id' => $this->id, 'type' => 'thumb', 'alt' => sprintf( __( 'Profile photo of %s', 'buddypress' ), $this->fullname ), 'width' => 30, 'height' => 30 ) ); 172 $this->last_active = bp_core_get_last_activity( bp_get_user_last_activity( $this->id ), __( 'active %s', 'buddypress' ) ); 169 $this->avatar = bp_core_fetch_avatar( 170 array( 171 'item_id' => $this->id, 172 'type' => 'full', 173 'alt' => sprintf( 174 /* translators: %s: member name */ 175 __( 'Profile photo of %s', 'buddypress' ), 176 $this->fullname 177 ) 178 ) 179 ); 180 181 $this->avatar_thumb = bp_core_fetch_avatar( 182 array( 183 'item_id' => $this->id, 184 'type' => 'thumb', 185 'alt' => sprintf( 186 /* translators: %s: member name */ 187 __( 'Profile photo of %s', 'buddypress' ), 188 $this->fullname 189 ) 190 ) 191 ); 192 193 $this->avatar_mini = bp_core_fetch_avatar( 194 array( 195 'item_id' => $this->id, 196 'type' => 'thumb', 197 'alt' => sprintf( 198 /* translators: %s: member name */ 199 __( 'Profile photo of %s', 'buddypress' ), 200 $this->fullname 201 ), 202 'width' => 30, 203 'height' => 30 204 ) 205 ); 206 207 /* translators: %s: human time diff of the last time the user was active on the site. */ 208 $this->last_active = bp_core_get_last_activity( bp_get_user_last_activity( $this->id ), _x( 'active %s', 'last time the user was active', 'buddypress' ) ); 173 209 } 174 210 … … 184 220 if ( bp_is_active( 'groups' ) ) { 185 221 $this->total_groups = BP_Groups_Member::total_group_count( $this->id ); 186 $this->total_groups = sprintf( _n( '%d group', '%d groups', $this->total_groups, 'buddypress' ), $this->total_groups ); 222 $this->total_groups = sprintf( 223 /* translators: %s: total groups count */ 224 _n( '%d group', '%d groups', $this->total_groups, 'buddypress' ), 225 $this->total_groups 226 ); 187 227 } 188 228 } -
trunk/src/bp-core/deprecated/1.5.php
r12547 r12588 356 356 $ud = bp_core_get_core_userdata( $receiver_user_id ); 357 357 $to = $ud->user_email; 358 $subject = bp_get_email_subject( array( 'text' => sprintf( __( '%1$s mentioned you in the group "%2$s"', 'buddypress' ), $poster_name, $group->name ) ) ); 359 360 $message = sprintf( __( 358 $subject = bp_get_email_subject( 359 array( 360 'text' => sprintf( 361 /* translators: 1: the poster name. 2: the group name. */ 362 _x( '%1$s mentioned you in the group "%2$s"', 'deprecated string', 'buddypress' ), 363 $poster_name, 364 $group->name 365 ) 366 ) 367 ); 368 369 /* translators: 1: the poster name. 2: the group name. 3: the content of the activity. 4: the activity permalink. */ 370 $message = sprintf( _x( 361 371 '%1$s mentioned you in the group "%2$s": 362 372 … … 366 376 367 377 --------------------- 368 ', ' buddypress' ), $poster_name, $group->name, $content, $message_link );378 ', 'deprecated string', 'buddypress' ), $poster_name, $group->name, $content, $message_link ); 369 379 370 380 /* Send the message */ -
trunk/src/bp-core/deprecated/2.1.php
r12547 r12588 457 457 'width' => 15, 458 458 'height' => 15, 459 'alt' => sprintf( __( 'Profile picture of %s', 'buddypress' ), $author->display_name ) 459 'alt' => sprintf( 460 /* translators: %s: member name */ 461 __( 'Profile picture of %s', 'buddypress' ), 462 $author->display_name 463 ), 460 464 ) ); 461 465 echo ' ' . $author->display_name . '</a>'; … … 496 500 <?php if ( bp_is_active( 'xprofile' ) ) : ?> 497 501 498 <li><a href="<?php bp_members_component_link( 'profile', 'edit' ); ?>"><?php printf( __( "Edit %s's Profile", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ) ?></a></li> 502 <li> 503 <a href="<?php bp_members_component_link( 'profile', 'edit' ); ?>"> 504 <?php 505 /* translators: %s: member name */ 506 printf( __( "Edit %s's Profile", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ); 507 ?> 508 </a> 509 </li> 499 510 500 511 <?php endif ?> 501 512 502 <li><a href="<?php bp_members_component_link( 'profile', 'change-avatar' ); ?>"><?php printf( __( "Edit %s's Profile Photo", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ) ?></a></li> 513 <li> 514 <a href="<?php bp_members_component_link( 'profile', 'change-avatar' ); ?>"> 515 <?php 516 /* translators: %s: member name */ 517 printf( _x( "Edit %s's Profile Photo", 'deprecated string', 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ); 518 ?> 519 </a> 520 </li> 503 521 504 522 <li><a href="<?php bp_members_component_link( 'settings', 'capabilities' ); ?>"><?php _e( 'User Capabilities', 'buddypress' ); ?></a></li> 505 523 506 <li><a href="<?php bp_members_component_link( 'settings', 'delete-account' ); ?>"><?php printf( __( "Delete %s's Account", 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ); ?></a></li> 524 <li> 525 <a href="<?php bp_members_component_link( 'settings', 'delete-account' ); ?>"> 526 <?php 527 /* translators: %s: member name */ 528 printf( _x( "Delete %s's Account", 'deprecated string', 'buddypress' ), esc_attr( bp_get_displayed_user_fullname() ) ); 529 ?> 530 </a> 531 </li> 507 532 508 533 <?php do_action( 'bp_members_adminbar_admin_menu' ) ?> -
trunk/src/bp-core/deprecated/2.8.php
r11941 r12588 196 196 <div id="message" class="error notice is-dismissible bp-is-dismissible" data-noticeid="<?php echo esc_attr( $notice_id ); ?>"> 197 197 <p><strong><?php esc_html_e( 'Your site is not ready for BuddyPress 2.8.', 'buddypress' ); ?></strong></p> 198 <p><?php printf( esc_html__( 'Your site is currently running PHP version %s, while BuddyPress 2.8 will require version 5.3+.', 'buddypress' ), esc_html( phpversion() ) ); ?> <?php printf( __( 'See <a href="%s">the Codex guide</a> for more information.', 'buddypress' ), 'https://codex.buddypress.org/getting-started/buddypress-2-8-will-require-php-5-3/' ); ?></p> 198 <p> 199 <?php 200 /* translators: %s: the site's PHP version number */ 201 printf( esc_html_x( 'Your site is currently running PHP version %s, while BuddyPress 2.8 will require version 5.3+.', 'deprecated string', 'buddypress' ), esc_html( phpversion() ) ); 202 ?> 203 204 <?php 205 /* translators: %s: the url to a codex page */ 206 printf( _x( 'See <a href="%s">the Codex guide</a> for more information.', 'deprecated string', 'buddypress' ), 'https://codex.buddypress.org/getting-started/buddypress-2-8-will-require-php-5-3/' ); 207 ?> 208 </p> 199 209 <?php wp_nonce_field( "bp-dismissible-notice-$notice_id", "bp-dismissible-nonce-$notice_id" ); ?> 200 210 </div> -
trunk/src/bp-core/deprecated/3.0.php
r12264 r12588 172 172 173 173 if ( bp_core_delete_account( bp_displayed_user_id() ) ) { 174 bp_core_add_message( sprintf( __( '%s has been deleted from the system.', 'buddypress' ), bp_get_displayed_user_fullname() ) ); 174 bp_core_add_message( 175 /* translators: %s: member name */ 176 sprintf( _x( '%s has been deleted from the system.', 'deprecated string', 'buddypress' ), bp_get_displayed_user_fullname() ) 177 ); 175 178 } else { 176 bp_core_add_message( sprintf( __( 'There was an error deleting %s from the system. Please try again.', 'buddypress' ), bp_get_displayed_user_fullname() ), 'error' ); 179 bp_core_add_message( 180 /* translators: %s: member name */ 181 sprintf( _x( 'There was an error deleting %s from the system. Please try again.', 'deprecated string', 'buddypress' ), bp_get_displayed_user_fullname() ), 182 'error' 183 ); 184 177 185 $errors = true; 178 186 }
Note: See TracChangeset
for help on using the changeset viewer.