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',
|
'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' ),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
@@ -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':
|
||||||
|
|||||||
Reference in New Issue
Block a user