Conform strings
This commit is contained in:
@@ -131,7 +131,7 @@ function sportspress_event_team_meta( $post ) {
|
|||||||
'post_type' => 'sp_team',
|
'post_type' => 'sp_team',
|
||||||
'name' => 'sp_team_selector',
|
'name' => 'sp_team_selector',
|
||||||
'class' => 'sportspress-pages',
|
'class' => 'sportspress-pages',
|
||||||
'show_option_none' => '(' . sprintf( __( 'Select', 'sportspress' ) . ')', 'Team' ),
|
'show_option_none' => __( '— Select —', 'sportspress' ),
|
||||||
'option_none_value' => '0'
|
'option_none_value' => '0'
|
||||||
);
|
);
|
||||||
wp_dropdown_pages( $args );
|
wp_dropdown_pages( $args );
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ if ( !function_exists( 'sportspress_events_calendar' ) ) {
|
|||||||
<tr>';
|
<tr>';
|
||||||
|
|
||||||
if ( $previous ) {
|
if ( $previous ) {
|
||||||
$calendar_output .= "\n\t\t".'<td colspan="3" id="prev"><a data-tooltip data-options="disable_for_touch:true" class="has-tooltip tip-right" href="' . add_query_arg( array( 'sp_year' => $previous->year, 'sp_month' => $previous->month ) ) . '" title="' . esc_attr( sprintf(__('%1$s %2$s', 'calendar caption', 'sportspress'), $wp_locale->get_month($previous->month), date('Y', mktime(0, 0 , 0, $previous->month, 1, $previous->year)))) . '">« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '</a></td>';
|
$calendar_output .= "\n\t\t".'<td colspan="3" id="prev"><a data-tooltip data-options="disable_for_touch:true" class="has-tooltip tip-right" href="' . add_query_arg( array( 'sp_year' => $previous->year, 'sp_month' => $previous->month ) ) . '" title="' . esc_attr( sprintf(_x('%1$s %2$s', 'calendar caption', 'sportspress'), $wp_locale->get_month($previous->month), date('Y', mktime(0, 0 , 0, $previous->month, 1, $previous->year)))) . '">« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '</a></td>';
|
||||||
} else {
|
} else {
|
||||||
$calendar_output .= "\n\t\t".'<td colspan="3" id="prev" class="pad"> </td>';
|
$calendar_output .= "\n\t\t".'<td colspan="3" id="prev" class="pad"> </td>';
|
||||||
}
|
}
|
||||||
@@ -88,7 +88,7 @@ if ( !function_exists( 'sportspress_events_calendar' ) ) {
|
|||||||
$calendar_output .= "\n\t\t".'<td class="pad"> </td>';
|
$calendar_output .= "\n\t\t".'<td class="pad"> </td>';
|
||||||
|
|
||||||
if ( $next ) {
|
if ( $next ) {
|
||||||
$calendar_output .= "\n\t\t".'<td colspan="3" id="next"><a data-tooltip data-options="disable_for_touch:true" class="has-tooltip tip-left" href="' . add_query_arg( array( 'sp_year' => $next->year, 'sp_month' => $next->month ) ) . '" title="' . esc_attr( sprintf(__('%1$s %2$s', 'calendar caption', 'sportspress'), $wp_locale->get_month($next->month), date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) ) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>';
|
$calendar_output .= "\n\t\t".'<td colspan="3" id="next"><a data-tooltip data-options="disable_for_touch:true" class="has-tooltip tip-left" href="' . add_query_arg( array( 'sp_year' => $next->year, 'sp_month' => $next->month ) ) . '" title="' . esc_attr( sprintf(_x('%1$s %2$s', 'calendar caption', 'sportspress'), $wp_locale->get_month($next->month), date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) ) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>';
|
||||||
} else {
|
} else {
|
||||||
$calendar_output .= "\n\t\t".'<td colspan="3" id="next" class="pad"> </td>';
|
$calendar_output .= "\n\t\t".'<td colspan="3" id="next" class="pad"> </td>';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,9 +113,9 @@ if ( !function_exists( 'sportspress_get_post_views' ) ) {
|
|||||||
add_post_meta( $post_id, $count_key, '0' );
|
add_post_meta( $post_id, $count_key, '0' );
|
||||||
endif;
|
endif;
|
||||||
if ( isset( $views ) && $views == 1 )
|
if ( isset( $views ) && $views == 1 )
|
||||||
return __( '1 View', 'sportspress' );
|
return __( '1 view', 'sportspress' );
|
||||||
else
|
else
|
||||||
return sprintf( __( '%s Views', 'sportspress' ), $count );
|
return sprintf( __( '%s views', 'sportspress' ), $count );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -520,7 +520,7 @@ if ( !function_exists( 'sportspress_equation_selector' ) ) {
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
<select name="sp_equation[]">
|
<select name="sp_equation[]">
|
||||||
<option value="">(<?php _e( 'Select', 'sportspress' ); ?>)</option>
|
<option value="">(<?php _e( '— Select —', 'sportspress' ); ?>)</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
foreach ( $options as $label => $option ):
|
foreach ( $options as $label => $option ):
|
||||||
@@ -834,7 +834,7 @@ if ( !function_exists( 'sportspress_edit_player_statistics_table' ) ) {
|
|||||||
$args = array(
|
$args = array(
|
||||||
'post_type' => 'sp_team',
|
'post_type' => 'sp_team',
|
||||||
'name' => 'sp_leagues[' . $league_id . '][' . $div_id . ']',
|
'name' => 'sp_leagues[' . $league_id . '][' . $div_id . ']',
|
||||||
'show_option_none' => __( '-- Not Set --', 'sportspress' ),
|
'show_option_none' => __( '-- Not set --', 'sportspress' ),
|
||||||
'sort_order' => 'ASC',
|
'sort_order' => 'ASC',
|
||||||
'sort_column' => 'menu_order',
|
'sort_column' => 'menu_order',
|
||||||
'selected' => $value,
|
'selected' => $value,
|
||||||
|
|||||||
Reference in New Issue
Block a user