Changeset 2941
- Timestamp:
- 04/19/2010 06:13:58 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity/bp-activity-notifications.php
r2925 r2941 32 32 33 33 $message = sprintf( __( 34 '% s mentioned you in an update:34 '%1$s mentioned you in an update: 35 35 36 "% s"36 "%2$s" 37 37 38 To view and respond to the message, log in and visit: % s38 To view and respond to the message, log in and visit: %3$s 39 39 40 40 --------------------- … … 75 75 76 76 $message = sprintf( __( 77 '% s replied to one of your updates:77 '%1$s replied to one of your updates: 78 78 79 "% s"79 "%2$s" 80 80 81 To view your original update and all comments, log in and visit: % s81 To view your original update and all comments, log in and visit: %3$s 82 82 83 83 --------------------- … … 117 117 118 118 $message = sprintf( __( 119 '% s replied to one of your comments:119 '%1$s replied to one of your comments: 120 120 121 "% s"121 "%2$s" 122 122 123 To view the original activity, your comment and all replies, log in and visit: % s123 To view the original activity, your comment and all replies, log in and visit: %3$s 124 124 125 125 --------------------- -
trunk/bp-activity/bp-activity-templatetags.php
r2919 r2941 275 275 $total = bp_core_number_format( $activities_template->total_activity_count ); 276 276 277 return sprintf( __( 'Viewing item % s to %s (of %sitems)', 'buddypress' ), $from_num, $to_num, $total ) . ' <span class="ajax-loader"></span>';277 return sprintf( __( 'Viewing item %1$d to %2$d (of %3$d items)', 'buddypress' ), $from_num, $to_num, $total ) . ' <span class="ajax-loader"></span>'; 278 278 } 279 279 -
trunk/bp-blogs.php
r2925 r2941 288 288 bp_blogs_record_activity( array( 289 289 'user_id' => $recorded_blog->user_id, 290 'action' => apply_filters( 'bp_blogs_activity_created_blog_action', sprintf( __( '% s created the blog %s', 'buddypress'), bp_core_get_userlink( $recorded_blog->user_id ), '<a href="' . get_blog_option( $recorded_blog->blog_id, 'siteurl' ) . '">' . attribute_escape( $name ) . '</a>' ), &$recorded_blog, $name, $description ),290 'action' => apply_filters( 'bp_blogs_activity_created_blog_action', sprintf( __( '%1$s created the blog %2$s', 'buddypress'), bp_core_get_userlink( $recorded_blog->user_id ), '<a href="' . get_blog_option( $recorded_blog->blog_id, 'siteurl' ) . '">' . attribute_escape( $name ) . '</a>' ), &$recorded_blog, $name, $description ), 291 291 'primary_link' => apply_filters( 'bp_blogs_activity_created_blog_primary_link', get_blog_option( $recorded_blog->blog_id, 'siteurl' ), $recorded_blog->blog_id ), 292 292 'type' => 'new_blog', … … 323 323 $post_permalink = get_permalink( $post_id ); 324 324 325 $activity_action = sprintf( __( '% s wrote a new blog post: %s', 'buddypress' ), bp_core_get_userlink( (int)$post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' );325 $activity_action = sprintf( __( '%1$s wrote a new blog post: %2$s', 'buddypress' ), bp_core_get_userlink( (int)$post->post_author ), '<a href="' . $post_permalink . '">' . $post->post_title . '</a>' ); 326 326 $activity_content = $post->post_content; 327 327 … … 370 370 /* Record in activity streams */ 371 371 $comment_link = get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id; 372 $activity_action = sprintf( __( '% s commented on the blog post %s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . $comment_link . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a>' );372 $activity_action = sprintf( __( '%1$s commented on the blog post %2$s', 'buddypress' ), bp_core_get_userlink( $user_id ), '<a href="' . $comment_link . '#comment-' . $comment->comment_ID . '">' . $comment->post->post_title . '</a>' ); 373 373 $activity_content = $comment->comment_content; 374 374 -
trunk/bp-core.php
r2925 r2941 1915 1915 if ( !defined( 'BP_SILENCE_THEME_NOTICE' ) && !in_array( 'buddypress', (array)$ct->tags ) ) { ?> 1916 1916 <div id="message" class="updated fade"> 1917 <p style="line-height: 150%"><?php printf( __( "<strong>BuddyPress is ready</strong>. You'll need to <a href='% s'>activate a BuddyPress compatible theme</a> to take advantage of all of the features. We've bundled a default theme, but you can always <a href='%s'>install some other compatible themes</a> or <a href='%s'>upgrade your existing WordPress theme</a>.", 'buddypress' ), admin_url( 'themes.php' ), admin_url( 'theme-install.php?type=tag&s=buddypress&tab=search' ), admin_url( 'plugin-install.php?type=term&tab=search&s=bp-template-pack' ) ) ?></p>1917 <p style="line-height: 150%"><?php printf( __( "<strong>BuddyPress is ready</strong>. You'll need to <a href='%1$s'>activate a BuddyPress compatible theme</a> to take advantage of all of the features. We've bundled a default theme, but you can always <a href='%1$s'>install some other compatible themes</a> or <a href='%3$s'>upgrade your existing WordPress theme</a>.", 'buddypress' ), admin_url( 'themes.php' ), admin_url( 'theme-install.php?type=tag&s=buddypress&tab=search' ), admin_url( 'plugin-install.php?type=term&tab=search&s=bp-template-pack' ) ) ?></p> 1918 1918 </div><?php 1919 1919 } -
trunk/bp-core/bp-core-filters.php
r2913 r2941 184 184 $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) ); 185 185 $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n"; 186 $message = sprintf(__("Thanks for registering! To complete the activation of your account and blog, please click the following link:\n\n% s\n\n\n\nAfter you activate, you can visit your blog here:\n\n%s", 'buddypress' ), $activate_url, clean_url("http://{$domain}{$path}" ) );186 $message = sprintf(__("Thanks for registering! To complete the activation of your account and blog, please click the following link:\n\n%1$s\n\n\n\nAfter you activate, you can visit your blog here:\n\n%2$s", 'buddypress' ), $activate_url, clean_url("http://{$domain}{$path}" ) ); 187 187 $subject = '[' . $from_name . '] ' . sprintf(__('Activate %s', 'buddypress' ), clean_url('http://' . $domain . $path)); 188 188 -
trunk/bp-core/bp-core-templatetags.php
r2925 r2941 181 181 182 182 if ( 'active' == $members_template->type ) 183 echo sprintf( __( 'Viewing member % s to %s (of %sactive members)', 'buddypress' ), $from_num, $to_num, $total );183 echo sprintf( __( 'Viewing member %1$d to %2$d (of %3$d active members)', 'buddypress' ), $from_num, $to_num, $total ); 184 184 else if ( 'popular' == $members_template->type ) 185 echo sprintf( __( 'Viewing member % s to %s (of %smembers with friends)', 'buddypress' ), $from_num, $to_num, $total );185 echo sprintf( __( 'Viewing member %1$d to %2$d (of %3$d members with friends)', 'buddypress' ), $from_num, $to_num, $total ); 186 186 else if ( 'online' == $members_template->type ) 187 echo sprintf( __( 'Viewing member % s to %s (of %smembers online)', 'buddypress' ), $from_num, $to_num, $total );187 echo sprintf( __( 'Viewing member %1$d to %2$d (of %3$d members online)', 'buddypress' ), $from_num, $to_num, $total ); 188 188 else 189 echo sprintf( __( 'Viewing member % s to %s (of %smembers)', 'buddypress' ), $from_num, $to_num, $total );189 echo sprintf( __( 'Viewing member %1$d to %2$d (of %3$d members)', 'buddypress' ), $from_num, $to_num, $total ); 190 190 191 191 ?><span class="ajax-loader"></span><?php -
trunk/bp-friends.php
r2925 r2941 385 385 'user_id' => $friendship->initiator_user_id, 386 386 'type' => 'friendship_created', 387 'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '% s and %s are now friends', 'buddypress' ), $initiator_link, $friend_link ), &$friendship ),387 'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link ), &$friendship ), 388 388 'item_id' => $friendship_id 389 389 ) ); … … 393 393 'user_id' => $friendship->friend_user_id, 394 394 'type' => 'friendship_created', 395 'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '% s and %s are now friends', 'buddypress' ), $friend_link, $initiator_link ), &$friendship ),395 'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $friend_link, $initiator_link ), &$friendship ), 396 396 'item_id' => $friendship_id, 397 397 'hide_sitewide' => true /* We've already got the first entry site wide */ -
trunk/bp-friends/bp-friends-notifications.php
r2719 r2941 22 22 23 23 $message = sprintf( __( 24 "% s wants to add you as a friend.24 "%1$s wants to add you as a friend. 25 25 26 To view all of your pending friendship requests: % s26 To view all of your pending friendship requests: %2$s 27 27 28 To view % s's profile: %s28 To view %3$s's profile: %4$s 29 29 30 30 --------------------- … … 61 61 62 62 $message = sprintf( __( 63 '% s accepted your friend request.63 '%1$s accepted your friend request. 64 64 65 To view % s\'s profile: %s65 To view %2$s\'s profile: %3$s 66 66 67 67 --------------------- -
trunk/bp-groups.php
r2925 r2941 226 226 227 227 groups_record_activity( array( 228 'action' => apply_filters( 'groups_activity_accepted_invite_action', sprintf( __( '% s joined the group %s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $group ) . '">' . attribute_escape( $group->name ) . '</a>' ), $bp->loggedin_user->id, &$group ),228 'action' => apply_filters( 'groups_activity_accepted_invite_action', sprintf( __( '%1$s joined the group %2$s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $group ) . '">' . attribute_escape( $group->name ) . '</a>' ), $bp->loggedin_user->id, &$group ), 229 229 'type' => 'joined_group', 230 230 'item_id' => $group->id … … 1048 1048 /* Once we compelete all steps, record the group creation in the activity stream. */ 1049 1049 groups_record_activity( array( 1050 'action' => apply_filters( 'groups_activity_created_group_action', sprintf( __( '% s created the group %s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ) ),1050 'action' => apply_filters( 'groups_activity_created_group_action', sprintf( __( '%1$s created the group %2$s', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ) ), 1051 1051 'type' => 'created_group', 1052 1052 'item_id' => $bp->groups->new_group_id … … 1257 1257 1258 1258 if ( (int)$total_items > 1 ) { 1259 return apply_filters( 'bp_groups_multiple_new_membership_requests_notification', '<a href="' . $group_link . '/admin/membership-requests/?n=1" title="' . __( 'Group Membership Requests', 'buddypress' ) . '">' . sprintf( __('% d new membership requests for the group "%s"', 'buddypress' ), (int)$total_items, $group->name ) . '</a>', $group_link, $total_items, $group->name );1259 return apply_filters( 'bp_groups_multiple_new_membership_requests_notification', '<a href="' . $group_link . '/admin/membership-requests/?n=1" title="' . __( 'Group Membership Requests', 'buddypress' ) . '">' . sprintf( __('%1$d new membership requests for the group "%2$s"', 'buddypress' ), (int)$total_items, $group->name ) . '</a>', $group_link, $total_items, $group->name ); 1260 1260 } else { 1261 1261 $user_fullname = bp_core_get_user_displayname( $requesting_user_id ); 1262 return apply_filters( 'bp_groups_single_new_membership_request_notification', '<a href="' . $group_link . 'admin/membership-requests/?n=1" title="' . $user_fullname .' requests group membership">' . sprintf( __('% s requests membership for the group "%s"', 'buddypress' ), $user_fullname, $group->name ) . '</a>', $group_link, $user_fullname, $group->name );1262 return apply_filters( 'bp_groups_single_new_membership_request_notification', '<a href="' . $group_link . 'admin/membership-requests/?n=1" title="' . $user_fullname .' requests group membership">' . sprintf( __('%1$s requests membership for the group "%2$s"', 'buddypress' ), $user_fullname, $group->name ) . '</a>', $group_link, $user_fullname, $group->name ); 1263 1263 } 1264 1264 break; … … 1621 1621 /* Record this in activity streams */ 1622 1622 groups_record_activity( array( 1623 'action' => apply_filters( 'groups_activity_joined_group', sprintf( __( '% s joined the group %s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ) ),1623 'action' => apply_filters( 'groups_activity_joined_group', sprintf( __( '%1$s joined the group %2$s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ) ), 1624 1624 'type' => 'joined_group', 1625 1625 'item_id' => $group_id … … 1776 1776 1777 1777 /* Record this in activity streams */ 1778 $activity_action = sprintf( __( '% s posted an update in the group %s:', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );1778 $activity_action = sprintf( __( '%1$s posted an update in the group %2$s:', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ); 1779 1779 $activity_content = $content; 1780 1780 … … 1829 1829 $topic = bp_forums_get_topic_details( $topic_id ); 1830 1830 1831 $activity_action = sprintf( __( '% s posted on the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );1831 $activity_action = sprintf( __( '%1$s posted on the forum topic %2$s in the group %3$s:', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ); 1832 1832 $activity_content = bp_create_excerpt( $post_text ); 1833 1833 $primary_link = bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/'; … … 1868 1868 $topic = bp_forums_get_topic_details( $topic_id ); 1869 1869 1870 $activity_action = sprintf( __( '% s started the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );1870 $activity_action = sprintf( __( '%1$s started the forum topic %2$s in the group %3$s:', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ); 1871 1871 $activity_content = bp_create_excerpt( $topic_text ); 1872 1872 … … 1900 1900 bp_activity_delete_by_item_id( array( 'item_id' => $bp->groups->current_group->id, 'secondary_item_id' => $topic_id, 'component' => $bp->groups->id, 'type' => 'new_forum_topic' ) ); 1901 1901 1902 $activity_action = sprintf( __( '% s started the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $topic->topic_poster ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );1902 $activity_action = sprintf( __( '%1$s started the forum topic %2$s in the group %3$s:', 'buddypress'), bp_core_get_userlink( $topic->topic_poster ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ); 1903 1903 $activity_content = bp_create_excerpt( $topic_text ); 1904 1904 … … 1934 1934 $topic = bp_forums_get_topic_details( $topic_id ); 1935 1935 1936 $activity_action = sprintf( __( '% s posted on the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $post->poster_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );1936 $activity_action = sprintf( __( '%1$s posted on the forum topic %2$s in the group %3$s:', 'buddypress'), bp_core_get_userlink( $post->poster_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ); 1937 1937 $activity_content = bp_create_excerpt( $post_text ); 1938 1938 $primary_link = bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/'; … … 2255 2255 2256 2256 groups_record_activity( array( 2257 'action' => apply_filters( 'groups_activity_membership_accepted_action', sprintf( __( '% s joined the group %s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $group ) . '">' . attribute_escape( $group->name ) . '</a>' ), $user_id, &$group ),2257 'action' => apply_filters( 'groups_activity_membership_accepted_action', sprintf( __( '%1$s joined the group %2$s', 'buddypress'), bp_core_get_userlink( $user_id ), '<a href="' . bp_get_group_permalink( $group ) . '">' . attribute_escape( $group->name ) . '</a>' ), $user_id, &$group ), 2258 2258 'type' => 'joined_group', 2259 2259 'item_id' => $group->id, -
trunk/bp-groups/bp-groups-notifications.php
r2719 r2941 20 20 21 21 $message = sprintf( __( 22 'Group details for the group "% s" were updated:23 24 To view the group: % s22 'Group details for the group "%1$s" were updated: 23 24 To view the group: %2$s 25 25 26 26 --------------------- … … 63 63 64 64 $message = sprintf( __( 65 '% s wants to join the group "%s".65 '%1$s wants to join the group "%2$s". 66 66 67 67 Because you are the administrator of this group, you must either accept or reject the membership request. 68 68 69 69 To view all pending membership requests for this group, please visit: 70 % s71 72 To view % s\'s profile: %s70 %3$s 71 72 To view %4$s\'s profile: %5$s 73 73 74 74 --------------------- … … 110 110 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), $group->name ); 111 111 $message = sprintf( __( 112 'Your membership request for the group "% s" has been accepted.113 114 To view the group please login and visit: % s112 'Your membership request for the group "%1$s" has been accepted. 113 114 To view the group please login and visit: %2$s 115 115 116 116 --------------------- … … 120 120 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), $group->name ); 121 121 $message = sprintf( __( 122 'Your membership request for the group "% s" has been rejected.123 124 To submit another request please log in and visit: % s122 'Your membership request for the group "%1$s" has been rejected. 123 124 To submit another request please log in and visit: %2$s 125 125 126 126 --------------------- … … 167 167 168 168 $message = sprintf( __( 169 'You have been promoted to % s for the group: "%s".170 171 To view the group please visit: % s169 'You have been promoted to %1$s for the group: "%2$s". 170 171 To view the group please visit: %3$s 172 172 173 173 --------------------- … … 215 215 216 216 $message = sprintf( __( 217 'One of your friends % s has invited you to the group: "%s".218 219 To view your group invites visit: % s220 221 To view the group visit: % s222 223 To view % s\'s profile visit: %s217 'One of your friends %1$s has invited you to the group: "%2$s". 218 219 To view your group invites visit: %3$s 220 221 To view the group visit: %4$s 222 223 To view %5$s\'s profile visit: %6$s 224 224 225 225 --------------------- … … 271 271 $ud = bp_core_get_core_userdata( $receiver_user_id ); 272 272 $to = $ud->user_email; 273 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '% s mentioned you in the group "%s"', 'buddypress' ), $poster_name, $group->name );273 $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%1$s mentioned you in the group "%2$s"', 'buddypress' ), $poster_name, $group->name ); 274 274 275 275 $message = sprintf( __( 276 '% s mentioned you in the group "%s":277 278 "% s"279 280 To view and respond to the message, log in and visit: % s276 '%1$s mentioned you in the group "%2$s": 277 278 "%3$s" 279 280 To view and respond to the message, log in and visit: %4$s 281 281 282 282 --------------------- -
trunk/bp-groups/bp-groups-templatetags.php
r2919 r2941 557 557 $total = bp_core_number_format( $groups_template->total_group_count ); 558 558 559 echo sprintf( __( 'Viewing group % s to %s (of %sgroups)', 'buddypress' ), $from_num, $to_num, $total ); ?> 559 echo sprintf( __( 'Viewing group %1$d to %2$d (of %3$d groups)', 'buddypress' ), $from_num, $to_num, $total ); ?> 560 560 <span class="ajax-loader"></span><?php 561 561 } … … 1414 1414 $total = bp_core_number_format( $members_template->total_member_count ); 1415 1415 1416 return apply_filters( 'bp_get_group_member_pagination_count', sprintf( __( 'Viewing members % s to %s (of %smembers)', 'buddypress' ), $from_num, $to_num, $total ) );1416 return apply_filters( 'bp_get_group_member_pagination_count', sprintf( __( 'Viewing members %1$d to %2$d (of %3$d members)', 'buddypress' ), $from_num, $to_num, $total ) ); 1417 1417 } 1418 1418 -
trunk/bp-messages.php
r2863 r2941 299 299 if ( 'new_message' == $action ) { 300 300 if ( (int)$total_items > 1 ) 301 return apply_filters( 'bp_messages_multiple_new_message_notification', '<a href="' . $bp->loggedin_user->domain . $bp->messages->slug . '/inbox" title=" Inbox">' . sprintf( __('You have %d new messages', 'buddypress' ), (int)$total_items ) . '</a>', $total_items );301 return apply_filters( 'bp_messages_multiple_new_message_notification', '<a href="' . $bp->loggedin_user->domain . $bp->messages->slug . '/inbox" title="' . __( 'Inbox', 'buddypress' ) . '">' . sprintf( __('You have %d new messages', 'buddypress' ), (int)$total_items ) . '</a>', $total_items ); 302 302 else 303 return apply_filters( 'bp_messages_single_new_message_notification', '<a href="' . $bp->loggedin_user->domain . $bp->messages->slug . '/inbox" title=" Inbox">' . sprintf( __('You have %d new message', 'buddypress' ), (int)$total_items ) . '</a>', $total_items );303 return apply_filters( 'bp_messages_single_new_message_notification', '<a href="' . $bp->loggedin_user->domain . $bp->messages->slug . '/inbox" title="' . __( 'Inbox', 'buddypress' ) . '">' . sprintf( __('You have %d new message', 'buddypress' ), (int)$total_items ) . '</a>', $total_items ); 304 304 } 305 305 -
trunk/bp-messages/bp-messages-notifications.php
r2925 r2941 23 23 24 24 $email_content = sprintf( __( 25 '% s sent you a new message:25 '%1$s sent you a new message: 26 26 27 Subject: % s27 Subject: %2$s 28 28 29 "% s"29 "%3$s" 30 30 31 To view and read your messages please log in and visit: % s31 To view and read your messages please log in and visit: %4$s 32 32 33 33 --------------------- -
trunk/bp-messages/bp-messages-templatetags.php
r2822 r2941 313 313 $total = bp_core_number_format( $messages_template->total_thread_count ); 314 314 315 echo sprintf( __( 'Viewing message % s to %s (of %smessages)', 'buddypress' ), $from_num, $to_num, $total ); ?> 315 echo sprintf( __( 'Viewing message %1$d to %2$d (of %3$d messages)', 'buddypress' ), $from_num, $to_num, $total ); ?> 316 316 <span class="ajax-loader"></span><?php 317 317 }
Note: See TracChangeset
for help on using the changeset viewer.