WordPress.org

Making WordPress.org


Ignore:
Timestamp:
03/26/2019 05:17:55 PM (6 months ago)
Author:
vedjain
Message:

WordCamp: Remove large chunks of HTML to make it translatable

Some strings in wordcamp-base-v2 have large chunks of HTML that doesn't need to be translated and looks like a remnant of the older themes wordcamp-base-v2 was based on.

props obenland
fixes #2886

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/themes/wordcamp-base-v2/inc/template-tags.php

    r3275 r8532  
    114114 */
    115115function wcbs_posted_on() {
    116     printf( __( 'Posted on <a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> by <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'wordcamporg' ),
    117         esc_url( get_permalink() ),
    118         esc_attr( get_the_time() ),
    119         esc_attr( get_the_date( 'c' ) ),
    120         esc_html( get_the_date() ),
    121         esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    122         esc_attr( sprintf( __( 'View all posts by %s', 'wordcamporg' ), get_the_author() ) ),
    123         esc_html( get_the_author() )
     116    /* translators: 1: post date, 2: post author link */
     117    printf( __( 'Posted on %1$s <span class="byline">by %2$s</span>', 'wordcamporg' ),
     118        sprintf( '<a href="%1$s" rel="bookmark"><time class="entry-date" datetime="%2$s" pubdate>%3$s</time></a>',
     119            esc_url( get_permalink() ),
     120            esc_attr( get_the_date( 'c' ) ),
     121            esc_html( get_the_date() )
     122        ),
     123        sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" rel="author">%2$s</a></span>',
     124            esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
     125            esc_html( get_the_author() )
     126        )
    124127    );
    125128}
Note: See TracChangeset for help on using the changeset viewer.