Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/28/2020 01:39:38 PM (5 years ago)
Author:
imath
Message:

BP Groups: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-notifications.php

    r12437 r12590  
    3232        if ( $group->name !== $old_group->name ) {
    3333            $changed[] = sprintf(
    34                 _x( '* Name changed from "%s" to "%s".', 'Group update email text', 'buddypress' ),
     34                /* translators: 1: the old group name. 2: the new group name. */
     35                _x( '* Name changed from "%1$s" to "%2$s".', 'Group update email text', 'buddypress' ),
    3536                esc_html( $old_group->name ),
    3637                esc_html( $group->name )
     
    4041        if ( $group->description !== $old_group->description ) {
    4142            $changed[] = sprintf(
    42                 _x( '* Description changed from "%s" to "%s".', 'Group update email text', 'buddypress' ),
     43                /* translators: 1: the old group description. 2: the new group description. */
     44                _x( '* Description changed from "%1$s" to "%2$s".', 'Group update email text', 'buddypress' ),
    4345                esc_html( $old_group->description ),
    4446                esc_html( $group->description )
     
    4850        if ( $group->slug !== $old_group->slug ) {
    4951            $changed[] = sprintf(
    50                 _x( '* Permalink changed from "%s" to "%s".', 'Group update email text', 'buddypress' ),
     52                /* translators: 1: the old group permalink. 2: the new group permalink. */
     53                _x( '* Permalink changed from "%1$s" to "%2$s".', 'Group update email text', 'buddypress' ),
    5154                esc_url( bp_get_group_permalink( $old_group ) ),
    5255                esc_url( bp_get_group_permalink( $group ) )
     
    394397            // we'll return values inline.
    395398            if ( (int) $total_items > 1 ) {
     399                /* translators: 1: number of group membership requests. 2: group name. */
    396400                $text = sprintf( __( '%1$d new membership requests for the group "%2$s"', 'buddypress' ), (int) $total_items, $group->name );
    397401                $amount = 'multiple';
     
    440444            } else {
    441445                $user_fullname = bp_core_get_user_displayname( $requesting_user_id );
     446                /* translators: %s: member name */
    442447                $text = sprintf( __( '%s requests group membership', 'buddypress' ), $user_fullname );
    443448                $notification_link = $group_link . 'admin/membership-requests/?n=1';
     
    495500
    496501            if ( (int) $total_items > 1 ) {
    497                 $text = sprintf( __( '%d accepted group membership requests', 'buddypress' ), (int) $total_items, $group->name );
     502                /* translators: 1: number of accepted group membership requests. 2: group name. */
     503                $text = sprintf( __( '%1$d accepted group membership requests for the group "%2$s"', 'buddypress' ), (int) $total_items, $group->name );
    498504                $amount = 'multiple';
    499505                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
     
    534540                }
    535541            } else {
     542                /* translators: %s: group name. */
    536543                $text = sprintf( __( 'Membership for group "%s" accepted', 'buddypress' ), $group->name );
    537544                $filter = 'bp_groups_single_membership_request_accepted_notification';
     
    584591
    585592            if ( (int) $total_items > 1 ) {
    586                 $text = sprintf( __( '%d rejected group membership requests', 'buddypress' ), (int) $total_items, $group->name );
     593                /* translators: 1: number of accepted group membership requests. 2: group name. */
     594                $text = sprintf( __( '%1$d rejected group membership requests for the group "%2$s"', 'buddypress' ), (int) $total_items, $group->name );
    587595                $amount = 'multiple';
    588596                $notification_link = trailingslashit( bp_loggedin_user_domain() . bp_get_groups_slug() ) . '?n=1';
     
    623631                }
    624632            } else {
     633                /* translators: %s: group name. */
    625634                $text = sprintf( __( 'Membership for group "%s" rejected', 'buddypress' ), $group->name );
    626635                $notification_link = $group_link . '?n=1';
     
    672681
    673682            if ( (int) $total_items > 1 ) {
     683                /* translators: %d: number of groups the user has been promoted admin for */
    674684                $text = sprintf( __( 'You were promoted to an admin in %d groups', 'buddypress' ), (int) $total_items );
    675685                $amount = 'multiple';
     
    707717                }
    708718            } else {
     719                /* translators: %s: group name. */
    709720                $text = sprintf( __( 'You were promoted to an admin in the group "%s"', 'buddypress' ), $group->name );
    710721                $notification_link = $group_link . '?n=1';
     
    754765
    755766            if ( (int) $total_items > 1 ) {
     767                /* translators: %d: number of groups the user has been promoted mod for */
    756768                $text = sprintf( __( 'You were promoted to a mod in %d groups', 'buddypress' ), (int) $total_items );
    757769                $amount = 'multiple';
     
    789801                }
    790802            } else {
     803                /* translators: %s: group name. */
    791804                $text = sprintf( __( 'You were promoted to a mod in the group "%s"', 'buddypress' ), $group->name );
    792805                $notification_link = $group_link . '?n=1';
     
    837850
    838851            if ( (int) $total_items > 1 ) {
     852                /* translators: %d: number of group invites */
    839853                $text = sprintf( __( 'You have %d new group invitations', 'buddypress' ), (int) $total_items );
    840854                $amount = 'multiple';
     
    871885                }
    872886            } else {
     887                /* translators: %s: group name. */
    873888                $text = sprintf( __( 'You have an invitation to the group: %s', 'buddypress' ), $group->name );
    874889                $filter = 'bp_groups_single_group_invite_notification';
Note: See TracChangeset for help on using the changeset viewer.