Skip to content

Commit

Permalink
Merge pull request #1 from chihiro-adachi/umebius/admin/order/import
Browse files Browse the repository at this point in the history
文言の誤りを修正
  • Loading branch information
dk-umebius authored Aug 1, 2019
2 parents 843872c + ba5d8fa commit 6f98efd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Eccube/Controller/Admin/Order/CsvImportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ protected function loadCsv(CsvImportService $csv, &$errors)
// 日付フォーマットが異なる場合はエラー
$shippingDate = \DateTime::createFromFormat('Y-m-d', $row[$columnNames['shipping_date']]);
if ($shippingDate === false) {
$errors[] = trans('admin.common.csv_invalid_date_format', ['%line%' => $line + 1, '%name%' => $columnNames['id']]);
$errors[] = trans('admin.common.csv_invalid_date_format', ['%line%' => $line + 1, '%name%' => $columnNames['shipping_date']]);
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Eccube/Resource/locale/messages.ja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ admin.common.csv_invalid_no_data: CSVデータが存在しません
admin.common.csv_invalid_required: '%line%行目の%name%が設定されていません'
admin.common.csv_invalid_greater_than_zero: '%line%行目の%name%は0以上の数値を設定してください。'
admin.common.csv_invalid_format_line: '%line%行目のCSVフォーマットが一致しません'
admin.common.csv_invalid_date_format: '%line%行目%name%の日付フォーマットが異なります'
admin.common.csv_invalid_date_format: '%line%行目の%name%の日付フォーマットが異なります'
admin.common.csv_invalid_not_found: '%line%行目の%name%が存在しません'
admin.common.csv_invalid_not_found_target: '%line%行目の%name%「%target_name%」が存在しません'
admin.common.csv_invalid_not_same: '%line%行目の%name1%と%name2%には同じ値を使用できません'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function loadCsvInvalidFormatProvider()
[
'出荷ID,出荷日,お問い合わせ番号',
'{id},2018/01/23,1234',
], '2行目出荷IDの日付フォーマットが異なります',
], '2行目の出荷日の日付フォーマットが異なります',
],
];
}
Expand Down

0 comments on commit 6f98efd

Please sign in to comment.