Skip to:
Content

BuddyPress.org


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

BP Templates: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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; ?>
Note: See TracChangeset for help on using the changeset viewer.