Skip to:
Content

BuddyPress.org

Ticket #5534: 5534.diff

File 5534.diff, 5.0 KB (added by netweb, 11 years ago)
  • bp-core/admin/bp-core-functions.php

     
    842842                $url = bp_get_admin_url( 'users.php' );
    843843
    844844                if ( bp_is_user_spammer( $user_object->ID ) ) {
    845                         $actions['ham'] = "<a href='" . wp_nonce_url( $url . "?action=ham&amp;user=$user_object->ID", 'bp-spam-user' ) . "'>" . __( 'Not Spam' ) . "</a>";
     845                        $actions['ham'] = "<a href='" . wp_nonce_url( $url . "?action=ham&amp;user=$user_object->ID", 'bp-spam-user' ) . "'>" . __( 'Not Spam', 'buddypress' ) . "</a>";
    846846                } else {
    847                         $actions['spam'] = "<a class='submitdelete' href='" . wp_nonce_url( $url . "?action=spam&amp;user=$user_object->ID", 'bp-spam-user' ) . "'>" . __( 'Mark as Spam' ) . "</a>";
     847                        $actions['spam'] = "<a class='submitdelete' href='" . wp_nonce_url( $url . "?action=spam&amp;user=$user_object->ID", 'bp-spam-user' ) . "'>" . __( 'Mark as Spam', 'buddypress' ) . "</a>";
    848848                }
    849849        }
    850850
  • bp-members/admin/bp-members-classes.php

     
    145145                );
    146146
    147147                if ( current_user_can( 'delete_users' ) ) {
    148                         $actions['delete'] = __( 'Delete' );
     148                        $actions['delete'] = __( 'Delete', 'buddypress' );
    149149                }
    150150
    151151                return $actions;
     
    171171                        } elseif ( current_user_can( 'manage_options' ) ) {
    172172                                $link = '<a href="' . esc_url( bp_get_admin_url( 'options-general.php' ) ) . '">' . esc_html__( 'Edit settings', 'buddypress' ) . '</a>';
    173173                        }
    174                        
     174
    175175                        printf( __( 'Registration is disabled. %s', 'buddypress' ), $link );
    176176                }
    177                        
     177
    178178        }
    179179
    180180        /**
     
    223223         */
    224224        public function column_cb( $signup_object = null ) {
    225225                ?>
    226                 <label class="screen-reader-text" for="signup_<?php echo intval( $signup_object->id ); ?>"><?php echo esc_html( sprintf( __( 'Select %s' ), $signup_object->user_login ) ); ?></label>
     226                <label class="screen-reader-text" for="signup_<?php echo intval( $signup_object->id ); ?>"><?php echo esc_html( sprintf( __( 'Select %s', 'buddypress' ), $signup_object->user_login ) ); ?></label>
    227227                <input type="checkbox" id="signup_<?php echo intval( $signup_object->id ) ?>" name="allsignups[]" value="<?php echo esc_attr( $signup_object->id ) ?>" />
    228228                <?php
    229229        }
     
    463463                );
    464464
    465465                if ( current_user_can( 'delete_users' ) ) {
    466                         $actions['delete'] = __( 'Delete' );
     466                        $actions['delete'] = __( 'Delete', 'buddypress' );
    467467                }
    468468
    469469                return $actions;
     
    536536         */
    537537        public function column_cb( $signup_object = null ) {
    538538                ?>
    539                 <label class="screen-reader-text" for="signup_<?php echo intval( $signup_object->id ); ?>"><?php echo esc_html( sprintf( __( 'Select %s' ), $signup_object->user_login ) ); ?></label>
     539                <label class="screen-reader-text" for="signup_<?php echo intval( $signup_object->id ); ?>"><?php echo esc_html( sprintf( __( 'Select %s', 'buddypress' ), $signup_object->user_login ) ); ?></label>
    540540                <input type="checkbox" id="signup_<?php echo intval( $signup_object->id ) ?>" name="allsignups[]" value="<?php echo esc_attr( $signup_object->id ) ?>" />
    541541                <?php
    542542        }
  • bp-members/bp-members-admin.php

     
    12911291                                <?php
    12921292                                _e( 'Users', 'buddypress' );
    12931293                                if ( current_user_can( 'create_users' ) ) { ?>
    1294                                         <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>
     1294                                        <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user', 'buddypress' ); ?></a>
    12951295                                <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>
    1296                                         <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>
     1296                                        <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user', 'buddypress' ); ?></a>
    12971297                                <?php }
    12981298
    12991299                                if ( $usersearch ) {
    1300                                         printf( '<span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', esc_html( $usersearch ) );
     1300                                        printf( '<span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;', 'buddypress' ) . '</span>', esc_html( $usersearch ) );
    13011301                                }
    13021302
    13031303                                ?>
  • bp-members/bp-members-functions.php

     
    15841584                BP_Signup::validate( $key );
    15851585
    15861586                if ( isset( $user_already_exists ) ) {
    1587                         return new WP_Error( 'user_already_exists', __( 'That username is already activated.' ), $signup );
     1587                        return new WP_Error( 'user_already_exists', __( 'That username is already activated.', 'buddypress' ), $signup );
    15881588                }
    15891589
    15901590                // Set up data to pass to the legacy filter