Skip to:
Content

BuddyPress.org


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

BP Core: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

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

    r12561 r12588  
    144144    // If none is found, concatenate.
    145145    } elseif ( isset( buddypress()->{$component}->name ) ) {
     146        /* translators: %s: Name of the BuddyPress component */
    146147        $title = sprintf( __( '%s Directory', 'buddypress' ), buddypress()->{$component}->name );
    147148    }
     
    196197        'item_id' => $comment->user_id,
    197198        'type'    => 'thumb',
    198         'alt'     => sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $comment->user_id ) )
     199        'alt'     => sprintf(
     200            /* translators: %s: member name */
     201            __( 'Profile photo of %s', 'buddypress' ),
     202            bp_core_get_user_displayname( $comment->user_id )
     203        ),
    199204    ) ) );
    200205}
     
    211216        'item_id' => $post->post_author,
    212217        'type'    => 'thumb',
    213         'alt'     => sprintf( __( 'Profile photo of %s', 'buddypress' ), bp_core_get_user_displayname( $post->post_author ) )
     218        'alt'     => sprintf(
     219            /* translators: %s: member name */
     220            __( 'Profile photo of %s', 'buddypress' ),
     221            bp_core_get_user_displayname( $post->post_author )
     222        ),
    214223    ) ) );
    215224}
     
    37583767         * @param string $token    The Recipient token.
    37593768         */
    3760         return apply_filters( 'bp_email_get_salutation', sprintf( _x( 'Hi %s,', 'recipient salutation', 'buddypress' ), $token ), $settings, $token );
    3761     }
     3769        return apply_filters(
     3770            'bp_email_get_salutation',
     3771            sprintf(
     3772                /* translators: %s: the email token for the recipient name */
     3773                _x( 'Hi %s,', 'recipient salutation', 'buddypress' ),
     3774                $token
     3775            ),
     3776            $settings,
     3777            $token
     3778        );
     3779    }
Note: See TracChangeset for help on using the changeset viewer.