WordPress.org

Making WordPress.org


Ignore:
Timestamp:
07/29/2016 10:44:47 AM (4 years ago)
Author:
ocean90
Message:

Support: Use wporg-forums as the text domain for bbPress plugins.

We already use it for the theme.

See #1544.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-moderation/inc/class-plugin.php

    r3702 r3739  
    170170        $post = get_post( $post_id );
    171171        if ( ! $post ) {
    172             bbp_add_error( 'wporg_bbp_flag_post_id', __( '<strong>ERROR</strong>: No post was found! Which topic or reply are you marking for moderation?', 'wporg' ) );
     172            bbp_add_error( 'wporg_bbp_flag_post_id', __( '<strong>ERROR</strong>: No post was found! Which topic or reply are you marking for moderation?', 'wporg-forums' ) );
    173173
    174174        // Check that user id matches post author
    175175        } elseif ( $post->post_author != intval( $_GET['user_id'] ) ) {
    176             bbp_add_error( 'wporg_bbp_flag_post_user', __( '<strong>ERROR</strong>: That author does not match the flagged post.', 'wporg' ) );
     176            bbp_add_error( 'wporg_bbp_flag_post_user', __( '<strong>ERROR</strong>: That author does not match the flagged post.', 'wporg-forums' ) );
    177177
    178178        // Check nonce
    179179        } elseif ( ! bbp_verify_nonce_request( 'toggle-flag_' . $post->post_author . '_' . $post->ID ) ) {
    180             bbp_add_error( 'wporg_bbp_flag_nonce', __( '<strong>ERROR</strong>: Are you sure you wanted to do that?', 'wporg' ) );
     180            bbp_add_error( 'wporg_bbp_flag_nonce', __( '<strong>ERROR</strong>: Are you sure you wanted to do that?', 'wporg-forums' ) );
    181181
    182182        // Check current user's ability to moderate
    183183        } elseif ( ! current_user_can( 'moderate' ) ) {
    184             bbp_add_error( 'wporg_bbp_flag_permissions', __( '<strong>ERROR</strong>: You don\'t have permission to moderate that user!', 'wporg' ) );
     184            bbp_add_error( 'wporg_bbp_flag_permissions', __( '<strong>ERROR</strong>: You don\'t have permission to moderate that user!', 'wporg-forums' ) );
    185185        }
    186186
     
    205205            bbp_redirect( $redirect );
    206206        } elseif ( true === $is_flagged && 'bbp_flag_user' === $action ) {
    207             bbp_add_error( 'wporg_bbp_flag_user', __( '<strong>ERROR</strong>: There was a problem flagging that user!', 'wporg' ) );
     207            bbp_add_error( 'wporg_bbp_flag_user', __( '<strong>ERROR</strong>: There was a problem flagging that user!', 'wporg-forums' ) );
    208208        } elseif ( false === $is_flagged && 'bbp_unflag_user' == $action ) {
    209             bbp_add_error( 'wporg_bbp_flag_unuser', __( '<strong>ERROR</strong>: There was a problem unflagging that user!', 'wporg' ) );
     209            bbp_add_error( 'wporg_bbp_flag_unuser', __( '<strong>ERROR</strong>: There was a problem unflagging that user!', 'wporg-forums' ) );
    210210        }
    211211    }
     
    256256            'user_id' => bbp_get_displayed_user_id(),
    257257            'post_id' => 0,
    258             'flag'    => esc_html__( 'Flag Author', 'wporg' ),
    259             'unflag'  => esc_html__( 'Unflag Author', 'wporg' ),
     258            'flag'    => esc_html__( 'Flag Author', 'wporg-forums' ),
     259            'unflag'  => esc_html__( 'Unflag Author', 'wporg-forums' ),
    260260        ), 'get_user_flag_link' );
    261261
Note: See TracChangeset for help on using the changeset viewer.