From b3bdca022ebaf479e83f36151ef4121817a3f9fc Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sat, 11 Apr 2015 01:59:21 +1000 Subject: [PATCH] Remove _n when not dependent --- .../post-types/meta-boxes/class-sp-meta-box-equation.php | 2 +- templates/player-details.php | 3 +-- templates/team-details.php | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php index fe256826..edff0290 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-equation.php @@ -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' ); diff --git a/templates/player-details.php b/templates/player-details.php index 56866443..fcd098ab 100644 --- a/templates/player-details.php +++ b/templates/player-details.php @@ -59,8 +59,7 @@ if ( $current_teams ): if ( $link_teams ) $team_name = '' . $team_name . ''; $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 ): diff --git a/templates/team-details.php b/templates/team-details.php index ec255f51..2dd53a99 100644 --- a/templates/team-details.php +++ b/templates/team-details.php @@ -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' );