Tarea #1045 => Errores en los textos de la invitación a un grupo
git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@144 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
parent
68ab9e8145
commit
e07339ecf4
@ -56,7 +56,7 @@ class BP_Invite_Anyone extends BP_Group_Extension {
|
|||||||
$this->has_caps = true;
|
$this->has_caps = true;
|
||||||
|
|
||||||
/* Group API Extension Properties */
|
/* Group API Extension Properties */
|
||||||
$this->name = __( 'Send Invites', 'buddypress' );
|
$this->name = __( 'Send invitations', 'buddypress' );
|
||||||
$this->slug = BP_INVITE_ANYONE_SLUG;
|
$this->slug = BP_INVITE_ANYONE_SLUG;
|
||||||
|
|
||||||
/* Set as early in the order as possible */
|
/* Set as early in the order as possible */
|
||||||
@ -86,7 +86,7 @@ class BP_Invite_Anyone extends BP_Group_Extension {
|
|||||||
do_action( 'groups_screen_group_invite', $bp->groups->current_group->id );
|
do_action( 'groups_screen_group_invite', $bp->groups->current_group->id );
|
||||||
|
|
||||||
// Hack to imitate bp_core_add_message, since bp_core_redirect is giving me such hell
|
// Hack to imitate bp_core_add_message, since bp_core_redirect is giving me such hell
|
||||||
echo '<div id="message" class="updated"><p>' . __( 'Group invites sent.', 'buddypress' ) . '</p></div>';
|
echo '<div id="message" class="updated"><p>' . __( 'Group invitation sent.', 'buddypress' ) . '</p></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
invite_anyone_create_screen_content('invite');
|
invite_anyone_create_screen_content('invite');
|
||||||
@ -129,7 +129,7 @@ class BP_Invite_Anyone extends BP_Group_Extension {
|
|||||||
groups_send_invites( $bp->loggedin_user->id, $bp->groups->current_group->id );
|
groups_send_invites( $bp->loggedin_user->id, $bp->groups->current_group->id );
|
||||||
|
|
||||||
if ( $this->has_invites )
|
if ( $this->has_invites )
|
||||||
bp_core_add_message( __('Group invites sent.', 'buddypress') );
|
bp_core_add_message( __('Group invitation sent.', 'buddypress') );
|
||||||
else
|
else
|
||||||
bp_core_add_message( __('Group created successfully.', 'buddypress') );
|
bp_core_add_message( __('Group created successfully.', 'buddypress') );
|
||||||
}
|
}
|
||||||
@ -158,7 +158,7 @@ function invite_anyone_catch_group_invites() {
|
|||||||
// Send the invites.
|
// Send the invites.
|
||||||
groups_send_invites( $bp->loggedin_user->id, $bp->groups->current_group->id );
|
groups_send_invites( $bp->loggedin_user->id, $bp->groups->current_group->id );
|
||||||
|
|
||||||
bp_core_add_message( __('Group invites sent.', 'buddypress') );
|
bp_core_add_message( __('Group invitation sent.', 'buddypress') );
|
||||||
|
|
||||||
do_action( 'groups_screen_group_invite', $bp->groups->current_group->id );
|
do_action( 'groups_screen_group_invite', $bp->groups->current_group->id );
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,7 @@ if ( function_exists( 'bp_post_get_permalink' ) ) { // ugly ugly ugly hack to ch
|
|||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
<?php if ( $event != 'create' ) : ?>
|
<?php if ( $event != 'create' ) : ?>
|
||||||
<p class="clear"><input type="submit" name="submit" id="submit" value="<?php _e( 'Send Invites', 'buddypress' ) ?>" /></p>
|
<p class="clear"><input type="submit" name="submit" id="submit" value="<?php _e( 'Send invitation', 'buddypress' ) ?>" /></p>
|
||||||
<?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites') ?>
|
<?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites') ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ if ( function_exists( 'bp_post_get_permalink' ) ) { // ugly ugly ugly hack to ch
|
|||||||
|
|
||||||
<?php if ( !bp_get_new_group_id() ) : ?>
|
<?php if ( !bp_get_new_group_id() ) : ?>
|
||||||
<div class="submit">
|
<div class="submit">
|
||||||
<input type="submit" name="submit" id="submit" value="<?php _e( 'Send Invites', 'buddypress' ) ?>" />
|
<input type="submit" name="submit" id="submit" value="<?php _e( 'Send invitation', 'buddypress' ) ?>" />
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user