Make "Current Teams" translatable
This commit is contained in:
@@ -603,12 +603,12 @@ if ( !function_exists( 'sp_dropdown_pages' ) ) {
|
|||||||
if ( $args['show_option_blank'] ):
|
if ( $args['show_option_blank'] ):
|
||||||
printf( '<option value=""></option>' );
|
printf( '<option value=""></option>' );
|
||||||
endif;
|
endif;
|
||||||
if ( $args['show_option_all'] ):
|
|
||||||
printf( '<option value="%s" %s>%s</option>', $args['option_all_value'], selected( $selected, $args['option_all_value'], false ), $args['show_option_all'] );
|
|
||||||
endif;
|
|
||||||
if ( $args['show_option_none'] ):
|
if ( $args['show_option_none'] ):
|
||||||
printf( '<option value="%s" %s>%s</option>', $args['option_none_value'], selected( $selected, $args['option_none_value'], false ), ( $args['show_option_none'] === true ? '' : $args['show_option_none'] ) );
|
printf( '<option value="%s" %s>%s</option>', $args['option_none_value'], selected( $selected, $args['option_none_value'], false ), ( $args['show_option_none'] === true ? '' : $args['show_option_none'] ) );
|
||||||
endif;
|
endif;
|
||||||
|
if ( $args['show_option_all'] ):
|
||||||
|
printf( '<option value="%s" %s>%s</option>', $args['option_all_value'], selected( $selected, $args['option_all_value'], false ), $args['show_option_all'] );
|
||||||
|
endif;
|
||||||
if ( $args['prepend_options'] && is_array( $args['prepend_options'] ) ):
|
if ( $args['prepend_options'] && is_array( $args['prepend_options'] ) ):
|
||||||
foreach( $args['prepend_options'] as $slug => $label ):
|
foreach( $args['prepend_options'] as $slug => $label ):
|
||||||
printf( '<option value="%s" %s>%s</option>', $slug, selected( $selected, $slug, false ), $label );
|
printf( '<option value="%s" %s>%s</option>', $slug, selected( $selected, $slug, false ), $label );
|
||||||
@@ -1085,6 +1085,7 @@ function sp_get_text_options() {
|
|||||||
$strings = apply_filters( 'sportspress_text', array(
|
$strings = apply_filters( 'sportspress_text', array(
|
||||||
__( 'Article', 'sportspress' ),
|
__( 'Article', 'sportspress' ),
|
||||||
__( 'Current Team', 'sportspress' ),
|
__( 'Current Team', 'sportspress' ),
|
||||||
|
__( 'Current Teams', 'sportspress' ),
|
||||||
__( 'Date', 'sportspress' ),
|
__( 'Date', 'sportspress' ),
|
||||||
__( 'Details', 'sportspress' ),
|
__( 'Details', 'sportspress' ),
|
||||||
__( 'Event', 'sportspress' ),
|
__( 'Event', 'sportspress' ),
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
<key name="sportspress_text">
|
<key name="sportspress_text">
|
||||||
<key name="Article"/>
|
<key name="Article"/>
|
||||||
<key name="Current Team"/>
|
<key name="Current Team"/>
|
||||||
|
<key name="Current Teams"/>
|
||||||
<key name="Date"/>
|
<key name="Date"/>
|
||||||
<key name="Details"/>
|
<key name="Details"/>
|
||||||
<key name="Event"/>
|
<key name="Event"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user