Make "Current Teams" translatable

This commit is contained in:
Brian Miyaji
2014-10-19 23:26:02 +11:00
parent e744ccbbb0
commit 51f3cd6f49
2 changed files with 5 additions and 3 deletions

View File

@@ -603,12 +603,12 @@ if ( !function_exists( 'sp_dropdown_pages' ) ) {
if ( $args['show_option_blank'] ):
printf( '<option value=""></option>' );
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'] ):
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;
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'] ) ):
foreach( $args['prepend_options'] as $slug => $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(
__( 'Article', 'sportspress' ),
__( 'Current Team', 'sportspress' ),
__( 'Current Teams', 'sportspress' ),
__( 'Date', 'sportspress' ),
__( 'Details', 'sportspress' ),
__( 'Event', 'sportspress' ),

View File

@@ -3,6 +3,7 @@
<key name="sportspress_text">
<key name="Article"/>
<key name="Current Team"/>
<key name="Current Teams"/>
<key name="Date"/>
<key name="Details"/>
<key name="Event"/>