Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/28/2020 01:31:24 PM (7 years ago)
Author:
imath
Message:

BP Activity: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

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

    r12564 r12586  
    453453                        $message = __( 'Viewing 1 item', 'buddypress' );
    454454                } else {
     455                        /* translators: 1: the from number item. 2: the to number item. 3: the total number of items. */
    455456                        $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s item', 'Viewing %1$s - %2$s of %3$s items', $activities_template->total_activity_count, 'buddypress' ), $from_num, $to_num, $total );
    456457                }
    … …  
    10351036
    10361037                // Prepend some descriptive text to alt.
    1037                 $alt_default = !empty( $dn_default ) ? sprintf( __( 'Profile picture of %s', 'buddypress' ), $dn_default ) : __( 'Profile picture', 'buddypress' );
     1038                $alt_default = __( 'Profile picture', 'buddypress' );
     1039                if ( ! empty( $dn_default ) ) {
     1040                        /* translators: %s: member name */
     1041                        $alt_default = sprintf( __( 'Profile picture of %s', 'buddypress' ), $dn_default );
     1042                }
    10381043
    10391044                $defaults = array(
    … …  
    11831188
    11841189                                        if ( ! empty( $name ) ) {
     1190                                                /* translators: %s: the Group name */
    11851191                                                $alt = sprintf( __( 'Group logo of %s', 'buddypress' ), $name );
    11861192                                        }
    … …  
    11941200
    11951201                                if ( empty( $alt ) ) {
     1202                                        /* translators: %s: the blog name */
    11961203                                        $alt = sprintf( __( 'Profile picture of the author of the site %s', 'buddypress' ), get_blog_option( $item_id, 'blogname' ) );
    11971204                                }
    … …  
    12041211
    12051212                                if ( empty( $alt ) ) {
     1213                                        /* translators: %s: member name */
    12061214                                        $alt = sprintf( __( 'Profile picture of %s', 'buddypress' ), bp_core_get_user_displayname( $activities_template->activity->secondary_item_id ) );
    12071215                                }
    … …  
    12151223
    12161224                                if ( empty( $alt ) ) {
     1225                                        /* translators: %s: member name */
    12171226                                        $alt = sprintf( __( 'Profile picture of %s', 'buddypress' ), $activities_template->activity->display_name );
    12181227                                }
    … …  
    21722181                // Deprecated notice about $args.
    21732182                if ( ! empty( $deprecated ) ) {
    2174                         _deprecated_argument( __FUNCTION__, '1.2', sprintf( __( '%1$s no longer accepts arguments. See the inline documentation at %2$s for more details.', 'buddypress' ), __FUNCTION__, __FILE__ ) );
     2183                        _deprecated_argument(
     2184                                __FUNCTION__,
     2185                                '1.2',
     2186                                sprintf(
     2187                                        /* translators: 1: the name of the function. 2: the name of the file. */
     2188                                        __( '%1$s no longer accepts arguments. See the inline documentation at %2$s for more details.', 'buddypress' ),
     2189                                        __FUNCTION__,
     2190                                        __FILE__
     2191                                )
     2192                        );
    21752193                }
    21762194
Note: See TracChangeset for help on using the changeset viewer.