Making WordPress.org

Changeset 6366


Ignore:
Timestamp:
01/12/2018 03:57:28 AM (7 years ago)
Author:
dd32
Message:

BuddyPress.org & bbPress.org: User numbered placeholders in translated strings.

Props SergeyBiryukov, afzalmultani.
Fixes #3009.

Location:
sites/trunk/buddypress.org/public_html/wp-content/themes
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/archive.php

    r442 r6366  
    22<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    33            <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    4             <cite><?php printf( __( 'Published on %s by %s', 'bbporg' ), get_the_time( 'F jS, Y' ), get_the_author_link() ); ?></cite>
     4            <cite><?php
     5                /* translators: 1: post date, 2: post author */
     6                printf( __( 'Published on %1$s by %2$s', 'bborg' ),
     7                    get_the_time( 'F jS, Y' ),
     8                    get_the_author_link()
     9                );
     10            ?></cite>
    511            <div class="single-post archive" id="post-<?php the_ID(); ?>"><?php the_excerpt(); ?></div>
    612<?php endwhile;  else : ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/index.php

    r442 r6366  
    22<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    33            <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    4             <cite><?php printf( __( 'Published on %s by %s', 'bbporg' ), get_the_time( 'F jS, Y' ), get_the_author_link() ); ?></cite>
     4            <cite><?php
     5                /* translators: 1: post date, 2: post author */
     6                printf( __( 'Published on %1$s by %2$s', 'bborg' ),
     7                    get_the_time( 'F jS, Y' ),
     8                    get_the_author_link()
     9                );
     10            ?></cite>
    511            <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_content( __( 'Read more &rarr;' ) ); ?></div>
    612<?php endwhile; if ( get_next_posts_link() ) : ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/single.php

    r442 r6366  
    22<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    33    <h3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
    4     <cite><?php printf( __( 'Published on %1$s by %2$s', 'bborg' ), get_the_time( 'F jS, Y' ), get_the_author_link() ) ?></cite>
     4    <cite><?php
     5        /* translators: 1: post date, 2: post author */
     6        printf( __( 'Published on %1$s by %2$s', 'bborg' ),
     7            get_the_time( 'F jS, Y' ),
     8            get_the_author_link()
     9        );
     10    ?></cite>
    511    <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_content( __( 'Read more &rarr;' ) ); ?></div>
    612
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-bbpress-org/index.php

    r442 r6366  
    22<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    33            <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    4             <cite><?php printf( __( 'Published on %s by %s', 'bbporg' ), get_the_time( 'F jS, Y' ), get_the_author_link() ); ?></cite>
     4            <cite><?php
     5                /* translators: 1: post date, 2: post author */
     6                printf( __( 'Published on %1$s by %2$s', 'bbporg' ),
     7                    get_the_time( 'F jS, Y' ),
     8                    get_the_author_link()
     9                );
     10            ?></cite>
    511            <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_excerpt(); ?></div>
    612            <?php $post_authors[get_the_author_meta( 'ID' )] += 1; ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/codex-buddypress-org/index.php

    r442 r6366  
    22<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    33            <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    4             <cite><?php printf( __( 'Published on %s by %s', 'bporg' ), get_the_time( 'F jS, Y' ), get_the_author_link() ); ?></cite>
     4            <cite><?php
     5                /* translators: 1: post date, 2: post author */
     6                printf( __( 'Published on %1$s by %2$s', 'bporg' ),
     7                    get_the_time( 'F jS, Y' ),
     8                    get_the_author_link()
     9                );
     10            ?></cite>
    511            <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_excerpt(); ?></div>
    612            <?php $post_authors[get_the_author_meta( 'ID' )] += 1; ?>
Note: See TracChangeset for help on using the changeset viewer.