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

@@ -2,63 +2,98 @@
// Sports array to be populated with presets
$sportspress_sports = array();
// Localize sport names
__( 'Association Football (Soccer)', 'sportspress' );
__( 'American Football', 'sportspress' );
__( 'Australian Rules Football', 'sportspress' );
__( 'Baseball', 'sportspress' );
__( 'Basketball', 'sportspress' );
__( 'Competitive Gaming', 'sportspress' );
__( 'Cricket', 'sportspress' );
__( 'Golf', 'sportspress' );
__( 'Handball', 'sportspress' );
__( 'Hockey', 'sportspress' );
__( 'Racing', 'sportspress' );
__( 'Rugby', 'sportspress' );
__( 'Swimming', 'sportspress' );
__( 'Tennis', 'sportspress' );
__( 'Volleyball', 'sportspress' );
// Localize post titles
__( 'Appearances', 'sportspress' );
__( 'Goals', 'sportspress' );
__( 'Assists', 'sportspress' );
__( 'Yellow Cards', 'sportspress' );
__( 'Red Cards', 'sportspress' );
__( 'Height', 'sportspress' );
__( 'Weight', 'sportspress' );
// Localize post context texts
__( 'Select Logo', 'sportspress' );
__( 'Remove Logo', 'sportspress' );
__( 'Kick-off: <b>%1$s</b>', 'sportspress' );
__( 'Joined: <b>%1$s</b>', 'sportspress' );
__( 'Select Photo', 'sportspress' );
__( 'Remove Photo', 'sportspress' );
// Localize configuration formats
__( 'Integer', 'sportspress' );
__( 'Decimal', 'sportspress' );
__( 'Time', 'sportspress' );
__( 'Custom Field', 'sportspress' );
$sportspress_texts = array(
'sp_team' => array(
'Enter title here' => __( 'Team', 'sportspress' ),
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
'Set Featured Image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
'Parent' => sprintf( __( 'Parent %s', 'sportspress' ), __( 'Team', 'sportspress' ) ),
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Logo', 'sportspress' ) )
'Enter title here' => 'Team', 'sportspress',
'Set featured image' => 'Select Logo', 'sportspress',
'Set Featured Image' => 'Select Logo', 'sportspress',
'Remove featured image' => 'Remove Logo', 'sportspress',
),
'sp_event' => array(
'Enter title here' => __( '(no title)', 'sportspress' ),
'Scheduled for: <b>%1$s</b>' => __( 'Kick-off', 'sportspress' ) . ': <b>%1$s</b>',
'Published on: <b>%1$s</b>' => __( 'Kick-off', 'sportspress' ) . ': <b>%1$s</b>',
'Publish <b>immediately</b>' => __( 'Kick-off', 'sportspress' ) . ': <b>%1$s</b>'
'Enter title here' => '(no title)', 'sportspress',
'Scheduled for: <b>%1$s</b>' => 'Kick-off: <b>%1$s</b>', 'sportspress',
'Published on: <b>%1$s</b>' => 'Kick-off: <b>%1$s</b>', 'sportspress',
'Publish <b>immediately</b>' => 'Kick-off: <b>%1$s</b>', 'sportspress',
),
'sp_player' => array(
'Enter title here' => __( 'Name', 'sportspress' ),
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
'Set Featured Image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
'Scheduled for: <b>%1$s</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>',
'Published on: <b>%1$s</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>',
'Publish <b>immediately</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>'
'Enter title here' => 'Name', 'sportspress',
'Set featured image' => 'Select Photo', 'sportspress',
'Set Featured Image' => 'Select Photo', 'sportspress',
'Remove featured image' => 'Remove Photo', 'sportspress',
'Scheduled for: <b>%1$s</b>' => 'Joined: <b>%1$s</b>', 'sportspress',
'Published on: <b>%1$s</b>' => 'Joined: <b>%1$s</b>', 'sportspress',
'Publish <b>immediately</b>' => 'Joined: <b>%1$s</b>', 'sportspress',
),
'sp_staff' => array(
'Enter title here' => __( 'Name', 'sportspress' ),
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
'Set Featured Image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
'Scheduled for: <b>%1$s</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>',
'Published on: <b>%1$s</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>',
'Publish <b>immediately</b>' => __( 'Joined', 'sportspress' ) . ': <b>%1$s</b>'
'Enter title here' => 'Name', 'sportspress',
'Set featured image' => 'Select Photo', 'sportspress',
'Set Featured Image' => 'Select Photo', 'sportspress',
'Remove featured image' => 'Remove Photo', 'sportspress',
'Scheduled for: <b>%1$s</b>' => 'Joined: <b>%1$s</b>', 'sportspress',
'Published on: <b>%1$s</b>' => 'Joined: <b>%1$s</b>', 'sportspress',
'Publish <b>immediately</b>' => 'Joined: <b>%1$s</b>', 'sportspress',
),
'sp_table' => array(
'Enter title here' => '',
'Post updated. <a href=\"%s\">View post</a>' => 'test'
)
);
$sportspress_thumbnail_texts = array(
'sp_team' => array(
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Logo', 'sportspress' ) ),
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Logo', 'sportspress' ) )
'Set featured image' => 'Select Logo', 'sportspress',
'Remove featured image' => 'Remove Logo', 'sportspress',
),
'sp_player' => array(
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) )
'Set featured image' => 'Select Photo', 'sportspress',
'Remove featured image' => 'Remove Photo', 'sportspress',
),
'sp_staff' => array(
'Set featured image' => sprintf( __( 'Select %s', 'sportspress' ), __( 'Photo', 'sportspress' ) ),
'Remove featured image' => sprintf( __( 'Remove %s', 'sportspress' ), __( 'Photo', 'sportspress' ) )
)
'Set featured image' => 'Select Photo', 'sportspress',
'Remove featured image' => 'Remove Photo', 'sportspress',
),
);
$sportspress_config_formats = array(
'integer' => __( 'Integer', 'sportspress' ),
'decimal' => __( 'Decimal', 'sportspress' ),
'time' => __( 'Time', 'sportspress' ),
'custom' => __( 'Custom Field', 'sportspress' ),
'integer' => 'Integer', 'sportspress',
'decimal' => 'Decimal', 'sportspress',
'time' => 'Time', 'sportspress',
'custom' => 'Custom Field', 'sportspress',
);
?>