Add context to mode select strings
This commit is contained in:
@@ -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' ),
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user