From 9e95bafb0af4e05934e7987bcff6a2a6cb3807c2 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 19 Jun 2014 17:51:28 +1000 Subject: [PATCH] Add context to mode select strings --- includes/admin/settings/class-sp-settings-general.php | 4 ++-- sportspress.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/admin/settings/class-sp-settings-general.php b/includes/admin/settings/class-sp-settings-general.php index 132019da..20b733c3 100644 --- a/includes/admin/settings/class-sp-settings-general.php +++ b/includes/admin/settings/class-sp-settings-general.php @@ -59,8 +59,8 @@ class SP_Settings_General extends SP_Settings_Page { 'default' => 'team', 'type' => 'select', 'options' => array( - 'team' => __( 'Team', 'sportspress' ), - 'player' => __( 'Individual', 'sportspress' ), + 'team' => _x( 'Team', 'mode select', 'sportspress' ), + 'player' => _x( 'Individual', 'mode select', 'sportspress' ), ), ), diff --git a/sportspress.php b/sportspress.php index 45c7ebc3..55545f0a 100644 --- a/sportspress.php +++ b/sportspress.php @@ -319,7 +319,7 @@ final class SportsPress { /** * Replace team strings with player if individual mode. */ - public function gettext( $translated_text, $untranslated_text, $domain ) { + public function gettext( $translated_text, $untranslated_text, $domain = 'default' ) { if ( SP()->mode == 'player' && $domain == 'sportspress' ): switch ( $untranslated_text ): case 'Teams':