Skip to:
Content

BuddyPress.org

Changeset 11790


Ignore:
Timestamp:
01/03/2018 12:51:31 PM (9 years ago)
Author:
djpaul
Message:

Templates, BP-Legacy: add translation hint for "My favorites %s" placeholder on Activity directory tabs.

Fixes #7564

File:
1 edited

Legend:

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

    r11564 r11790  
    9292                                        <?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?>
    9393
    94                                                 <li id="activity-groups"><a href="<?php echo bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/'; ?>"><?php printf( __( 'My Groups %s', 'buddypress' ), '<span>' . bp_get_total_group_count_for_user( bp_loggedin_user_id() ) . '</span>' ); ?></a></li>
     94                                                <?php
     95                                                printf(
     96                                                        '<li id="activity-groups"><a href="%1$s">%2$s</a></li>',
     97                                                        esc_url( bp_loggedin_user_domain() . bp_get_activity_slug() . '/' . bp_get_groups_slug() . '/' ),
     98                                                        sprintf(
     99                                                                /* translators: %s: total joined groups count for the current user */
     100                                                                __( 'My Groups %s', 'buddypress' ),
     101                                                                '<span>' . bp_get_total_group_count_for_user( bp_loggedin_user_id() ) . '</span>'
     102                                                        )
     103                                                );
     104                                                ?>
    95105
    96106                                        <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.