Skip to:
Content

BuddyPress.org

Changeset 12750


Ignore:
Timestamp:
10/11/2020 02:07:21 PM (6 years ago)
Author:
imath
Message:

i18n: improve translators comments

  • Add a missing translators comment into the src/bp-blogs/bp-blogs-template.php.
  • Make sure translators comments are the same when the string to translate is.

Antiprops imath

See #8365
See #8369

Location:
trunk/src
Files:
3 edited

Legend:

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

    r12734 r12750  
    11771177                printf(
    11781178                        '<p>(<strong>%1$s.</strong> %2$s)</p>',
    1179                         sprintf( esc_html__( 'Your address will be %s' , 'buddypress' ), $url ),
     1179                        sprintf(
     1180                                /* translators: %s is the site url. */
     1181                                esc_html__( 'Your address will be %s' , 'buddypress' ), $url
     1182                        ),
    11801183                        esc_html__( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!' , 'buddypress' )
    11811184                );
  • trunk/src/bp-groups/bp-groups-blocks.php

    r12749 r12750  
    116116                        esc_url( $group_link ),
    117117                        esc_url( $avatar ),
    118                         // Translators: %s is the group's name.
     118                        /* Translators: %s is the group's name. */
    119119                        sprintf( esc_html__( 'Group Profile photo of %s', 'buddypress' ), $group_name )
    120120                );
    … …  
    269269                                </div>',
    270270                                esc_url( $group_link ),
    271                                 /* translators: %s: the group's name */
    272                                 sprintf( esc_attr__( 'Profile photo of %s', 'buddypress' ), $group->display_name ),
     271                                /* Translators: %s is the group's name. */
     272                                sprintf( esc_attr__( 'Group Profile photo of %s', 'buddypress' ), $group->display_name ),
    273273                                esc_url(
    274274                                        bp_core_fetch_avatar(
  • trunk/src/bp-members/bp-members-blocks.php

    r12748 r12750  
    265265                                </div>',
    266266                                esc_url( $member_link ),
    267                                 /* translators: %s: the member display name */
     267                                /* translators: %s: member name */
    268268                                sprintf( esc_attr__( 'Profile photo of %s', 'buddypress' ), $member->display_name ),
    269269                                esc_url(
    … …  
    333333                                        '<time datetime="%1$s">%2$s</time>',
    334334                                        esc_attr( bp_core_get_iso8601_date( $member->last_activity ) ),
    335                                         /* translators: %s: a human time diff */
     335                                        /* translators: %s: a human time diff. */
    336336                                        sprintf( esc_html__( 'Active %s', 'buddypress' ), bp_core_time_since( $member->last_activity ) )
    337337                                );
Note: See TracChangeset for help on using the changeset viewer.