Remove _n when not dependent

This commit is contained in:
Brian Miyaji
2015-04-11 01:59:21 +10:00
parent 434a991de0
commit b3bdca022e
3 changed files with 4 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ class SP_Meta_Box_Equation {
break;
case 'outcome':
$options[ 'Outcomes' ] = self::optgroup( 'sp_outcome' );
$options[ 'Outcomes' ]['$gb'] = __( 'Games Back', 'sportspress' );
$options[ 'Outcomes' ]['$gamesback'] = __( 'Games Back', 'sportspress' );
$options[ 'Outcomes' ]['$streak'] = __( 'Streak', 'sportspress' );
$options[ 'Outcomes' ]['$last5'] = __( 'Last 5', 'sportspress' );
$options[ 'Outcomes' ]['$last10'] = __( 'Last 10', 'sportspress' );

View File

@@ -59,8 +59,7 @@ if ( $current_teams ):
if ( $link_teams ) $team_name = '<a href="' . get_post_permalink( $team ) . '">' . $team_name . '</a>';
$teams[] = $team_name;
endforeach;
$label = _n( 'Current Team', 'Current Teams', count( $teams ), 'sportspress' );
$data[ $label ] = implode( ', ', $teams );
$data[ __( 'Current Team', 'sportspress' ) ] = implode( ', ', $teams );
endif;
if ( $past_teams ):

View File

@@ -21,7 +21,7 @@ if ( $terms ):
foreach ( $terms as $term ):
$leagues[] = $term->name;
endforeach;
$data[ _n( 'Competition', 'Competitions', sizeof( $leagues ), 'sportspress' ) ] = implode( ', ', $leagues );
$data[ __( 'Competitions', 'sportspress' ) ] = implode( ', ', $leagues );
endif;
$terms = get_the_terms( $id, 'sp_season' );
@@ -30,7 +30,7 @@ if ( $terms ):
foreach ( $terms as $term ):
$seasons[] = $term->name;
endforeach;
$data[ _n( 'Season', 'Seasons', sizeof( $seasons ), 'sportspress' ) ] = implode( ', ', $seasons );
$data[ __( 'Seasons', 'sportspress' ) ] = implode( ', ', $seasons );
endif;
$terms = get_the_terms( $id, 'sp_venue' );