echo __ => _e

This commit is contained in:
Brian Miyaji
2014-06-23 16:59:28 +10:00
parent 55e3dbb3be
commit 10ad135093
10 changed files with 13 additions and 14 deletions

View File

@@ -359,7 +359,7 @@ if ( class_exists( 'WP_Importer' ) ) {
else:
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
echo __( 'The CSV is invalid.', 'sportspress' ) . '</p>';
_e( 'The CSV is invalid.', 'sportspress' ) . '</p>';
$this->footer();
die();

View File

@@ -126,7 +126,7 @@ if ( class_exists( 'WP_Importer' ) ) {
else:
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
echo __( 'The CSV is invalid.', 'sportspress' ) . '</p>';
_e( 'The CSV is invalid.', 'sportspress' ) . '</p>';
$this->footer();
die();

View File

@@ -119,7 +119,7 @@ if ( class_exists( 'WP_Importer' ) ) {
else:
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
echo __( 'The CSV is invalid.', 'sportspress' ) . '</p>';
_e( 'The CSV is invalid.', 'sportspress' ) . '</p>';
$this->footer();
die();

View File

@@ -83,7 +83,7 @@ if ( class_exists( 'WP_Importer' ) ) {
else:
echo '<p><strong>' . __( 'Sorry, there has been an error.', 'sportspress' ) . '</strong><br />';
echo __( 'The CSV is invalid.', 'sportspress' ) . '</p>';
_e( 'The CSV is invalid.', 'sportspress' ) . '</p>';
$this->footer();
die();

View File

@@ -34,7 +34,7 @@
</tr>
<tr>
<td><?php _e( 'WP Multisite Enabled','sportspress' ); ?>:</td>
<td><?php if ( is_multisite() ) echo __( 'Yes', 'sportspress' ); else echo __( 'No', 'sportspress' ); ?></td>
<td><?php if ( is_multisite() ) _e( 'Yes', 'sportspress' ); else _e( 'No', 'sportspress' ); ?></td>
</tr>
<tr>
<td><?php _e( 'Web Server Info','sportspress' ); ?>:</td>

View File

@@ -531,7 +531,7 @@ class SP_Install {
if ( preg_match( $regexp, $response['body'], $matches ) ) {
$changelog = (array) preg_split( '~[\r\n]+~', trim( $matches[2] ) );
echo __( 'What\'s new:', 'sportspress' ) . '<div style="font-weight: normal;">';
_e( 'What\'s new:', 'sportspress' ) . '<div style="font-weight: normal;">';
$ul = false;

View File

@@ -61,9 +61,9 @@ if ( ! isset( $post ) ) return;
$s = $interval->invert ? 0 : $interval->s;
?>
<p class="countdown sp-countdown<?php if ( $days >= 10 ): ?> long-countdown<?php endif; ?>"><time datetime="<?php echo $post->post_date; ?>"<?php if ( $live ): ?> data-countdown="<?php echo str_replace( '-', '/', $post->post_date ); ?>"<?php endif; ?>>
<span><?php echo sprintf( '%02s', $days ); ?> <small><?php echo __( 'days', 'sportspress' ); ?></small></span>
<span><?php echo sprintf( '%02s', $h ); ?> <small><?php echo __( 'hrs', 'sportspress' ); ?></small></span>
<span><?php echo sprintf( '%02s', $i ); ?> <small><?php echo __( 'mins', 'sportspress' ); ?></small></span>
<span><?php echo sprintf( '%02s', $s ); ?> <small><?php echo __( 'secs', 'sportspress' ); ?></small></span>
<span><?php echo sprintf( '%02s', $days ); ?> <small><?php _e( 'days', 'sportspress' ); ?></small></span>
<span><?php echo sprintf( '%02s', $h ); ?> <small><?php _e( 'hrs', 'sportspress' ); ?></small></span>
<span><?php echo sprintf( '%02s', $i ); ?> <small><?php _e( 'mins', 'sportspress' ); ?></small></span>
<span><?php echo sprintf( '%02s', $s ); ?> <small><?php _e( 'secs', 'sportspress' ); ?></small></span>
</time></p>
</div>

View File

@@ -29,7 +29,7 @@ if ( $seasons ):
$data[ __( 'Season', 'sportspress' ) ] = $season->name;
endif;
?>
<h3><?php echo __( 'Details', 'sportspress' ); ?></h3>
<h3><?php _e( 'Details', 'sportspress' ); ?></h3>
<div class="sp-table-wrapper sp-scrollable-table-wrapper">
<table class="sp-event-details sp-data-table">
<thead>

View File

@@ -163,9 +163,9 @@ if ( isset( $columns ) )
endif;
if ( $event->post_content !== null ):
if ( $event->post_status == 'publish' ):
echo __( 'Recap', 'sportspress' );
_e( 'Recap', 'sportspress' );
else:
echo __( 'Preview', 'sportspress' );
_e( 'Preview', 'sportspress' );
endif;
endif;

View File

@@ -38,7 +38,6 @@ if ( isset( $columns ) && null !== $columns ):
endif;
$data = $list->data();
// The first row should be column labels
$labels = $data[0];