Making WordPress.org


Ignore:
Timestamp:
01/26/2016 11:41:27 PM (9 years ago)
Author:
coffee2code
Message:

W.org Showcase: Pass all strings through i18n functions.

Props ramiy, coffee2code.
Fixes #1507.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php

    r1474 r2376  
    11<?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?>
    2 <p><?php _e('Enter your password to view comments.'); ?></p>
     2<p><?php _e( 'Enter your password to view comments.', 'wporg-showcase' ); ?></p>
    33<?php return; endif; ?>
    44
    55<?php if ( is_single() ) : ?>
    6 <div class="nextprev"><span class="prev"><?php previous_post('&laquo; %', '');?></span><span class="next"><?php next_post('% &raquo;', ''); ?></span><div class="clear"></div></div>
     6<div class="nextprev"><span class="prev"><?php previous_post( __( '&laquo; %', 'wporg-showcase' ), '');?></span><span class="next"><?php next_post( __( '% &raquo;', 'wporg-showcase' ), ''); ?></span><div class="clear"></div></div>
    77<?php endif; ?>
    88
    99<?php if ( $comments ) : ?>
    10 <h2 class="fancy"><?php comments_number(__('No Pings'), __('1 Ping'), __('% Pings')); ?></h2>
     10<h2 class="fancy"><?php comments_number( __( 'No Pings', 'wporg-showcase' ), __( '1 Ping', 'wporg-showcase' ), __( '% Pings', 'wporg-showcase' ) ); ?></h2>
    1111<ol id="comments">
    1212
     
    1414    <li id="comment-<?php comment_ID() ?>" <?php if ($i % 2) echo "class='altc'"; ?>>
    1515    <?php comment_text() ?>
    16     <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> from <?php comment_author_link() ?> on <?php comment_date() ?></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p>
     16    <p><cite><?php printf(
     17        _x( '%1$s from %2$s on %3$s', '{comment type} from {comment author link} on {comment date}', 'wporg-showcase' ),
     18        comment_type( __( 'Comment', 'wporg-showcase' ), __( 'Trackback', 'wporg-showcase' ), __( 'Pingback', 'wporg-showcase' ) ),
     19        comment_author_link(),
     20        comment_date()
     21    ); ?></cite> <?php edit_comment_link( __( 'Edit This', 'wporg-showcase' ), ' |' ); ?></p>
    1722    </li>
    1823
Note: See TracChangeset for help on using the changeset viewer.