Use gettext filter to modify fronted text

This commit is contained in:
Brian Miyaji
2014-06-13 23:21:59 +10:00
parent 89ce3ee84e
commit 5ba33fd629
21 changed files with 90 additions and 124 deletions

View File

@@ -17,19 +17,19 @@ $time = get_the_time( get_option('time_format'), $id );
$leagues = get_the_terms( $id, 'sp_league' );
$seasons = get_the_terms( $id, 'sp_season' );
$data = array( SP()->text->string('Date') => $date, SP()->text->string('Time') => $time );
$data = array( __( 'Date', 'sportspress' ) => $date, __( 'Time', 'sportspress' ) => $time );
if ( $leagues ):
$league = array_pop( $leagues );
$data[ SP()->text->string('League') ] = $league->name;
$data[ __( 'League', 'sportspress' ) ] = $league->name;
endif;
if ( $seasons ):
$season = array_pop( $seasons );
$data[ SP()->text->string('Season') ] = $season->name;
$data[ __( 'Season', 'sportspress' ) ] = $season->name;
endif;
?>
<h3><?php echo SP()->text->string('Details'); ?></h3>
<h3><?php echo __( 'Details', 'sportspress' ); ?></h3>
<div class="sp-table-wrapper sp-scrollable-table-wrapper">
<table class="sp-event-details sp-data-table">
<thead>