Skip to:
Content

BuddyPress.org

Ticket #2291: patch_2291-2.patch

File patch_2291-2.patch, 45.6 KB (added by DJPaul, 16 years ago)

v2

  • bp-friends.php

     
    423423                friends_record_activity( array(
    424424                        'user_id' => $friendship->initiator_user_id,
    425425                        'type' => 'friendship_created',
    426                         'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%s and %s are now friends', 'buddypress' ), $initiator_link, $friend_link ), &$friendship ),
     426                        'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $initiator_link, $friend_link ), &$friendship ),
    427427                        'item_id' => $friendship_id
    428428                ) );
    429429
     
    431431                friends_record_activity( array(
    432432                        'user_id' => $friendship->friend_user_id,
    433433                        'type' => 'friendship_created',
    434                         'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%s and %s are now friends', 'buddypress' ), $friend_link, $initiator_link ), &$friendship ),
     434                        'action' => apply_filters( 'friends_activity_friendship_accepted_action', sprintf( __( '%1$s and %2$s are now friends', 'buddypress' ), $friend_link, $initiator_link ), &$friendship ),
    435435                        'item_id' => $friendship_id,
    436436                        'hide_sitewide' => true /* We've already got the first entry site wide */
    437437                ) );
  • bp-themes/bp-default/groups/single/forum/topic.php

     
    3131                                                <a href="<?php bp_the_topic_post_poster_link() ?>">
    3232                                                        <?php bp_the_topic_post_poster_avatar( 'width=40&height=40' ) ?>
    3333                                                </a>
    34                                                 <?php echo sprintf( __( '%s said %s ago:', 'buddypress' ), bp_get_the_topic_post_poster_name(), bp_get_the_topic_post_time_since() ) ?>
     34                                                <?php echo sprintf( __( '%1$s said %2$s ago:', 'buddypress' ), bp_get_the_topic_post_poster_name(), bp_get_the_topic_post_time_since() ) ?>
    3535                                        </div>
    3636
    3737                                        <div class="post-content">
  • bp-themes/bp-default/members/single/groups/invites.php

     
    88
    99                        <li>
    1010                                <?php bp_group_avatar_thumb() ?>
    11                                 <h4><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a><span class="small"> - <?php printf( __( '%s members', 'buddypress' ), bp_group_total_members( false ) ) ?></span></h4>
     11                                <h4><a href="<?php bp_group_permalink() ?>"><?php bp_group_name() ?></a><span class="small"> - <?php printf( __( '%d members', 'buddypress' ), bp_group_total_members( false ) ) ?></span></h4>
    1212
    1313                                <p class="desc">
    1414                                        <?php bp_group_description_excerpt() ?>
  • bp-themes/bp-default/members/single/messages/single.php

     
    88
    99                <p id="message-recipients">
    1010                        <span class="highlight">
    11                                 <?php printf( __('Sent between %s and %s', 'buddypress'), bp_get_the_thread_recipients(), '<a href="' . bp_get_loggedin_user_link() . '" title="' . bp_get_loggedin_user_fullname() . '">' . bp_get_loggedin_user_fullname() . '</a>' ) ?>
     11                                <?php printf( __('Sent between %1$s and %2$s', 'buddypress'), bp_get_the_thread_recipients(), '<a href="' . bp_get_loggedin_user_link() . '" title="' . bp_get_loggedin_user_fullname() . '">' . bp_get_loggedin_user_fullname() . '</a>' ) ?>
    1212                        </span>
    1313                </p>
    1414
  • bp-themes/bp-default/members/index.php

     
    1515
    1616                        <div class="item-list-tabs">
    1717                                <ul>
    18                                         <li class="selected" id="members-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_member_count() ) ?></a></li>
     18                                        <li class="selected" id="members-all"><a href="<?php bp_root_domain() ?>"><?php printf( __( 'All Members (%d)', 'buddypress' ), bp_get_total_member_count() ) ?></a></li>
    1919
    2020                                        <?php if ( is_user_logged_in() && function_exists( 'bp_get_total_friend_count' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    21                                                 <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>
     21                                                <li id="members-personal"><a href="<?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/' ?>"><?php printf( __( 'My Friends (%d)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?></a></li>
    2222                                        <?php endif; ?>
    2323
    2424                                        <?php do_action( 'bp_members_directory_member_types' ) ?>
  • bp-themes/bp-default/activity/post-form.php

     
    1616
    1717        <h5>
    1818                <?php if ( bp_is_group() ) : ?>
    19                         <?php printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname() ) ?>
     19                        <?php printf( __( "What's new in %1$s, %2$s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname() ) ?>
    2020                <?php else : ?>
    2121                        <?php printf( __( "What's new %s?", 'buddypress' ), bp_get_user_firstname() ) ?>
    2222                <?php endif; ?>
  • bp-themes/bp-default/functions.php

     
    208208/* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */
    209209function bp_dtheme_show_notice() { ?>
    210210        <div id="message" class="updated fade">
    211                 <p><?php printf( __( 'Theme activated! This theme contains <a href="%s">custom header image</a> support and <a href="%s">sidebar widgets</a>.', 'buddypress' ), admin_url( 'themes.php?page=custom-header' ), admin_url( 'widgets.php' ) ) ?></p>
     211                <p><?php printf( __( 'Theme activated! This theme contains <a href="%1$s">custom header image</a> support and <a href="%2$s">sidebar widgets</a>.', 'buddypress' ), admin_url( 'themes.php?page=custom-header' ), admin_url( 'widgets.php' ) ) ?></p>
    212212        </div>
    213213
    214214        <style type="text/css">#message2, #message0 { display: none; }</style>
     
    227227        var bp_terms_show_all = '<?php _e( "Show all", "buddypress" ) ?>';
    228228        var bp_terms_comments = '<?php _e( "comments", "buddypress" ) ?>';
    229229        var bp_terms_close = '<?php _e( "Close", "buddypress" ) ?>';
    230         var bp_terms_mention_explain = '<?php printf( __( "%s is a unique identifier for %s that you can type into any message on this site. %s will be sent a notification and a link to your message any time you use it.", "buddypress" ), '@' . bp_get_displayed_user_username(), bp_get_user_firstname(bp_get_displayed_user_fullname()), bp_get_user_firstname(bp_get_displayed_user_fullname()) ); ?>';
     230        var bp_terms_mention_explain = '<?php printf( __( "%1$s is a unique identifier for %2$s that you can type into any message on this site. %3$s will be sent a notification and a link to your message any time you use it.", "buddypress" ), '@' . bp_get_displayed_user_username(), bp_get_user_firstname(bp_get_displayed_user_fullname()), bp_get_user_firstname(bp_get_displayed_user_fullname()) ); ?>';
    231231        </script>
    232232<?php
    233233}
  • bp-core/bp-core-filters.php

     
    161161
    162162        $from_name = ( '' == get_site_option( "site_name" ) ) ? 'WordPress' : wp_specialchars( get_site_option( "site_name" ) );
    163163        $message_headers = "MIME-Version: 1.0\n" . "From: \"{$from_name}\" <{$admin_email}>\n" . "Content-Type: text/plain; charset=\"" . get_option('blog_charset') . "\"\n";
    164         $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}" ) );
     164        $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}" ) );
    165165        $subject = '[' . $from_name . '] ' . sprintf(__('Activate %s', 'buddypress' ), clean_url('http://' . $domain . $path));
    166166
    167167        /* Send the message */
  • bp-core/bp-core-templatetags.php

     
    181181        $total = bp_core_number_format( $members_template->total_member_count );
    182182
    183183        if ( 'active' == $members_template->type )
    184                 echo sprintf( __( 'Viewing member %s to %s (of %s active members)', 'buddypress' ), $from_num, $to_num, $total );
     184                echo sprintf( __( 'Viewing member %1$d to %2$d (of %3$d active members)', 'buddypress' ), $from_num, $to_num, $total );
    185185        else if ( 'popular' == $members_template->type )
    186                 echo sprintf( __( 'Viewing member %s to %s (of %s members with friends)', 'buddypress' ), $from_num, $to_num, $total );
     186                echo sprintf( __( 'Viewing member %1$d to %2$d (of %3$d members with friends)', 'buddypress' ), $from_num, $to_num, $total );
    187187        else if ( 'online' == $members_template->type )
    188                 echo sprintf( __( 'Viewing member %s to %s (of %s members online)', 'buddypress' ), $from_num, $to_num, $total );
     188                echo sprintf( __( 'Viewing member %1$d to %2$d (of %3$d members online)', 'buddypress' ), $from_num, $to_num, $total );
    189189        else
    190                 echo sprintf( __( 'Viewing member %s to %s (of %s members)', 'buddypress' ), $from_num, $to_num, $total );
     190                echo sprintf( __( 'Viewing member %1$d to %2$d (of %3$d members)', 'buddypress' ), $from_num, $to_num, $total );
    191191
    192192        ?><span class="ajax-loader"></span><?php
    193193}
  • bp-friends/bp-friends-notifications.php

     
    2121        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'New friendship request from %s', 'buddypress' ), $initiator_name );
    2222
    2323        $message = sprintf( __(
    24 "%s wants to add you as a friend.
     24"%1$s wants to add you as a friend.
    2525
    26 To view all of your pending friendship requests: %s
     26To view all of your pending friendship requests: %2$s
    2727
    28 To view %s's profile: %s
     28To view %3$s's profile: %4$s
    2929
    3030---------------------
    3131", 'buddypress' ), $initiator_name, $all_requests_link, $initiator_name, $initiator_link );
     
    6060        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%s accepted your friendship request', 'buddypress' ), $friend_name );
    6161
    6262        $message = sprintf( __(
    63 '%s accepted your friend request.
     63'%1$s accepted your friend request.
    6464
    65 To view %s\'s profile: %s
     65To view %2$s\'s profile: %3$s
    6666
    6767---------------------
    6868', 'buddypress' ), $friend_name, $friend_name, $friend_link );
  • bp-activity/bp-activity-notifications.php

     
    3131                        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%s mentioned you in an update', 'buddypress' ), $poster_name );
    3232
    3333$message = sprintf( __(
    34 '%s mentioned you in an update:
     34'%1$s mentioned you in an update:
    3535
    36 "%s"
     36"%2$s"
    3737
    38 To view and respond to the message, log in and visit: %s
     38To view and respond to the message, log in and visit: %3$s
    3939
    4040---------------------
    4141', 'buddypress' ), $poster_name, $content, $message_link );
     
    7474                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( '%s replied to one of your updates', 'buddypress' ), $poster_name );
    7575
    7676$message = sprintf( __(
    77 '%s replied to one of your updates:
     77'%1$s replied to one of your updates:
    7878
    79 "%s"
     79"%2$s"
    8080
    81 To view your original update and all comments, log in and visit: %s
     81To view your original update and all comments, log in and visit: %3$s
    8282
    8383---------------------
    8484', 'buddypress' ), $poster_name, $content, $thread_link );
     
    116116                $content = bp_activity_filter_kses( stripslashes( $content ) );
    117117
    118118$message = sprintf( __(
    119 '%s replied to one of your comments:
     119'%1$s replied to one of your comments:
    120120
    121 "%s"
     121"%2$s"
    122122
    123 To view the original activity, your comment and all replies, log in and visit: %s
     123To view the original activity, your comment and all replies, log in and visit: %3$s
    124124
    125125---------------------
    126126', 'buddypress' ), $poster_name, $content, $thread_link );
  • bp-activity/bp-activity-templatetags.php

     
    269269                $to_num = bp_core_number_format( ( $from_num + ( $activities_template->pag_num - 1 ) > $activities_template->total_activity_count ) ? $activities_template->total_activity_count : $from_num + ( $activities_template->pag_num - 1 ) );
    270270                $total = bp_core_number_format( $activities_template->total_activity_count );
    271271
    272                 return sprintf( __( 'Viewing item %s to %s (of %s items)', 'buddypress' ), $from_num, $to_num, $total ) . ' &nbsp; <span class="ajax-loader"></span>';
     272                return sprintf( __( 'Viewing item %1$d to %2$d (of %3$d items)', 'buddypress' ), $from_num, $to_num, $total ) . ' &nbsp; <span class="ajax-loader"></span>';
    273273        }
    274274
    275275function bp_activity_pagination_links() {
  • bp-blogs.php

     
    345345                /* Record this in activity streams */
    346346                bp_blogs_record_activity( array(
    347347                        'user_id' => $recorded_blog->user_id,
    348                         '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 ),
     348                        '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 ),
    349349                        'primary_link' => apply_filters( 'bp_blogs_activity_created_blog_primary_link', get_blog_option( $recorded_blog->blog_id, 'siteurl' ), $recorded_blog->blog_id ),
    350350                        'type' => 'new_blog',
    351351                        'item_id' => $recorded_blog->blog_id
     
    380380                        /* Record this in activity streams */
    381381                        $post_permalink = get_permalink( $post_id );
    382382
    383                         $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>' );
     383                        $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>' );
    384384                        $activity_content = $post->post_content;
    385385
    386386                        bp_blogs_record_activity( array(
     
    427427        if ( (int)get_blog_option( $recorded_comment->blog_id, 'blog_public' ) || !bp_core_is_multisite() ) {
    428428                /* Record in activity streams */
    429429                $comment_link = get_permalink( $comment->comment_post_ID ) . '#comment-' . $comment_id;
    430                 $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>' );
     430                $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>' );
    431431                $activity_content = $comment->comment_content;
    432432
    433433                /* Record this in activity streams */
  • bp-messages.php

     
    368368
    369369        if ( 'new_message' == $action ) {
    370370                if ( (int)$total_items > 1 )
    371                         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 );
     371                        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 );
    372372                else
    373                         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 );
     373                        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 );
    374374        }
    375375
    376376        do_action( 'messages_format_notifications', $action, $item_id, $secondary_item_id, $total_items );
  • bp-groups.php

     
    298298                        $group = new BP_Groups_Group( $group_id );
    299299
    300300                        groups_record_activity( array(
    301                                 '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 ),
     301                                '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 ),
    302302                                'type' => 'joined_group',
    303303                                'item_id' => $group->id
    304304                        ) );
     
    11201120
    11211121                        /* Once we compelete all steps, record the group creation in the activity stream. */
    11221122                        groups_record_activity( array(
    1123                                 '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>' ) ),
     1123                                '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>' ) ),
    11241124                                'type' => 'created_group',
    11251125                                'item_id' => $bp->groups->new_group_id
    11261126                        ) );
     
    13291329                        $group_link = bp_get_group_permalink( $group );
    13301330
    13311331                        if ( (int)$total_items > 1 ) {
    1332                                 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 );
     1332                                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 );
    13331333                        } else {
    13341334                                $user_fullname = bp_core_get_user_displayname( $requesting_user_id );
    1335                                 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 );
     1335                                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 "%1$s"', 'buddypress' ), $user_fullname, $group->name ) . '</a>', $group_link, $user_fullname, $group->name );
    13361336                        }
    13371337                break;
    13381338
     
    13451345                        if ( (int)$total_items > 1 ) {
    13461346                                return apply_filters( 'bp_groups_multiple_membership_request_accepted_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/?n=1" title="' . __( 'Groups', 'buddypress' ) . '">' . sprintf( __('%d accepted group membership requests', 'buddypress' ), (int)$total_items, $group->name ) . '</a>', $total_items, $group_name );
    13471347                        } else {
    1348                                 return apply_filters( 'bp_groups_single_membership_request_accepted_notification', '<a href="' . $group_link . '?n=1">' . sprintf( __('Membership for group "%s" accepted'), $group->name ) . '</a>', $group_link, $group->name );
     1348                                return apply_filters( 'bp_groups_single_membership_request_accepted_notification', '<a href="' . $group_link . '?n=1">' . sprintf( __( 'Membership for group "%s" accepted', 'buddypress' ), $group->name ) . '</a>', $group_link, $group->name );
    13491349                        }
    13501350                break;
    13511351
     
    13581358                        if ( (int)$total_items > 1 ) {
    13591359                                return apply_filters( 'bp_groups_multiple_membership_request_rejected_notification', '<a href="' . site_url() . '/' . BP_MEMBERS_SLUG . '/' . $bp->groups->slug . '/?n=1" title="' . __( 'Groups', 'buddypress' ) . '">' . sprintf( __('%d rejected group membership requests', 'buddypress' ), (int)$total_items, $group->name ) . '</a>', $total_items, $group->name );
    13601360                        } else {
    1361                                 return apply_filters( 'bp_groups_single_membership_request_rejected_notification', '<a href="' . $group_link . '?n=1">' . sprintf( __('Membership for group "%s" rejected'), $group->name ) . '</a>', $group_link, $group->name );
     1361                                return apply_filters( 'bp_groups_single_membership_request_rejected_notification', '<a href="' . $group_link . '?n=1">' . sprintf( __( 'Membership for group "%s" rejected', 'buddypress' ), $group->name ) . '</a>', $group_link, $group->name );
    13621362                        }
    13631363
    13641364                break;
     
    13701370                        $group_link = bp_get_group_permalink( $group );
    13711371
    13721372                        if ( (int)$total_items > 1 ) {
    1373                                 return apply_filters( 'bp_groups_multiple_member_promoted_to_admin_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/?n=1" title="' . __( 'Groups', 'buddypress' ) . '">' . sprintf( __('You were promoted to an admin in %d groups', 'buddypress' ), (int)$total_items ) . '</a>', $total_items );
     1373                                return apply_filters( 'bp_groups_multiple_member_promoted_to_admin_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/?n=1" title="' . __( 'Groups', 'buddypress' ) . '">' . sprintf( __( 'You were promoted to an admin in %d groups', 'buddypress' ), (int)$total_items ) . '</a>', $total_items );
    13741374                        } else {
    1375                                 return apply_filters( 'bp_groups_single_member_promoted_to_admin_notification', '<a href="' . $group_link . '?n=1">' . sprintf( __('You were promoted to an admin in the group %s'), $group->name ) . '</a>', $group_link, $group->name );
     1375                                return apply_filters( 'bp_groups_single_member_promoted_to_admin_notification', '<a href="' . $group_link . '?n=1">' . sprintf( __( 'You were promoted to an admin in the group %s', 'buddypress' ), $group->name ) . '</a>', $group_link, $group->name );
    13761376                        }
    13771377                break;
    13781378
     
    13831383                        $group_link = bp_get_group_permalink( $group );
    13841384
    13851385                        if ( (int)$total_items > 1 ) {
    1386                                 return apply_filters( 'bp_groups_multiple_member_promoted_to_mod_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/?n=1" title="' . __( 'Groups', 'buddypress' ) . '">' . sprintf( __('You were promoted to a mod in %d groups', 'buddypress' ), (int)$total_items ) . '</a>', $total_items );
     1386                                return apply_filters( 'bp_groups_multiple_member_promoted_to_mod_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/?n=1" title="' . __( 'Groups', 'buddypress' ) . '">' . sprintf( __( 'You were promoted to a mod in %d groups', 'buddypress' ), (int)$total_items ) . '</a>', $total_items );
    13871387                        } else {
    1388                                 return apply_filters( 'bp_groups_single_member_promoted_to_mod_notification', '<a href="' . $group_link . '?n=1">' . sprintf( __('You were promoted to a mod in the group %s'), $group->name ) . '</a>', $group_link, $group->name );
     1388                                return apply_filters( 'bp_groups_single_member_promoted_to_mod_notification', '<a href="' . $group_link . '?n=1">' . sprintf( __( 'You were promoted to a mod in the group %s', 'buddypress' ), $group->name ) . '</a>', $group_link, $group->name );
    13891389                        }
    13901390                break;
    13911391
     
    13961396                        $user_url = bp_core_get_user_domain( $user_id );
    13971397
    13981398                        if ( (int)$total_items > 1 ) {
    1399                                 return apply_filters( 'bp_groups_multiple_group_invite_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/invites/?n=1" title="' . __( 'Group Invites', 'buddypress' ) . '">' . sprintf( __('You have %d new group invitations', 'buddypress' ), (int)$total_items ) . '</a>', $total_items );
     1399                                return apply_filters( 'bp_groups_multiple_group_invite_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/invites/?n=1" title="' . __( 'Group Invites', 'buddypress' ) . '">' . sprintf( __( 'You have %d new group invitations', 'buddypress' ), (int)$total_items ) . '</a>', $total_items );
    14001400                        } else {
    1401                                 return apply_filters( 'bp_groups_single_group_invite_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/invites/?n=1" title="' . __( 'Group Invites', 'buddypress' ) . '">' . sprintf( __('You have an invitation to the group: %s', 'buddypress' ), $group->name ) . '</a>', $group->name );
     1401                                return apply_filters( 'bp_groups_single_group_invite_notification', '<a href="' . $bp->loggedin_user->domain . $bp->groups->slug . '/invites/?n=1" title="' . __( 'Group Invites', 'buddypress' ) . '">' . sprintf( __( 'You have an invitation to the group: %s', 'buddypress' ), $group->name ) . '</a>', $group->name );
    14021402                        }
    14031403                break;
    14041404        }
     
    16931693
    16941694        /* Record this in activity streams */
    16951695        groups_record_activity( array(
    1696                 '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>' ) ),
     1696                '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>' ) ),
    16971697                'type' => 'joined_group',
    16981698                'item_id' => $group_id
    16991699        ) );
     
    18691869                return false;
    18701870
    18711871        /* Record this in activity streams */
    1872         $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>' );
     1872        $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>' );
    18731873        $activity_content = $content;
    18741874
    18751875        $activity_id = groups_record_activity( array(
     
    19221922        if ( $post_id = bp_forums_insert_post( array( 'post_text' => $post_text, 'topic_id' => $topic_id ) ) ) {
    19231923                $topic = bp_forums_get_topic_details( $topic_id );
    19241924
    1925                 $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>' );
     1925                $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>' );
    19261926                $activity_content = bp_create_excerpt( $post_text );
    19271927                $primary_link = bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/';
    19281928
     
    19611961        if ( $topic_id = bp_forums_new_topic( array( 'topic_title' => $topic_title, 'topic_text' => $topic_text, 'topic_tags' => $topic_tags, 'forum_id' => $forum_id ) ) ) {
    19621962                $topic = bp_forums_get_topic_details( $topic_id );
    19631963
    1964                 $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>' );
     1964                $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>' );
    19651965                $activity_content = bp_create_excerpt( $topic_text );
    19661966
    19671967                /* Record this in activity streams */
     
    19931993                if ( function_exists( 'bp_activity_delete_by_item_id' ) )
    19941994                        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' ) );
    19951995
    1996                 $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>' );
     1996                $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>' );
    19971997                $activity_content = bp_create_excerpt( $topic_text );
    19981998
    19991999                /* Record this in activity streams */
     
    20272027        if ( $post_id = bp_forums_insert_post( array( 'post_id' => $post_id, 'post_text' => $post_text, 'post_time' => $post->post_time, 'topic_id' => $topic_id, 'poster_id' => $post->poster_id ) ) ) {
    20282028                $topic = bp_forums_get_topic_details( $topic_id );
    20292029
    2030                 $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>' );
     2030                $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>' );
    20312031                $activity_content = bp_create_excerpt( $post_text );
    20322032                $primary_link = bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/';
    20332033
     
    23482348        $group = new BP_Groups_Group( $group_id );
    23492349
    23502350        groups_record_activity( array(
    2351                 '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 ),
     2351                '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 ),
    23522352                'type' => 'joined_group',
    23532353                'item_id' => $group->id,
    23542354                'user_id' => $user_id
  • bp-blogs/bp-blogs-templatetags.php

     
    166166        $to_num = bp_core_number_format( ( $from_num + ( $blogs_template->pag_num - 1 ) > $blogs_template->total_blog_count ) ? $blogs_template->total_blog_count : $from_num + ( $blogs_template->pag_num - 1 ) );
    167167        $total = bp_core_number_format( $blogs_template->total_blog_count );
    168168
    169         echo sprintf( __( 'Viewing blog %s to %s (of %s blogs)', 'buddypress' ), $from_num, $to_num, $total ); ?> &nbsp;
     169        echo sprintf( __( 'Viewing blog %1$d to %2$d (of %3$d blogs)', 'buddypress' ), $from_num, $to_num, $total ); ?> &nbsp;
    170170        <span class="ajax-loader"></span><?php
    171171}
    172172
  • bp-messages/bp-messages-notifications.php

     
    2222                $email_subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'New message from %s', 'buddypress' ), $sender_name );
    2323
    2424                $email_content = sprintf( __(
    25 '%s sent you a new message:
     25'%1$s sent you a new message:
    2626
    27 Subject: %s
     27Subject: %2$s
    2828
    29 "%s"
     29"%3$s"
    3030
    31 To view and read your messages please log in and visit: %s
     31To view and read your messages please log in and visit: %4$s
    3232
    3333---------------------
    3434', 'buddypress' ), $sender_name, $subject, $content, $message_link );
  • bp-messages/bp-messages-templatetags.php

     
    312312        $to_num = bp_core_number_format( ( $from_num + ( $messages_template->pag_num - 1 ) > $messages_template->total_thread_count ) ? $messages_template->total_thread_count : $from_num + ( $messages_template->pag_num - 1 ) );
    313313        $total = bp_core_number_format( $messages_template->total_thread_count );
    314314
    315         echo sprintf( __( 'Viewing message %s to %s (of %s messages)', 'buddypress' ), $from_num, $to_num, $total ); ?> &nbsp;
     315        echo sprintf( __( 'Viewing message %1$d to %2$d (of %3$d messages)', 'buddypress' ), $from_num, $to_num, $total ); ?> &nbsp;
    316316        <span class="ajax-loader"></span><?php
    317317}
    318318
  • bp-forums/bp-forums-templatetags.php

     
    671671        if ( 'tags' == $forum_template->type && !empty( $forum_template->search_terms ) )
    672672                $pag_filter = sprintf( __( ' matching tag "%s"', 'buddypress' ), $forum_template->search_terms );
    673673
    674         echo apply_filters( 'bp_forum_pagination_count', sprintf( __( 'Viewing topic %s to %s (%s total topics%s)', 'buddypress' ), $from_num, $to_num, $total, $pag_filter ) );
     674        echo apply_filters( 'bp_forum_pagination_count', sprintf( __( 'Viewing topic %1$d to %2$d (%3$d total topics%s)', 'buddypress' ), $from_num, $to_num, $total, $pag_filter ) );
    675675?>
    676676<span class="ajax-loader"></span>
    677677<?php
     
    955955        $from_num = intval( ( $topic_template->pag_page - 1 ) * $topic_template->pag_num ) + 1;
    956956        $to_num = ( $from_num + ( $topic_template->pag_num - 1  ) > $topic_template->total_post_count ) ? $topic_template->total_post_count : $from_num + ( $topic_template->pag_num - 1 );
    957957
    958         echo apply_filters( 'bp_the_topic_pagination_count', sprintf( __( 'Viewing post %d to %d (%d total posts)', 'buddypress' ), $from_num, $to_num, $topic_template->total_post_count ) );
     958        echo apply_filters( 'bp_the_topic_pagination_count', sprintf( __( 'Viewing post %1$d to %2$d (%3$d total posts)', 'buddypress' ), $from_num, $to_num, $topic_template->total_post_count ) );
    959959?>
    960960        <span class="ajax-loader"></span>
    961961<?php
  • bp-core.php

     
    19971997                /* The best way to remove this notice is to add a "buddypress" tag to your active theme's CSS header. */
    19981998                if ( !defined( 'BP_SILENCE_THEME_NOTICE' ) && !in_array( 'buddypress', (array)$ct->tags ) ) { ?>
    19991999                        <div id="message" class="updated fade">
    2000                                 <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>
     2000                                <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='%2$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>
    20012001                        </div><?php
    20022002                }
    20032003        }
  • bp-groups/bp-groups-notifications.php

     
    1919                $settings_link = bp_core_get_user_domain( $user_id ) .  BP_SETTINGS_SLUG . '/notifications/';
    2020
    2121                $message = sprintf( __(
    22 'Group details for the group "%s" were updated:
     22'Group details for the group "%1$s" were updated:
    2323
    24 To view the group: %s
     24To view the group: %2$s
    2525
    2626---------------------
    2727', 'buddypress' ), $group->name, $group_link );
     
    6262        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group: %s', 'buddypress' ), $group->name );
    6363
    6464$message = sprintf( __(
    65 '%s wants to join the group "%s".
     65'%1$s wants to join the group "%2$s".
    6666
    6767Because you are the administrator of this group, you must either accept or reject the membership request.
    6868
    6969To view all pending membership requests for this group, please visit:
    70 %s
     70%3$s
    7171
    72 To view %s\'s profile: %s
     72To view %4$s\'s profile: %5$s
    7373
    7474---------------------
    7575', 'buddypress' ), $requesting_user_name, $group->name, $group_requests, $requesting_user_name, $profile_link );
     
    109109        if ( $accepted ) {
    110110                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" accepted', 'buddypress' ), $group->name );
    111111                $message = sprintf( __(
    112 'Your membership request for the group "%s" has been accepted.
     112'Your membership request for the group "%1$s" has been accepted.
    113113
    114 To view the group please login and visit: %s
     114To view the group please login and visit: %2$s
    115115
    116116---------------------
    117117', 'buddypress' ), $group->name, $group_link );
     
    119119        } else {
    120120                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'Membership request for group "%s" rejected', 'buddypress' ), $group->name );
    121121                $message = sprintf( __(
    122 'Your membership request for the group "%s" has been rejected.
     122'Your membership request for the group "%1$s" has been rejected.
    123123
    124 To submit another request please log in and visit: %s
     124To submit another request please log in and visit: %2$s
    125125
    126126---------------------
    127127', 'buddypress' ), $group->name, $group_link );
     
    166166        $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have been promoted in the group: "%s"', 'buddypress' ), $group->name );
    167167
    168168        $message = sprintf( __(
    169 'You have been promoted to %s for the group: "%s".
     169'You have been promoted to %1$s for the group: "%2$s".
    170170
    171 To view the group please visit: %s
     171To view the group please visit: %3$s
    172172
    173173---------------------
    174174', 'buddypress' ), $promoted_to, $group->name, $group_link );
     
    214214                $subject = '[' . get_blog_option( BP_ROOT_BLOG, 'blogname' ) . '] ' . sprintf( __( 'You have an invitation to the group: "%s"', 'buddypress' ), $group->name );
    215215
    216216                $message = sprintf( __(
    217 'One of your friends %s has invited you to the group: "%s".
     217'One of your friends %1$s has invited you to the group: "%2$s".
    218218
    219 To view your group invites visit: %s
     219To view your group invites visit: %3$s
    220220
    221 To view the group visit: %s
     221To view the group visit: %4$s
    222222
    223 To view %s\'s profile visit: %s
     223To view %5$s\'s profile visit: %6$s
    224224
    225225---------------------
    226226', 'buddypress' ), $inviter_name, $group->name, $invites_link, $group_link, $inviter_name, $inviter_link );
     
    270270                        // Set up and send the message
    271271                        $ud = bp_core_get_core_userdata( $receiver_user_id );
    272272                        $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 );
    274274
    275275$message = sprintf( __(
    276 '%s mentioned you in the group "%s":
     276'%1$s mentioned you in the group "%2$s":
    277277
    278 "%s"
     278"%3$s"
    279279
    280 To view and respond to the message, log in and visit: %s
     280To view and respond to the message, log in and visit: %4$s
    281281
    282282---------------------
    283283', 'buddypress' ), $poster_name, $group->name, $content, $message_link );
  • bp-groups/bp-groups-templatetags.php

     
    555555        $to_num = bp_core_number_format( ( $from_num + ( $groups_template->pag_num - 1 ) > $groups_template->total_group_count ) ? $groups_template->total_group_count : $from_num + ( $groups_template->pag_num - 1 ) );
    556556        $total = bp_core_number_format( $groups_template->total_group_count );
    557557
    558         echo sprintf( __( 'Viewing group %s to %s (of %s groups)', 'buddypress' ), $from_num, $to_num, $total ); ?> &nbsp;
     558        echo sprintf( __( 'Viewing group %1$d to %2$d (of %3$d groups)', 'buddypress' ), $from_num, $to_num, $total ); ?> &nbsp;
    559559        <span class="ajax-loader"></span><?php
    560560}
    561561
     
    14071407                $to_num = bp_core_number_format( ( $from_num + ( $members_template->pag_num - 1 ) > $members_template->total_member_count ) ? $members_template->total_member_count : $from_num + ( $members_template->pag_num - 1 ) );
    14081408                $total = bp_core_number_format( $members_template->total_member_count );
    14091409
    1410                 return apply_filters( 'bp_get_group_member_pagination_count', sprintf( __( 'Viewing members %s to %s (of %s members)', 'buddypress' ), $from_num, $to_num, $total ) );
     1410                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 ) );
    14111411        }
    14121412
    14131413function bp_group_member_admin_pagination() {