Skip to:
Content

BuddyPress.org


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

BP Blogs: add missing /* translators */ comments

See #8260

File:
1 edited

Legend:

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

    r12496 r12587  
    243243                $message = __( 'Viewing 1 site', 'buddypress' );
    244244        } else {
     245                /* translators: 1: the site from number. 2: the site to number. 3: the total number of sites. */
    245246                $message = sprintf( _n( 'Viewing %1$s - %2$s of %3$s site', 'Viewing %1$s - %2$s of %3$s sites', $blogs_template->total_blog_count, 'buddypress' ), $from_num, $to_num, $total );
    246247        }
    … …  
    358359                        'class'   => 'avatar',
    359360                        'id'      => false,
    360                         'alt'     => sprintf( __( 'Profile picture of site author %s', 'buddypress' ), esc_attr( $author_displayname ) ),
     361                        'alt'     => sprintf(
     362                                /* translators: %s: the author display name */
     363                                __( 'Profile picture of site author %s', 'buddypress' ),
     364                                esc_attr( $author_displayname )
     365                        ),
    361366                        'no_grav' => false,
    362367                ) );
    … …  
    649654                // Backwards compatibility for anyone forcing a 'true' active_format.
    650655                if ( true === $r['active_format'] ) {
    651                         $r['active_format'] = __( 'active %s', 'buddypress' );
     656                        /* translators: %s: human time diff of the last time the site was active. */
     657                        $r['active_format'] = _x( 'active %s', 'last time the site was active', 'buddypress' );
    652658                }
    653659
    … …  
    714720                                 * @param string $retval Title of the latest post.
    715721                                 */
    716                                 $retval = sprintf( __( 'Latest Post: %s', 'buddypress' ), '<a href="' . $blogs_template->blog->latest_post->guid . '">' . apply_filters( 'the_title', $retval ) . '</a>' );
     722                                $retval = sprintf(
     723                                        /* translators: %s: the title of the latest post */
     724                                        __( 'Latest Post: %s', 'buddypress' ),
     725                                        '<a href="' . $blogs_template->blog->latest_post->guid . '">' . apply_filters( 'the_title', $retval ) . '</a>'
     726                                );
    717727                        } else {
    718728
    … …  
    12521262                        '%s %s',
    12531263                        sprintf(
     1264                                /* translators: %s: the link of the new site */
    12541265                                __( '%s is your new site.', 'buddypress' ),
    12551266                                sprintf( '<a href="%s">%s</a>', esc_url( $blog_url ), esc_url( $blog_url ) )
    … …  
    13101321
    13111322        <ul class="content-header-nav">
    1312                 <li<?php if ( bp_is_current_action( 'my-blogs'        ) || !bp_current_action() ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_blogs_slug() . '/my-blogs'        ); ?>"><?php printf( __( "%s's Sites", 'buddypress' ),           bp_get_displayed_user_fullname() ); ?></a></li>
    1313                 <li<?php if ( bp_is_current_action( 'recent-posts'    )                         ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_blogs_slug() . '/recent-posts'    ); ?>"><?php printf( __( "%s's Recent Posts", 'buddypress' ),    bp_get_displayed_user_fullname() ); ?></a></li>
    1314                 <li<?php if ( bp_is_current_action( 'recent-comments' )                         ) : ?> class="current"<?php endif; ?>><a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_blogs_slug() . '/recent-comments' ); ?>"><?php printf( __( "%s's Recent Comments", 'buddypress' ), bp_get_displayed_user_fullname() ); ?></a></li>
     1323                <li<?php if ( bp_is_current_action( 'my-blogs' ) || !bp_current_action() ) : ?> class="current"<?php endif; ?>>
     1324                        <a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_blogs_slug() . '/my-blogs' ); ?>">
     1325                                <?php
     1326                                /* translators: %s: the User Display Name */
     1327                                printf( __( "%s's Sites", 'buddypress' ), bp_get_displayed_user_fullname() );
     1328                                ?>
     1329                        </a>
     1330                </li>
     1331                <li<?php if ( bp_is_current_action( 'recent-posts' ) ) : ?> class="current"<?php endif; ?>>
     1332                        <a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_blogs_slug() . '/recent-posts'    ); ?>">
     1333                                <?php
     1334                                /* translators: %s: the User Display Name */
     1335                                printf( __( "%s's Recent Posts", 'buddypress' ), bp_get_displayed_user_fullname() );
     1336                                ?>
     1337                        </a>
     1338                </li>
     1339                <li<?php if ( bp_is_current_action( 'recent-comments' ) ) : ?> class="current"<?php endif; ?>>
     1340                        <a href="<?php echo trailingslashit( bp_displayed_user_domain() . bp_get_blogs_slug() . '/recent-comments' ); ?>">
     1341                                <?php
     1342                                /* translators: %s: the User Display Name */
     1343                                printf( __( "%s's Recent Comments", 'buddypress' ), bp_get_displayed_user_fullname() );
     1344                                ?>
     1345                        </a>
     1346                </li>
    13151347        </ul>
    13161348
    … …  
    15561588
    15571589                        // If blogs exist, show some formatted output.
    1558                         $r['output'] = $r['before'] . sprintf( _n( '%s site', '%s sites', $r['blogs'], 'buddypress' ), '<strong>' . $r['blogs'] . '</strong>' ) . $r['after'];
     1590                        $r['output'] = $r['before'];
     1591
     1592                        /* translators: %s: the number of blogs */
     1593                        $r['output'] .= sprintf( _n( '%s site', '%s sites', $r['blogs'], 'buddypress' ), '<strong>' . $r['blogs'] . '</strong>' );
     1594                        $r['output'] .= $r['after'];
    15591595                }
    15601596        }
Note: See TracChangeset for help on using the changeset viewer.