Skip to:
Content

BuddyPress.org

Changeset 12911


Ignore:
Timestamp:
04/28/2021 11:49:06 PM (3 months ago)
Author:
dcavins
Message:

BP_Optouts: Improve localization.

Improve localization and translation instructions.

Props imath.

See #8448.

Location:
trunk/src/bp-core/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/admin/bp-core-admin-optouts.php

    r12899 r12911  
    175175
    176176        if ( ! empty( $_REQUEST['deleted'] ) ) {
     177            $deleted            = absint( $_REQUEST['deleted'] );
    177178            $notice['message'] .= sprintf(
    178                 /* translators: %s: number of deleted optouts */
    179                 _nx( '%s opt-out successfully deleted!', '%s opt-outs successfully deleted!',
    180                  absint( $_REQUEST['deleted'] ),
    181                  'nonmembers opt-out deleted',
    182                  'buddypress'
     179                _nx(
     180                    /* translators: %s: number of deleted optouts */
     181                    '%s opt-out successfully deleted!', '%s opt-outs successfully deleted!',
     182                    $deleted,
     183                    'nonmembers opt-out deleted',
     184                    'buddypress'
    183185                ),
    184186                number_format_i18n( absint( $_REQUEST['deleted'] ) )
     
    187189
    188190        if ( ! empty( $_REQUEST['notdeleted'] ) ) {
     191            $notdeleted         = absint( $_REQUEST['notdeleted'] );
    189192            $notice['message'] .= sprintf(
    190                 /* translators: %s: number of optouts that failed to be deleted */
    191                 _nx( '%s opt-out was not deleted.', '%s opt-outs were not deleted.',
    192                  absint( $_REQUEST['notdeleted'] ),
    193                  'nonmembers opt-out not deleted',
    194                  'buddypress'
     193                _nx(
     194                    /* translators: %s: number of optouts that failed to be deleted */
     195                    '%s opt-out was not deleted.', '%s opt-outs were not deleted.',
     196                    $notdeleted,
     197                    'nonmembers opt-out not deleted',
     198                    'buddypress'
    195199                ),
    196                 number_format_i18n( absint( $_REQUEST['notdeleted'] ) )
     200                number_format_i18n( $notdeleted )
    197201            );
    198202
  • trunk/src/bp-core/admin/bp-core-admin-tools.php

    r12902 r12911  
    564564                $url = add_query_arg( 'page', 'bp-optouts', bp_get_admin_url( $page ) );
    565565                printf(
    566                     /* translators: %s: the link to the BuddyPress Nonmember Opt-outs */
     566                    /* translators: %s: the link to the BuddyPress Nonmember Opt-outs management tool screen */
    567567                    esc_html_x( 'Visit %s to manage your site’s opt-out requests.', 'buddypress opt-outs intro', 'buddypress' ),
    568568                    '<a href="' . esc_url( $url ) . '">' . esc_html__( 'Nonmember Opt-outs', 'buddypress' ) . '</a>'
Note: See TracChangeset for help on using the changeset viewer.