diff --git a/admin/presets/baseball.php b/admin/presets/baseball.php index cf22f13d..d9a480e6 100644 --- a/admin/presets/baseball.php +++ b/admin/presets/baseball.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['baseball'] = array( - 'name' => __( 'Baseball', 'sportspress' ), + 'name' => 'Baseball', 'posts' => array( // Columns 'sp_column' => array( diff --git a/admin/presets/basketball.php b/admin/presets/basketball.php index fe845471..7871a8c4 100644 --- a/admin/presets/basketball.php +++ b/admin/presets/basketball.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['basketball'] = array( - 'name' => __( 'Basketball', 'sportspress' ), + 'name' => 'Basketball', 'posts' => array( // Table Columns 'sp_column' => array( diff --git a/admin/presets/cricket.php b/admin/presets/cricket.php index 31738b78..b4628c58 100644 --- a/admin/presets/cricket.php +++ b/admin/presets/cricket.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['cricket'] = array( - 'name' => __( 'Cricket', 'sportspress' ), + 'name' => 'Cricket', 'posts' => array( // Table Columns 'sp_column' => array( diff --git a/admin/presets/football.php b/admin/presets/football.php index 009ca158..224c7ed7 100644 --- a/admin/presets/football.php +++ b/admin/presets/football.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['football'] = array( - 'name' => __( 'American Football', 'sportspress' ), + 'name' => 'American Football', 'posts' => array( // Table Columns 'sp_column' => array( diff --git a/admin/presets/footy.php b/admin/presets/footy.php index 6de7e9eb..b966029f 100644 --- a/admin/presets/footy.php +++ b/admin/presets/footy.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['footy'] = array( - 'name' => __( 'Australian Rules Football', 'sportspress' ), + 'name' => 'Australian Rules Football', 'posts' => array( // Table Columns 'sp_column' => array( diff --git a/admin/presets/gaming.php b/admin/presets/gaming.php index c4ba85f9..25423019 100644 --- a/admin/presets/gaming.php +++ b/admin/presets/gaming.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['gaming'] = array( - 'name' => __( 'Competitive Gaming', 'sportspress' ), + 'name' => 'Competitive Gaming', 'posts' => array( // Table Columns 'sp_column' => array( diff --git a/admin/presets/golf.php b/admin/presets/golf.php index d045806e..a4dd2875 100644 --- a/admin/presets/golf.php +++ b/admin/presets/golf.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['golf'] = array( - 'name' => __( 'Golf', 'sportspress' ), + 'name' => 'Golf', 'posts' => array( // Table Columns 'sp_column' => array( @@ -10,7 +10,7 @@ $sportspress_sports['golf'] = array( // Statistics 'sp_statistic' => array( array( - 'post_title' => __( 'Events', 'sportspress' ), + 'post_title' => 'Events', 'post_name' => 'events', 'meta' => array( 'sp_equation' => '$eventsplayed', @@ -24,7 +24,7 @@ $sportspress_sports['golf'] = array( ), ), array( - 'post_title' => __( 'Total', 'sportspress' ), + 'post_title' => 'Total', 'post_name' => 'total', 'meta' => array( 'sp_equation' => '$ptsfor', diff --git a/admin/presets/hockey.php b/admin/presets/hockey.php index f70f94e9..d4c88bd3 100644 --- a/admin/presets/hockey.php +++ b/admin/presets/hockey.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['hockey'] = array( - 'name' => __( 'Hockey', 'sportspress' ), + 'name' => 'Hockey', 'posts' => array( // Table Columns 'sp_column' => array( diff --git a/admin/presets/racing.php b/admin/presets/racing.php index f06515b9..30989cad 100644 --- a/admin/presets/racing.php +++ b/admin/presets/racing.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['racing'] = array( - 'name' => __( 'Racing', 'sportspress' ), + 'name' => 'Racing', 'posts' => array( // Table Columns 'sp_column' => array( diff --git a/admin/presets/rugby.php b/admin/presets/rugby.php index a4fa217b..9c285021 100644 --- a/admin/presets/rugby.php +++ b/admin/presets/rugby.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['rugby'] = array( - 'name' => __( 'Rugby', 'sportspress' ), + 'name' => 'Rugby', 'posts' => array( // Table Columns 'sp_column' => array( diff --git a/admin/presets/soccer.php b/admin/presets/soccer.php index 2ae959d2..c537a58c 100644 --- a/admin/presets/soccer.php +++ b/admin/presets/soccer.php @@ -2,7 +2,7 @@ global $sportspress_sports; $sportspress_sports['soccer'] = array( - 'name' => __( 'Association Football (Soccer)', 'sportspress' ), + 'name' => 'Association Football (Soccer)', 'posts' => array( // Table Columns 'sp_column' => array( @@ -88,7 +88,7 @@ $sportspress_sports['soccer'] = array( // Statistics 'sp_statistic' => array( array( - 'post_title' => __( 'Appearances', 'sportspress' ), + 'post_title' => 'Appearances', 'post_name' => 'appearances', 'meta' => array( 'sp_equation' => '$eventsplayed', @@ -97,7 +97,7 @@ $sportspress_sports['soccer'] = array( ), ), array( - 'post_title' => __( 'Goals', 'sportspress' ), + 'post_title' => 'Goals', 'post_name' => 'goals', 'meta' => array( 'sp_equation' => '', @@ -108,7 +108,7 @@ $sportspress_sports['soccer'] = array( ), ), array( - 'post_title' => __( 'Assists', 'sportspress' ), + 'post_title' => 'Assists', 'post_name' => 'assists', 'meta' => array( 'sp_equation' => '', @@ -117,7 +117,7 @@ $sportspress_sports['soccer'] = array( ), ), array( - 'post_title' => __( 'Yellow Cards', 'sportspress' ), + 'post_title' => 'Yellow Cards', 'post_name' => 'yellowcards', 'meta' => array( 'sp_equation' => '', @@ -126,7 +126,16 @@ $sportspress_sports['soccer'] = array( ), ), array( - 'post_title' => __( 'Height', 'sportspress' ), + 'post_title' => 'Red Cards', + 'post_name' => 'redcards', + 'meta' => array( + 'sp_equation' => '', + 'sp_format' => 'integer', + 'sp_precision' => 1, + ), + ), + array( + 'post_title' => 'Height', 'post_name' => 'height', 'meta' => array( 'sp_equation' => '', @@ -135,7 +144,7 @@ $sportspress_sports['soccer'] = array( ), ), array( - 'post_title' => __( 'Weight', 'sportspress' ), + 'post_title' => 'Weight', 'post_name' => 'weight', 'meta' => array( 'sp_equation' => '', @@ -147,7 +156,7 @@ $sportspress_sports['soccer'] = array( // Results 'sp_result' => array( array( - 'post_title' => __( 'Goals', 'sportspress' ), + 'post_title' => 'Goals', 'post_name' => 'goals', 'meta' => array( 'sp_format' => 'integer', diff --git a/admin/settings/settings.php b/admin/settings/settings.php index 7424d586..d8962992 100644 --- a/admin/settings/settings.php +++ b/admin/settings/settings.php @@ -83,6 +83,9 @@ function sportspress_validate( $input ) { // Make sure post doesn't overlap if ( ! get_page_by_path( $post['post_name'], OBJECT, $post_type ) ): + // Translate post title + $post['post_title'] = __( $post['post_title'], 'sportspress' ); + // Set post type $post['post_type'] = $post_type; @@ -146,7 +149,7 @@ function sportspress_sport_callback() { ?> \n" "Language-Team: ThemeBoy \n" "Language: ja\n" @@ -25,47 +25,47 @@ msgstr "チームマネージャー" msgid "Staff" msgstr "スタッフ" -#: ../install.php:118 ../sportspress-functions.php:530 -#: ../sportspress-functions.php:720 ../sportspress-functions.php:1315 +#: ../install.php:118 ../sportspress-functions.php:542 +#: ../sportspress-functions.php:779 ../sportspress-functions.php:1389 #: ../admin/post-types/player.php:4 msgid "Player" msgstr "選手" -#: ../sportspress-actions.php:98 +#: ../sportspress-actions.php:103 msgid "Scheduled" msgstr "予約済み" -#: ../sportspress-actions.php:98 ../sportspress-functions.php:377 -#: ../sportspress-functions.php:380 +#: ../sportspress-actions.php:103 ../sportspress-functions.php:382 +#: ../sportspress-functions.php:385 msgid "Played" msgstr "試合終了" -#: ../sportspress-actions.php:98 +#: ../sportspress-actions.php:103 msgid "M j, Y @ G:i" msgstr "Y年n月j日 @ G:i" -#: ../sportspress-actions.php:119 ../sportspress-actions.php:129 -#: ../sportspress-actions.php:139 ../sportspress-functions.php:74 +#: ../sportspress-actions.php:124 ../sportspress-actions.php:134 +#: ../sportspress-actions.php:144 ../sportspress-functions.php:74 #, php-format msgid "All %s" msgstr "すべての%s" -#: ../sportspress-actions.php:119 ../admin/post-types/event.php:36 +#: ../sportspress-actions.php:124 ../admin/post-types/event.php:36 #: ../admin/post-types/event.php:143 ../admin/post-types/list.php:27 -#: ../admin/post-types/player.php:30 ../admin/post-types/player.php:67 -#: ../admin/post-types/player.php:184 ../admin/post-types/staff.php:27 +#: ../admin/post-types/player.php:27 ../admin/post-types/player.php:42 +#: ../admin/post-types/player.php:80 ../admin/post-types/staff.php:27 #: ../admin/post-types/staff.php:45 ../admin/post-types/table.php:26 #: ../admin/post-types/table.php:36 ../admin/post-types/team.php:3 msgid "Teams" msgstr "チーム" -#: ../sportspress-actions.php:129 ../admin/post-types/player.php:183 +#: ../sportspress-actions.php:134 ../admin/post-types/player.php:26 #: ../admin/post-types/staff.php:44 ../admin/terms/position.php:3 msgid "Positions" msgstr "ポジション" -#: ../sportspress-actions.php:139 ../admin/post-types/event.php:144 -#: ../admin/post-types/list.php:28 ../admin/post-types/player.php:185 +#: ../sportspress-actions.php:144 ../admin/post-types/event.php:144 +#: ../admin/post-types/list.php:28 ../admin/post-types/player.php:28 #: ../admin/post-types/staff.php:46 ../admin/post-types/table.php:27 #: ../admin/post-types/team.php:40 ../admin/terms/season.php:3 msgid "Seasons" @@ -81,14 +81,14 @@ msgid "Add %s" msgstr "新規%sを追加" #: ../sportspress-functions.php:55 ../sportspress-functions.php:78 -#: ../sportspress-functions.php:769 +#: ../sportspress-functions.php:836 #, php-format msgid "Add New %s" msgstr "新規%sを追加" #: ../sportspress-functions.php:56 ../sportspress-functions.php:75 -#: ../admin/settings/config.php:35 ../admin/settings/config.php:74 -#: ../admin/settings/config.php:107 ../admin/settings/config.php:138 +#: ../admin/settings/config.php:33 ../admin/settings/config.php:70 +#: ../admin/settings/config.php:107 ../admin/settings/config.php:144 #, php-format msgid "Edit %s" msgstr "%sを編集" @@ -119,7 +119,7 @@ msgid "No %s found in trash" msgstr "ゴミ箱内に%sは見つかりませんでした。" #: ../sportspress-functions.php:62 ../sportspress-functions.php:80 -#: ../sportspress-functions.php:81 ../sportspress-globals.php:7 +#: ../sportspress-functions.php:81 #, php-format msgid "Parent %s" msgstr "親%s" @@ -134,153 +134,239 @@ msgstr "%sを更新" msgid "New %s Name" msgstr "新規%s名" -#: ../sportspress-functions.php:251 ../sportspress-functions.php:309 -#: ../sportspress-globals.php:11 +#: ../sportspress-functions.php:256 ../sportspress-functions.php:314 msgid "(no title)" msgstr "(タイトルなし)" -#: ../sportspress-functions.php:377 ../sportspress-functions.php:380 -#: ../admin/post-types/event.php:3 ../admin/presets/golf.php:13 +#: ../sportspress-functions.php:382 ../sportspress-functions.php:385 +#: ../admin/post-types/event.php:3 msgid "Events" msgstr "試合" -#: ../sportspress-functions.php:377 +#: ../sportspress-functions.php:382 msgid "Attended" msgstr "出場" -#: ../sportspress-functions.php:383 ../admin/post-types/event.php:39 -#: ../admin/post-types/result.php:3 ../admin/settings/config.php:89 +#: ../sportspress-functions.php:388 ../admin/post-types/event.php:39 +#: ../admin/post-types/result.php:3 ../admin/settings/config.php:85 #: ../admin/settings/config.php:107 msgid "Results" msgstr "結果" -#: ../sportspress-functions.php:386 ../sportspress-functions.php:387 +#: ../sportspress-functions.php:391 ../sportspress-functions.php:392 #: ../admin/post-types/outcome.php:3 ../admin/settings/config.php:122 -#: ../admin/settings/config.php:138 +#: ../admin/settings/config.php:144 msgid "Outcomes" msgstr "勝敗" -#: ../sportspress-functions.php:387 +#: ../sportspress-functions.php:392 msgid "Streak" msgstr "連勝敗" -#: ../sportspress-functions.php:390 +#: ../sportspress-functions.php:395 msgid "Columns" msgstr "列" -#: ../sportspress-functions.php:393 ../admin/post-types/player.php:33 -#: ../admin/post-types/statistic.php:3 ../admin/settings/config.php:50 -#: ../admin/settings/config.php:74 +#: ../sportspress-functions.php:398 ../admin/post-types/player.php:45 +#: ../admin/post-types/statistic.php:3 ../admin/settings/config.php:48 +#: ../admin/settings/config.php:70 msgid "Statistics" msgstr "成績表" -#: ../sportspress-functions.php:402 +#: ../sportspress-functions.php:407 msgid "Operators" msgstr "演算子" -#: ../sportspress-functions.php:412 +#: ../sportspress-functions.php:417 msgid "Constants" msgstr "定数" -#: ../sportspress-functions.php:415 ../admin/post-types/event.php:56 +#: ../sportspress-functions.php:420 ../admin/post-types/event.php:56 #: ../admin/post-types/event.php:73 msgid "Remove" msgstr "削除" -#: ../sportspress-functions.php:416 ../admin/post-types/event.php:80 +#: ../sportspress-functions.php:421 ../admin/post-types/event.php:80 msgid "Select" msgstr "選択" -#: ../sportspress-functions.php:490 ../sportspress-functions.php:630 -#: ../sportspress-functions.php:666 ../sportspress-functions.php:1099 -#: ../sportspress-globals.php:4 ../sportspress-globals.php:7 +#: ../sportspress-functions.php:502 ../sportspress-functions.php:642 +#: ../sportspress-functions.php:678 ../sportspress-functions.php:1166 #: ../admin/post-types/team.php:4 ../admin/post-types/team.php:39 msgid "Team" msgstr "チーム" -#: ../sportspress-functions.php:570 ../sportspress-functions.php:582 -#: ../sportspress-functions.php:618 ../admin/terms/season.php:4 +#: ../sportspress-functions.php:582 ../sportspress-functions.php:594 +#: ../sportspress-functions.php:630 ../admin/terms/season.php:4 msgid "Season" msgstr "シーズン" -#: ../sportspress-functions.php:582 ../sportspress-functions.php:630 -#: ../sportspress-globals.php:5 ../sportspress-globals.php:6 -#: ../sportspress-globals.php:18 ../sportspress-globals.php:19 -#: ../sportspress-globals.php:27 ../sportspress-globals.php:28 -#: ../sportspress-globals.php:42 ../sportspress-globals.php:46 -#: ../sportspress-globals.php:50 ../admin/post-types/player.php:67 +#: ../sportspress-functions.php:594 ../sportspress-functions.php:642 +#: ../admin/post-types/player.php:80 #, php-format msgid "Select %s" msgstr "%sを選択" -#: ../sportspress-functions.php:670 ../admin/post-types/outcome.php:4 +#: ../sportspress-functions.php:682 ../admin/post-types/outcome.php:4 msgid "Outcome" msgstr "勝敗" -#: ../sportspress-functions.php:694 +#: ../sportspress-functions.php:706 msgid "-- Not set --" msgstr "-- 未設定 --" -#: ../sportspress-functions.php:747 ../admin/presets/golf.php:27 +#: ../sportspress-functions.php:733 +msgid "Starting Lineup" +msgstr "スターティングメンバー" + +#: ../sportspress-functions.php:734 +msgid "Substitute" +msgstr "補欠" + +#: ../sportspress-functions.php:758 +msgid "None" +msgstr "なし" + +#: ../sportspress-functions.php:783 +msgid "Status" +msgstr "ステータス" + +#: ../sportspress-functions.php:813 msgid "Total" msgstr "合計" -#: ../sportspress-globals.php:5 ../sportspress-globals.php:6 -#: ../sportspress-globals.php:8 ../sportspress-globals.php:42 -#: ../sportspress-globals.php:43 ../admin/post-types/team.php:28 -msgid "Logo" -msgstr "ロゴ" +#: ../sportspress-globals.php:6 +msgid "Association Football (Soccer)" +msgstr "サッカー" -#: ../sportspress-globals.php:8 ../sportspress-globals.php:20 -#: ../sportspress-globals.php:29 ../sportspress-globals.php:43 -#: ../sportspress-globals.php:47 ../sportspress-globals.php:51 +#: ../sportspress-globals.php:7 +msgid "American Football" +msgstr "アメリカンフットボール" + +#: ../sportspress-globals.php:8 +msgid "Australian Rules Football" +msgstr "オージーフットボール" + +#: ../sportspress-globals.php:9 +msgid "Baseball" +msgstr "野球" + +#: ../sportspress-globals.php:10 +msgid "Basketball" +msgstr "バスケットボール" + +#: ../sportspress-globals.php:11 +msgid "Competitive Gaming" +msgstr "ゲーミング" + +#: ../sportspress-globals.php:12 +msgid "Cricket" +msgstr "クリケット" + +#: ../sportspress-globals.php:13 +msgid "Golf" +msgstr "ゴルフ" + +#: ../sportspress-globals.php:14 +msgid "Handball" +msgstr "ハンドボール" + +#: ../sportspress-globals.php:15 +msgid "Hockey" +msgstr "ホッケー" + +#: ../sportspress-globals.php:16 +msgid "Racing" +msgstr "レーシング" + +#: ../sportspress-globals.php:17 +msgid "Rugby" +msgstr "ラグビー" + +#: ../sportspress-globals.php:18 +msgid "Swimming" +msgstr "水泳" + +#: ../sportspress-globals.php:19 +msgid "Tennis" +msgstr "テニス" + +#: ../sportspress-globals.php:20 +msgid "Volleyball" +msgstr "バレーボール" + +#: ../sportspress-globals.php:23 +msgid "Appearances" +msgstr "出場" + +#: ../sportspress-globals.php:24 +msgid "Goals" +msgstr "得点" + +#: ../sportspress-globals.php:25 +msgid "Assists" +msgstr "アシスト" + +#: ../sportspress-globals.php:26 +msgid "Yellow Cards" +msgstr "警告" + +#: ../sportspress-globals.php:27 +msgid "Red Cards" +msgstr "退場" + +#: ../sportspress-globals.php:28 +msgid "Height" +msgstr "身長" + +#: ../sportspress-globals.php:29 +msgid "Weight" +msgstr "体重" + +#: ../sportspress-globals.php:32 +msgid "Select Logo" +msgstr "ロゴを選択" + +#: ../sportspress-globals.php:33 +msgid "Remove Logo" +msgstr "ロゴを削除" + +#: ../sportspress-globals.php:34 #, php-format -msgid "Remove %s" -msgstr "%sを削除" +msgid "Kick-off: %1$s" +msgstr "キックオフ: %1$s" -#: ../sportspress-globals.php:12 ../sportspress-globals.php:13 -#: ../sportspress-globals.php:14 ../admin/post-types/event.php:145 -msgid "Kick-off" -msgstr "キックオフ" +#: ../sportspress-globals.php:35 +#, php-format +msgid "Joined: %1$s" +msgstr "入団日: %1$s" -#: ../sportspress-globals.php:17 ../sportspress-globals.php:26 -#: ../admin/post-types/player.php:182 ../admin/post-types/staff.php:43 -msgid "Name" -msgstr "名前" +#: ../sportspress-globals.php:36 +msgid "Select Photo" +msgstr "写真を選択" -#: ../sportspress-globals.php:18 ../sportspress-globals.php:19 -#: ../sportspress-globals.php:20 ../sportspress-globals.php:27 -#: ../sportspress-globals.php:28 ../sportspress-globals.php:29 -#: ../sportspress-globals.php:46 ../sportspress-globals.php:47 -#: ../sportspress-globals.php:50 ../sportspress-globals.php:51 -#: ../admin/post-types/player.php:29 ../admin/post-types/staff.php:26 -msgid "Photo" -msgstr "写真" +#: ../sportspress-globals.php:37 +msgid "Remove Photo" +msgstr "写真を削除" -#: ../sportspress-globals.php:21 ../sportspress-globals.php:22 -#: ../sportspress-globals.php:23 ../sportspress-globals.php:30 -#: ../sportspress-globals.php:31 ../sportspress-globals.php:32 -msgid "Joined" -msgstr "入団日" - -#: ../sportspress-globals.php:56 +#: ../sportspress-globals.php:40 msgid "Integer" msgstr "整数" -#: ../sportspress-globals.php:57 +#: ../sportspress-globals.php:41 msgid "Decimal" msgstr "少数" -#: ../sportspress-globals.php:58 +#: ../sportspress-globals.php:42 msgid "Time" msgstr "時間" -#: ../sportspress-globals.php:59 +#: ../sportspress-globals.php:43 msgid "Custom Field" msgstr "カスタムフィールド" #: ../admin/post-types/column.php:3 ../admin/post-types/team.php:31 -#: ../admin/settings/config.php:11 ../admin/settings/config.php:35 +#: ../admin/settings/config.php:11 ../admin/settings/config.php:33 msgid "Table Columns" msgstr "順位表列" @@ -294,60 +380,61 @@ msgstr "順位表列" #: ../admin/post-types/column.php:25 ../admin/post-types/outcome.php:25 #: ../admin/post-types/result.php:25 ../admin/post-types/statistic.php:25 -#: ../admin/settings/config.php:15 ../admin/settings/config.php:54 -#: ../admin/settings/config.php:93 ../admin/settings/config.php:126 +#: ../admin/settings/config.php:15 ../admin/settings/config.php:52 +#: ../admin/settings/config.php:89 ../admin/settings/config.php:126 msgid "Label" msgstr "ラベル" -#: ../admin/post-types/column.php:26 ../admin/post-types/column.php:51 +#: ../admin/post-types/column.php:26 ../admin/post-types/column.php:50 #: ../admin/post-types/outcome.php:26 ../admin/post-types/outcome.php:38 #: ../admin/post-types/result.php:26 ../admin/post-types/result.php:40 -#: ../admin/post-types/statistic.php:26 ../admin/post-types/statistic.php:51 -#: ../admin/settings/config.php:16 ../admin/settings/config.php:55 -#: ../admin/settings/config.php:94 ../admin/settings/config.php:127 +#: ../admin/post-types/statistic.php:26 ../admin/post-types/statistic.php:50 +#: ../admin/settings/config.php:16 ../admin/settings/config.php:53 +#: ../admin/settings/config.php:90 ../admin/settings/config.php:127 msgid "Key" msgstr "キー" -#: ../admin/post-types/column.php:27 ../admin/post-types/column.php:55 +#: ../admin/post-types/column.php:27 ../admin/post-types/column.php:54 #: ../admin/post-types/result.php:27 ../admin/post-types/result.php:44 -#: ../admin/post-types/statistic.php:27 ../admin/post-types/statistic.php:55 -#: ../admin/settings/config.php:17 ../admin/settings/config.php:56 -#: ../admin/settings/config.php:95 +#: ../admin/post-types/statistic.php:27 ../admin/post-types/statistic.php:54 +#: ../admin/settings/config.php:17 ../admin/settings/config.php:54 +#: ../admin/settings/config.php:91 ../admin/settings/config.php:128 msgid "Format" msgstr "フォーマット" -#: ../admin/post-types/column.php:28 ../admin/post-types/column.php:65 -#: ../admin/post-types/statistic.php:28 ../admin/post-types/statistic.php:65 -#: ../admin/settings/config.php:18 ../admin/settings/config.php:57 -msgid "Precision" -msgstr "浮動小数点数" - -#: ../admin/post-types/column.php:29 ../admin/post-types/column.php:69 -#: ../admin/post-types/statistic.php:29 ../admin/post-types/statistic.php:69 -#: ../admin/settings/config.php:19 ../admin/settings/config.php:58 +#: ../admin/post-types/column.php:28 ../admin/post-types/column.php:68 +#: ../admin/post-types/statistic.php:28 ../admin/post-types/statistic.php:68 +#: ../admin/settings/config.php:18 ../admin/settings/config.php:55 +#: ../admin/settings/config.php:92 ../admin/settings/config.php:129 msgid "Equation" msgstr "方程式" -#: ../admin/post-types/column.php:30 ../admin/post-types/column.php:77 -#: ../admin/post-types/statistic.php:30 ../admin/post-types/statistic.php:77 -#: ../admin/settings/config.php:20 ../admin/settings/config.php:59 +#: ../admin/post-types/column.php:29 ../admin/post-types/column.php:76 +#: ../admin/post-types/statistic.php:29 ../admin/post-types/statistic.php:76 +#: ../admin/settings/config.php:19 ../admin/settings/config.php:56 +#: ../admin/settings/config.php:93 ../admin/settings/config.php:130 msgid "Sort Order" msgstr "ソート順" -#: ../admin/post-types/column.php:37 ../admin/post-types/outcome.php:33 -#: ../admin/post-types/result.php:34 ../admin/post-types/statistic.php:37 +#: ../admin/post-types/column.php:36 ../admin/post-types/outcome.php:33 +#: ../admin/post-types/player.php:48 ../admin/post-types/result.php:34 +#: ../admin/post-types/statistic.php:36 msgid "Details" msgstr "詳細" -#: ../admin/post-types/column.php:81 ../admin/post-types/statistic.php:81 +#: ../admin/post-types/column.php:64 ../admin/post-types/statistic.php:64 +msgid "Precision" +msgstr "浮動小数点数" + +#: ../admin/post-types/column.php:80 ../admin/post-types/statistic.php:80 msgid "Disable" msgstr "無効化" -#: ../admin/post-types/column.php:89 ../admin/post-types/statistic.php:89 +#: ../admin/post-types/column.php:88 ../admin/post-types/statistic.php:88 msgid "Descending" msgstr "降順" -#: ../admin/post-types/column.php:89 ../admin/post-types/statistic.php:89 +#: ../admin/post-types/column.php:88 ../admin/post-types/statistic.php:88 msgid "Ascending" msgstr "昇順" @@ -370,6 +457,10 @@ msgstr "選手" msgid "Article" msgstr "戦評" +#: ../admin/post-types/event.php:145 +msgid "Kick-off" +msgstr "キックオフ" + #: ../admin/post-types/list.php:3 msgid "Player Lists" msgstr "選手名鑑" @@ -394,15 +485,27 @@ msgstr "勝敗" msgid "players" msgstr "選手" -#: ../admin/post-types/player.php:27 ../admin/post-types/staff.php:24 +#: ../admin/post-types/player.php:25 ../admin/post-types/staff.php:43 +msgid "Name" +msgstr "名前" + +#: ../admin/post-types/player.php:39 ../admin/post-types/staff.php:24 #: ../admin/post-types/team.php:26 msgid "Publish" msgstr "公開" -#: ../admin/post-types/player.php:36 ../admin/post-types/staff.php:28 +#: ../admin/post-types/player.php:41 ../admin/post-types/staff.php:26 +msgid "Photo" +msgstr "写真" + +#: ../admin/post-types/player.php:49 ../admin/post-types/staff.php:28 msgid "Profile" msgstr "プロフィール" +#: ../admin/post-types/player.php:198 +msgid "Player Number" +msgstr "背番号" + #: ../admin/post-types/result.php:4 msgid "Result" msgstr "結果" @@ -439,73 +542,9 @@ msgstr "順位表" msgid "teams" msgstr "チーム" -#: ../admin/presets/baseball.php:5 -msgid "Baseball" -msgstr "野球" - -#: ../admin/presets/basketball.php:5 -msgid "Basketball" -msgstr "バスケットボール" - -#: ../admin/presets/cricket.php:5 -msgid "Cricket" -msgstr "クリケット" - -#: ../admin/presets/football.php:5 -msgid "American Football" -msgstr "アメリカンフットボール" - -#: ../admin/presets/footy.php:5 -msgid "Australian Rules Football" -msgstr "オージーフットボール" - -#: ../admin/presets/gaming.php:5 -msgid "Competitive Gaming" -msgstr "ゲーミング" - -#: ../admin/presets/golf.php:5 -msgid "Golf" -msgstr "ゴルフ" - -#: ../admin/presets/hockey.php:5 -msgid "Hockey" -msgstr "ホッケー" - -#: ../admin/presets/presets.php:20 -msgid "Custom" -msgstr "カスタム" - -#: ../admin/presets/racing.php:5 -msgid "Racing" -msgstr "レーシング" - -#: ../admin/presets/rugby.php:5 -msgid "Rugby" -msgstr "ラグビー" - -#: ../admin/presets/soccer.php:5 -msgid "Association Football (Soccer)" -msgstr "サッカー" - -#: ../admin/presets/soccer.php:91 -msgid "Appearances" -msgstr "出場" - -#: ../admin/presets/soccer.php:100 ../admin/presets/soccer.php:141 -msgid "Goals" -msgstr "得点" - -#: ../admin/presets/soccer.php:111 -msgid "Assists" -msgstr "アシスト" - -#: ../admin/presets/soccer.php:120 -msgid "Yellow Cards" -msgstr "警告" - -#: ../admin/presets/soccer.php:129 -msgid "Red Cards" -msgstr "退場" +#: ../admin/post-types/team.php:28 +msgid "Logo" +msgstr "ロゴ" #: ../admin/settings/general.php:1 msgid "General Settings" @@ -520,7 +559,7 @@ msgstr "SportsPress" msgid "Configure" msgstr "設定" -#: ../admin/settings/settings.php:134 +#: ../admin/settings/settings.php:137 msgid "Sport" msgstr "スポーツ" @@ -536,153 +575,5 @@ msgstr "ポジション" msgid "season" msgstr "シーズン" -#~ msgid "W" -#~ msgstr "W" - -#~ msgid "L" -#~ msgstr "L" - -#~ msgid "Abbreviation" -#~ msgstr "略語" - -#~ msgid "Wins" -#~ msgstr "勝" - -#~ msgid "Losses" -#~ msgstr "敗" - -#~ msgid "Win Percentage" -#~ msgstr "勝率" - -#~ msgid "1st Inning" -#~ msgstr "1回" - -#~ msgid "2nd Inning" -#~ msgstr "2回" - -#~ msgid "3rd Inning" -#~ msgstr "3回" - -#~ msgid "4th Inning" -#~ msgstr "4回" - -#~ msgid "5th Inning" -#~ msgstr "5回" - -#~ msgid "6th Inning" -#~ msgstr "6回" - -#~ msgid "7th Inning" -#~ msgstr "7回" - -#~ msgid "8th Inning" -#~ msgstr "8回" - -#~ msgid "9th Inning" -#~ msgstr "9回" - -#~ msgid "Extra Innings" -#~ msgstr "延長" - -#~ msgid "Runs" -#~ msgstr "ラン" - -#~ msgid "Hits" -#~ msgstr "ヒット" - -#~ msgid "Errors" -#~ msgstr "エラー" - -#~ msgid "Win" -#~ msgstr "勝" - -#~ msgid "Loss" -#~ msgstr "敗" - -#~ msgid "Overtime" -#~ msgstr "延長" - -#~ msgid "Pct" -#~ msgstr "勝率" - -#~ msgid "PF" -#~ msgstr "PF" - -#~ msgid "PA" -#~ msgstr "PA" - -#, fuzzy -#~ msgid "Goals For" -#~ msgstr "ゴール" - -#~ msgid "1st Half" -#~ msgstr "前半" - -#~ msgid "2nd Half" -#~ msgstr "後半" - -#~ msgid "RA" -#~ msgstr "RA" - -#~ msgid "P" -#~ msgstr "P" - -#~ msgid "D" -#~ msgstr "D" - -#~ msgid "F" -#~ msgstr "F" - -#~ msgid "A" -#~ msgstr "A" - -#~ msgid "XP" -#~ msgstr "XP" - -#~ msgid "GP" -#~ msgstr "GP" - -#~ msgid "GF" -#~ msgstr "GF" - -#~ msgid "GA" -#~ msgstr "GA" - -#~ msgid "GD" -#~ msgstr "GD" - -#~ msgid "Divisions" -#~ msgstr "リーグレベル" - -#~ msgid "Division" -#~ msgstr "リーグレベル" - -#~ msgid "divisions" -#~ msgstr "リーグレベル" - -#~ msgid "Overall" -#~ msgstr "全般" - -#~ msgid "SportsPress Settings" -#~ msgstr "SportsPress 設定" - -#~ msgid "PTS" -#~ msgstr "PTS" - -#~ msgid "Sponsors" -#~ msgstr "スポンサー" - -#~ msgid "Sponsor" -#~ msgstr "スポンサー" - -#~ msgid "sponsors" -#~ msgstr "スポンサー" - -#~ msgid "Leagues" -#~ msgstr "リーグ" - -#~ msgid "League" -#~ msgstr "リーグ" - -#~ msgid "leagues" -#~ msgstr "リーグ" +#~ msgid "Joined" +#~ msgstr "入団日" diff --git a/sportspress-filters.php b/sportspress-filters.php index 583ba8a3..b9dcea3f 100644 --- a/sportspress-filters.php +++ b/sportspress-filters.php @@ -16,7 +16,7 @@ add_filter( 'post_thumbnail_html', 'sp_post_thumbnail_html', 10, 5 ); function sp_gettext( $translated_text, $untranslated_text, $domain ) { global $typenow, $sportspress_texts; if ( is_admin() && array_key_exists( $typenow, $sportspress_texts ) && array_key_exists( $untranslated_text, $sportspress_texts[ $typenow ] ) ) - return $sportspress_texts[ $typenow ][ $untranslated_text ]; + return __( $sportspress_texts[ $typenow ][ $untranslated_text ], 'sportspress' ); else return $translated_text; } @@ -27,7 +27,7 @@ function sp_admin_post_thumbnail_html( $translated_text, $post_id ) { $typenow = get_post_type( $post_id ); if ( is_admin() && array_key_exists( $typenow, $sportspress_thumbnail_texts ) ): foreach ( $sportspress_thumbnail_texts[ $typenow ] as $key => $value ): - $translated_text = str_replace( __( $key ), $value, $translated_text ); + $translated_text = str_replace( __( $key ), __( $value, 'sportspress' ), $translated_text ); endforeach; endif; return $translated_text; diff --git a/sportspress-functions.php b/sportspress-functions.php index 98bdaf2f..42f6451a 100644 --- a/sportspress-functions.php +++ b/sportspress-functions.php @@ -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: diff --git a/sportspress-globals.php b/sportspress-globals.php index 89789ab1..c65dbb83 100644 --- a/sportspress-globals.php +++ b/sportspress-globals.php @@ -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: %1$s', 'sportspress' ); +__( 'Joined: %1$s', '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: %1$s' => __( 'Kick-off', 'sportspress' ) . ': %1$s', - 'Published on: %1$s' => __( 'Kick-off', 'sportspress' ) . ': %1$s', - 'Publish immediately' => __( 'Kick-off', 'sportspress' ) . ': %1$s' + 'Enter title here' => '(no title)', 'sportspress', + 'Scheduled for: %1$s' => 'Kick-off: %1$s', 'sportspress', + 'Published on: %1$s' => 'Kick-off: %1$s', 'sportspress', + 'Publish immediately' => 'Kick-off: %1$s', '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: %1$s' => __( 'Joined', 'sportspress' ) . ': %1$s', - 'Published on: %1$s' => __( 'Joined', 'sportspress' ) . ': %1$s', - 'Publish immediately' => __( 'Joined', 'sportspress' ) . ': %1$s' + '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: %1$s' => 'Joined: %1$s', 'sportspress', + 'Published on: %1$s' => 'Joined: %1$s', 'sportspress', + 'Publish immediately' => 'Joined: %1$s', '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: %1$s' => __( 'Joined', 'sportspress' ) . ': %1$s', - 'Published on: %1$s' => __( 'Joined', 'sportspress' ) . ': %1$s', - 'Publish immediately' => __( 'Joined', 'sportspress' ) . ': %1$s' + '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: %1$s' => 'Joined: %1$s', 'sportspress', + 'Published on: %1$s' => 'Joined: %1$s', 'sportspress', + 'Publish immediately' => 'Joined: %1$s', 'sportspress', ), - 'sp_table' => array( - 'Enter title here' => '', - 'Post updated. View post' => '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', ); ?> \ No newline at end of file