Add context to mode select strings

This commit is contained in:
Brian Miyaji
2014-06-19 17:51:28 +10:00
parent 33069f395d
commit 9e95bafb0a
2 changed files with 3 additions and 3 deletions

View File

@@ -59,8 +59,8 @@ class SP_Settings_General extends SP_Settings_Page {
'default' => 'team', 'default' => 'team',
'type' => 'select', 'type' => 'select',
'options' => array( 'options' => array(
'team' => __( 'Team', 'sportspress' ), 'team' => _x( 'Team', 'mode select', 'sportspress' ),
'player' => __( 'Individual', 'sportspress' ), 'player' => _x( 'Individual', 'mode select', 'sportspress' ),
), ),
), ),

View File

@@ -319,7 +319,7 @@ final class SportsPress {
/** /**
* Replace team strings with player if individual mode. * 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' ): if ( SP()->mode == 'player' && $domain == 'sportspress' ):
switch ( $untranslated_text ): switch ( $untranslated_text ):
case 'Teams': case 'Teams':