Conform strings

This commit is contained in:
Brian Miyaji
2014-02-08 23:10:06 +11:00
parent b082f8814d
commit 19755385d9
3 changed files with 7 additions and 7 deletions

View File

@@ -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 );

View File

@@ -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)))) . '">&laquo; ' . $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)))) . '">&laquo; ' . $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">&nbsp;</td>'; $calendar_output .= "\n\t\t".'<td colspan="3" id="prev" class="pad">&nbsp;</td>';
} }
@@ -88,7 +88,7 @@ if ( !function_exists( 'sportspress_events_calendar' ) ) {
$calendar_output .= "\n\t\t".'<td class="pad">&nbsp;</td>'; $calendar_output .= "\n\t\t".'<td class="pad">&nbsp;</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)) . ' &raquo;</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)) . ' &raquo;</a></td>';
} else { } else {
$calendar_output .= "\n\t\t".'<td colspan="3" id="next" class="pad">&nbsp;</td>'; $calendar_output .= "\n\t\t".'<td colspan="3" id="next" class="pad">&nbsp;</td>';
} }

View File

@@ -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( '&mdash; Select &mdash;', '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,