Skip to:
Content

BuddyPress.org

Changeset 12595


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

BP Templates: add missing /* translators */ comments

See #8260

Location:
trunk/src/bp-templates
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r12371 r12595  
    311311            'show_all'            => __( 'Show all', 'buddypress' ),
    312312            'show_all_comments'   => __( 'Show all comments for this thread', 'buddypress' ),
     313
     314            /* translators: %s: number of activity comments */
    313315            'show_x_comments'     => __( 'Show all comments (%d)', 'buddypress' ),
    314316            'unsaved_changes'     => __( 'Your profile has unsaved changes. If you leave the page, the changes will be lost.', 'buddypress' ),
     
    13931395
    13941396        if ( 'is_pending' == $user_status ) {
     1397            /* translators: %s: user link */
    13951398            echo '<p class="description">' . sprintf( __( '%s has previously requested to join this group. Sending an invitation will automatically add the member to the group.', 'buddypress' ), $user->user_link ) . '</p>';
    13961399        }
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/entry.php

    r12082 r12595  
    6666                <?php if ( bp_activity_can_comment() ) : ?>
    6767
    68                     <a href="<?php bp_activity_comment_link(); ?>" class="button acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf( __( 'Comment %s', 'buddypress' ), '<span>' . bp_activity_get_comment_count() . '</span>' ); ?></a>
     68                    <a href="<?php bp_activity_comment_link(); ?>" class="button acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>">
     69                        <?php
     70                        /* translators: %s: number of activity comments */
     71                        printf( __( 'Comment %s', 'buddypress' ), '<span>' . bp_activity_get_comment_count() . '</span>' );
     72                        ?>
     73                    </a>
    6974
    7075                <?php endif; ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/index.php

    r12082 r12595  
    5757            do_action( 'bp_before_activity_type_tab_all' ); ?>
    5858
    59             <li class="selected" id="activity-all"><a href="<?php bp_activity_directory_permalink(); ?>"><?php printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' ); ?></a></li>
     59            <li class="selected" id="activity-all">
     60                <a href="<?php bp_activity_directory_permalink(); ?>">
     61                    <?php
     62                    /* translators: %s: number of members */
     63                    printf( __( 'All Members %s', 'buddypress' ), '<span>' . bp_get_total_member_count() . '</span>' );
     64                    ?>
     65                </a>
     66            </li>
    6067
    6168            <?php if ( is_user_logged_in() ) : ?>
     
    7481                    <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?>
    7582
    76                         <li id="activity-friends"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>"><?php printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>
     83                        <li id="activity-friends">
     84                            <a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_friends_slug() . '/'; ?>">
     85                                <?php
     86                                /* translators: %s: number of friends */
     87                                printf( __( 'My Friends %s', 'buddypress' ), '<span>' . bp_get_total_friend_count( bp_loggedin_user_id() ) . '</span>' );
     88                                ?>
     89                            </a>
     90                        </li>
    7791
    7892                    <?php endif; ?>
     
    98112                            esc_url( bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/' ),
    99113                            sprintf(
    100                                 /* translators: %s: total joined groups count for the current user */
     114                                /* translators: %s: current user groups count */
    101115                                __( 'My Groups %s', 'buddypress' ),
    102116                                '<span>' . bp_get_total_group_count_for_user( bp_loggedin_user_id() ) . '</span>'
     
    120134                <?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?>
    121135
    122                     <li id="activity-favorites"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>"><?php printf( __( 'My Favorites %s', 'buddypress' ), '<span>' . bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>
     136                    <li id="activity-favorites">
     137                        <a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/favorites/'; ?>">
     138                            <?php
     139                            /* translators: %s: number of favorites */
     140                            printf( __( 'My Favorites %s', 'buddypress' ), '<span>' . bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) . '</span>' );
     141                            ?>
     142                        </a>
     143                    </li>
    123144
    124145                <?php endif; ?>
     
    135156                    do_action( 'bp_before_activity_type_tab_mentions' ); ?>
    136157
    137                     <li id="activity-mentions"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>"><?php _e( 'Mentions', 'buddypress' ); ?><?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?> <strong><span><?php printf( _nx( '%s new', '%s new', bp_get_total_mention_count_for_user( bp_loggedin_user_id() ), 'Number of new activity mentions', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ); ?></span></strong><?php endif; ?></a></li>
     158                    <li id="activity-mentions">
     159                        <a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/mentions/'; ?>">
     160                            <?php _e( 'Mentions', 'buddypress' ); ?>
     161                            <?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?>
     162                                &nbsp;
     163                                <strong>
     164                                    <span>
     165                                        <?php
     166                                        /* translators: %s: new mentions count */
     167                                        printf( _nx( '%s new', '%s new', bp_get_total_mention_count_for_user( bp_loggedin_user_id() ), 'Number of new activity mentions', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) );
     168                                        ?>
     169                                    </span>
     170                                </strong>
     171                            <?php endif; ?>
     172                        </a>
     173                    </li>
    138174
    139175                <?php endif; ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/activity/post-form.php

    r12082 r12595  
    2727    </div>
    2828
    29     <p class="activity-greeting"><?php if ( bp_is_group() )
    30         printf( __( "What's new in %s, %s?", 'buddypress' ), bp_get_group_name(), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) );
    31     else
    32         printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) );
    33     ?></p>
     29    <p class="activity-greeting">
     30        <?php
     31        if ( bp_is_group() ) {
     32            /* translators: 1: group name. 2: member name. */
     33            printf( __( 'What\'s new in %1$s, %2$s?', 'buddypress' ), bp_get_group_name(), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) );
     34        } else {
     35            /* translators: %s: member name */
     36            printf( __( "What's new, %s?", 'buddypress' ), bp_get_user_firstname( bp_get_loggedin_user_fullname() ) );
     37        }
     38        ?>
     39    </p>
    3440
    3541    <div id="whats-new-content">
  • trunk/src/bp-templates/bp-legacy/buddypress/blogs/index.php

    r12082 r12595  
    6161        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Sites directory main navigation', 'buddypress' ); ?>" role="navigation">
    6262            <ul>
    63                 <li class="selected" id="blogs-all"><a href="<?php bp_root_domain(); ?>/<?php bp_blogs_root_slug(); ?>"><?php printf( __( 'All Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count() . '</span>' ); ?></a></li>
     63                <li class="selected" id="blogs-all">
     64                    <a href="<?php bp_root_domain(); ?>/<?php bp_blogs_root_slug(); ?>">
     65                        <?php
     66                        /* translators: %s: all blogs count */
     67                        printf( __( 'All Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count() . '</span>' ); ?>
     68                    </a>
     69                </li>
    6470
    6571                <?php if ( is_user_logged_in() && bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) ) : ?>
    6672
    67                     <li id="blogs-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug(); ?>"><?php printf( __( 'My Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>
     73                    <li id="blogs-personal">
     74                        <a href="<?php echo bp_loggedin_user_domain() . bp_get_blogs_slug(); ?>">
     75                            <?php
     76                            /* translators: %s: current user blogs count */
     77                            printf( __( 'My Sites %s', 'buddypress' ), '<span>' . bp_get_total_blog_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?>
     78                        </a>
     79                    </li>
    6880
    6981                <?php endif; ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/index.php

    r12082 r12595  
    6060        <div class="item-list-tabs" aria-label="<?php esc_attr_e( 'Groups directory main navigation', 'buddypress' ); ?>">
    6161            <ul>
    62                 <li class="selected" id="groups-all"><a href="<?php bp_groups_directory_permalink(); ?>"><?php printf( __( 'All Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count() . '</span>' ); ?></a></li>
     62                <li class="selected" id="groups-all">
     63                    <a href="<?php bp_groups_directory_permalink(); ?>">
     64                        <?php
     65                        /* translators: %s: all groups count */
     66                        printf( __( 'All Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count() . '</span>' );
     67                        ?>
     68                    </a>
     69                </li>
    6370
    6471                <?php if ( is_user_logged_in() && bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    65                     <li id="groups-personal"><a href="<?php echo bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups/'; ?>"><?php printf( __( 'My Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>
     72                    <li id="groups-personal">
     73                        <a href="<?php echo bp_loggedin_user_domain() . bp_get_groups_slug() . '/my-groups/'; ?>">
     74                            <?php
     75                            /* translators: %s: current user groups count */
     76                            printf( __( 'My Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count_for_user( bp_loggedin_user_id() ) . '</span>' );
     77                            ?>
     78                        </a>
     79                    </li>
    6680                <?php endif; ?>
    6781
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/request-membership.php

    r12156 r12595  
    2222        echo esc_html(
    2323            sprintf(
    24                 /* translators:  %s =group name */
     24                /* translators: %s: group name */
    2525                __( 'You are requesting to become a member of the group "%s".', 'buddypress' ),
    2626                bp_get_group_name()
  • trunk/src/bp-templates/bp-legacy/buddypress/members/activate.php

    r12082 r12595  
    4545                <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
    4646            <?php else : ?>
    47                 <p><?php printf( __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ), wp_login_url( bp_get_root_domain() ) ); ?></p>
     47                <p>
     48                    <?php
     49                    /* translators: %s: login url */
     50                    printf( __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ), wp_login_url( bp_get_root_domain() ) );
     51                    ?>
     52                </p>
    4853            <?php endif; ?>
    4954
  • trunk/src/bp-templates/bp-legacy/buddypress/members/register.php

    r12082 r12595  
    188188                                    <?php
    189189                                    printf(
     190                                        /* translators: %s: level of visibility */
    190191                                        __( 'This field can be seen by: %s', 'buddypress' ),
    191192                                        '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>'
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/groups/invites.php

    r12082 r12595  
    3333                <?php endif; ?>
    3434
    35                 <h4><?php bp_group_link(); ?><span class="small"> - <?php printf( _nx( '%d member', '%d members', bp_get_group_total_members( false ),'Group member count', 'buddypress' ), bp_get_group_total_members( false )  ); ?></span></h4>
     35                <h4>
     36                    <?php bp_group_link(); ?>
     37                    <span class="small">
     38                        &nbsp;-&nbsp;
     39                        <?php
     40                        /* translators: %s: group members count */
     41                        printf( _nx( '%d member', '%d members', bp_get_group_total_members( false ),'Group member count', 'buddypress' ), bp_get_group_total_members( false )  );
     42                        ?>
     43                    </span>
     44                </h4>
    3645
    3746                <p class="desc">
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/messages/single.php

    r12082 r12595  
    3333                <?php elseif ( bp_get_max_thread_recipients_to_list() <= bp_get_thread_recipients_count() ) : ?>
    3434
    35                     <?php printf( __( 'Conversation between %s recipients.', 'buddypress' ), number_format_i18n( bp_get_thread_recipients_count() ) ); ?>
     35                    <?php
     36                    /* translators: %s: message recipients count */
     37                    printf( __( 'Conversation between %s recipients.', 'buddypress' ), number_format_i18n( bp_get_thread_recipients_count() ) );
     38                    ?>
    3639
    3740                <?php else : ?>
    3841
    39                     <?php printf( __( 'Conversation between %s.', 'buddypress' ), bp_get_thread_recipients_list() ); ?>
     42                    <?php
     43                    /* translators: %s: message recipients list */
     44                    printf( __( 'Conversation between %s.', 'buddypress' ), bp_get_thread_recipients_list() );
     45                    ?>
    4046
    4147                <?php endif; ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php

    r12082 r12595  
    2525        do_action( 'bp_before_profile_field_content' ); ?>
    2626
    27         <h2><?php printf( __( "Editing '%s' Profile Group", 'buddypress' ), bp_get_the_profile_group_name() ); ?></h2>
     27        <h2>
     28            <?php
     29            /* translators: %s: profile group name */
     30            printf( __( "Editing '%s' Profile Group", 'buddypress' ), bp_get_the_profile_group_name() );
     31            ?>
     32        </h2>
    2833
    2934        <?php if ( bp_profile_has_multiple_groups() ) : ?>
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/data.php

    r12272 r12595  
    2222
    2323            <p><?php esc_html_e( 'Your request for an export of personal data has been completed.', 'buddypress' ); ?></p>
    24             <p><?php printf( esc_html__( 'You may download your personal data by clicking on the link below. For privacy and security, we will automatically delete the file on %s, so please download it before then.', 'buddypress' ), bp_settings_get_personal_data_expiration_date( $request ) ); ?></p>
     24            <p>
     25                <?php
     26                /* translators: %s: expiration date */
     27                printf( esc_html__( 'You may download your personal data by clicking on the link below. For privacy and security, we will automatically delete the file on %s, so please download it before then.', 'buddypress' ), bp_settings_get_personal_data_expiration_date( $request ) );
     28                ?>
     29            </p>
    2530
    2631            <p><strong><?php printf( '<a href="%1$s">%2$s</a>', bp_settings_get_personal_data_export_url( $request ), esc_html__( 'Download personal data', 'buddypress' ) ); ?></strong></p>
     
    4045    <?php elseif ( 'request-confirmed' === $request->status ) : ?>
    4146
    42         <p><?php printf( esc_html__( 'You previously requested an export of your personal data on %s.', 'buddypress' ), bp_settings_get_personal_data_confirmation_date( $request ) ); ?></p>
     47        <p>
     48            <?php
     49            /* translators: %s: confirmation date */
     50            printf( esc_html__( 'You previously requested an export of your personal data on %s.', 'buddypress' ), bp_settings_get_personal_data_confirmation_date( $request ) );
     51            ?>
     52        </p>
    4353        <p><?php esc_html_e( 'You will receive a link to download your export via email once we are able to fulfill your request.', 'buddypress' ); ?></p>
    4454
  • trunk/src/bp-templates/bp-nouveau/buddypress-functions.php

    r12558 r12595  
    426426            'ajaxurl'             => bp_core_ajax_url(),
    427427            'confirm'             => __( 'Are you sure?', 'buddypress' ),
     428
     429            /* translators: %s: number of activity comments */
    428430            'show_x_comments'     => __( 'Show all %d comments', 'buddypress' ),
    429431            'unsaved_changes'     => __( 'Your profile has unsaved changes. If you leave the page, the changes will be lost.', 'buddypress' ),
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/groups-loop.php

    r12156 r12595  
    4848                            <?php
    4949                            printf(
    50                                 /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
     50                                /* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */
    5151                                __( 'active %s', 'buddypress' ),
    5252                                bp_get_group_last_active()
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/cover-image-header.php

    r12215 r12595  
    2828            <p class="activity" data-livestamp="<?php bp_core_iso8601_date( bp_get_group_last_active( 0, array( 'relative' => false ) ) ); ?>">
    2929                <?php
    30                 /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
     30                /* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */
    3131                printf( __( 'active %s', 'buddypress' ), bp_get_group_last_active() );
    3232                ?>
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/default-front.php

    r12215 r12595  
    1919                <?php
    2020                printf(
     21                    /* translators: 1: link to the customizer option. 2: link to the customizer widgets section. */
    2122                    esc_html__( 'You can set your preferences for the %1$s or add %2$s to it.', 'buddypress' ),
    2223                    bp_nouveau_groups_get_customizer_option_link(),
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/group-header.php

    r12215 r12595  
    2828        echo esc_html(
    2929            sprintf(
    30                 /* translators: %s = last activity timestamp (e.g. "active 1 hour ago") */
     30                /* translators: %s: last activity timestamp (e.g. "active 1 hour ago") */
    3131                __( 'active %s', 'buddypress' ),
    3232                bp_get_group_last_active()
  • trunk/src/bp-templates/bp-nouveau/buddypress/groups/single/request-membership.php

    r12473 r12595  
    1414        echo esc_html(
    1515            sprintf(
    16                 /* translators: %s = group name */
     16                /* translators: %s: group name */
    1717                __( 'You are requesting to become a member of the group "%s".', 'buddypress' ),
    1818                bp_get_group_name()
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/default-front.php

    r12156 r12595  
    1717            <?php
    1818            printf(
     19                /* translators: 1: link to the customizer option. 2: link to the customizer widgets section. */
    1920                esc_html__( 'You can set the preferences of the %1$s or add %2$s to it.', 'buddypress' ),
    2021                bp_nouveau_members_get_customizer_option_link(),
  • trunk/src/bp-templates/bp-nouveau/buddypress/members/single/settings/general.php

    r12397 r12595  
    2121    <?php if ( ! is_super_admin() ) : ?>
    2222
    23         <label for="pwd"><?php printf( esc_html__( 'Current Password %s', 'buddypress' ), '<span>' . esc_html__( '(required to update email or change current password)', 'buddypress' ) . '</span>' ); ?></label>
     23        <label for="pwd">
     24            <?php
     25            /* translators: %s: email requirement explanations */
     26            printf( esc_html__( 'Current Password %s', 'buddypress' ), '<span>' . esc_html__( '(required to update email or change current password)', 'buddypress' ) . '</span>' );
     27            ?>
     28        </label>
    2429        <input type="password" name="pwd" id="pwd" value="" size="24" class="settings-input small" <?php bp_form_field_attributes( 'password' ); ?>/> &nbsp;<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'buddypress' ); ?></a>
    2530
  • trunk/src/bp-templates/bp-nouveau/includes/activity/functions.php

    r12358 r12595  
    9090            'user_domain'   => bp_loggedin_user_domain(),
    9191            'avatar_alt'    => sprintf(
    92                 /* translators: %s = member name */
     92                /* translators: %s: member name */
    9393                __( 'Profile photo of %s', 'buddypress' ),
    9494                $user_displayname
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r12537 r12595  
    10401040        'member-wp-profile-none' => array(
    10411041            'type'    => 'info',
     1042            /* translators: %s: member name */
    10421043            'message' => __( '%s did not save any profile information yet.', 'buddypress' ),
    10431044        ),
  • trunk/src/bp-templates/bp-nouveau/includes/groups/functions.php

    r12439 r12595  
    159159        'invites_form_reset' => __( 'Group invitations cleared. Please use one of the available tabs to select members to invite.', 'buddypress' ),
    160160        'invites_sending'    => __( 'Sending group invitations. Please wait.', 'buddypress' ),
     161
     162        /* translators: %s: member name */
    161163        'removeUserInvite'   => __( 'Cancel invitation %s', 'buddypress' ),
    162164        'group_id'           => ! bp_get_current_group_id() ? bp_get_new_group_id() : bp_get_current_group_id(),
  • trunk/src/bp-templates/bp-nouveau/includes/messages/functions.php

    r12184 r12595  
    113113        'toOthers'      => array(
    114114            'one'  => __( '(and 1 other)', 'buddypress' ),
     115
     116            /* translators: %s: number of message recipients */
    115117            'more' => __( '(and %d others)', 'buddypress' ),
    116118        ),
Note: See TracChangeset for help on using the changeset viewer.