<spanid="timestamp"><?phpprintf(__('Submitted on: %s','buddypress'),'<strong>'.$date.'</strong>');?></span> <ahref="#edit_timestamp"class="edit-timestamp hide-if-no-js"tabindex='4'><?php_e('Edit','buddypress');?></a>
<spanid="timestamp">
<?php
/* translators: %s: the date the activity was submitted on */
printf(__('Submitted on: %s','buddypress'),'<strong>'.$date.'</strong>');
@@ -899,7 +909,16 @@ function bp_activity_admin_edit_metabox_type( $item ) {
* of the list.
*/
if(!isset($actions[$selected])){
_doing_it_wrong(__FUNCTION__,sprintf(__('This activity item has a type (%s) that is not registered using bp_activity_set_action(), so no label is available.','buddypress'),$selected),'2.0.0');
_doing_it_wrong(
__FUNCTION__,
sprintf(
/* translators: %s: the name of the activity type */
__('This activity item has a type (%s) that is not registered using bp_activity_set_action(), so no label is available.','buddypress'),
$selected
),
'2.0.0'
);
$actions[$selected]=$selected;
}
...
...
@@ -973,11 +992,14 @@ function bp_activity_admin_index() {
// Reindex array.
$errors=array_values($errors);
if($deleted>0)
if($deleted>0){
/* translators: %s: the number of permanently deleted activities */
$messages[]=sprintf(_n('%s activity item has been permanently deleted.','%s activity items have been permanently deleted.',$deleted,'buddypress'),number_format_i18n($deleted));
}
if(!empty($errors)){
if(1==count($errors)){
/* translators: %s: the ID of the activity which errored during an update */
$messages[]=sprintf(__('An error occurred when trying to update activity ID #%s.','buddypress'),number_format_i18n($errors[0]));
}else{
...
...
@@ -986,7 +1008,7 @@ function bp_activity_admin_index() {
// Display each error as a list item.
foreach($errorsas$error){
// Translators: This is a bulleted list of item IDs.
@@ -995,14 +1017,19 @@ function bp_activity_admin_index() {
}
}
if($spammed>0)
if($spammed>0){
/* translators: %s: the number of activities successfully marked as spam */
$messages[]=sprintf(_n('%s activity item has been successfully spammed.','%s activity items have been successfully spammed.',$spammed,'buddypress'),number_format_i18n($spammed));
}
if($unspammed>0)
if($unspammed>0){
/* translators: %s: the number of activities successfully marked as ham */
$messages[]=sprintf(_n('%s activity item has been successfully unspammed.','%s activity items have been successfully unspammed.',$unspammed,'buddypress'),number_format_i18n($unspammed));
}
if($updated>0)
if($updated>0){
$messages[]=__('The activity item has been updated successfully.','buddypress');
}
}
// Prepare the activity items for display.
...
...
@@ -1020,13 +1047,21 @@ function bp_activity_admin_index() {
<divclass="wrap">
<h1>
<?phpif(!empty($_REQUEST['aid'])):?>
<?phpprintf(__('Activity related to ID #%s','buddypress'),number_format_i18n((int)$_REQUEST['aid']));?>
<?php
/* translators: %s: the activity ID */
printf(__('Activity related to ID #%s','buddypress'),number_format_i18n((int)$_REQUEST['aid']));
<spanclass="subtitle"><?phpprintf(__('Search results for “%s”','buddypress'),wp_html_excerpt(esc_html(stripslashes($_REQUEST['s'])),50));?></span>
<spanclass="subtitle">
<?php
/* translators: %s: the activity search terms */
printf(__('Search results for “%s”','buddypress'),wp_html_excerpt(esc_html(stripslashes($_REQUEST['s'])),50));
@@ -60,7 +60,7 @@ function bp_activity_akismet_delete_old_metadata() {
// Enforce a minimum of 1 day.
$interval=max(1,absint($interval));
// _bp_akismet_submission meta values are large, so expire them after $interval days regardless of the activity status
// _bp_akismet_submission meta values are large, so expire them after $interval days regardless of the activity status.
$sql=$wpdb->prepare("SELECT a.id FROM {$bp->activity->table_name} a LEFT JOIN {$bp->activity->table_name_meta} m ON a.id = m.activity_id WHERE m.meta_key = %s AND DATE_SUB(%s, INTERVAL {$interval} DAY) > a.date_recorded LIMIT 10000",'_bp_akismet_submission',current_time('mysql',1));
/* translators: 1: the activity author user link. 2: the post link. 3: the blog link. */
$action=sprintf(esc_html_x('%1$s wrote a new %2$s, on the site %3$s','Activity Custom Post Type post action','buddypress'),$user_link,$post_link,$blog_link);