Skip to:
Content

BuddyPress.org


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

BP_Optouts: Improve localization.

Improve localization and translation instructions.

Props imath.

See #8448.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.