Translate strings loaded before parser

This commit is contained in:
Brian Miyaji
2014-01-06 17:04:50 +11:00
parent ffb98dc686
commit a68190f320
17 changed files with 336 additions and 398 deletions

View File

@@ -106,7 +106,7 @@ if ( !function_exists( 'sp_get_post_format' ) ) {
$format = get_post_meta ( $post_id, 'sp_format', true );
if ( $format ):
global $sportspress_config_formats;
$format_str = sp_array_value( $sportspress_config_formats, $format, '—' );
$format_str = __( sp_array_value( $sportspress_config_formats, $format, '—' ), 'sportspress' );
if ( in_array( $format, array( 'decimal', 'time' ) ) ):
return $format_str . ' (' . sp_get_post_precision( $post_id ) . ')';
else: