Skip to content

Commit

Permalink
メッセージの修正
Browse files Browse the repository at this point in the history
  • Loading branch information
chihiro-adachi committed Nov 20, 2018
1 parent e792ebe commit b82a6a6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/Eccube/Entity/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,10 @@ public function eraseCredentials()
public static function loadValidatorMetadata(ClassMetadata $metadata)
{
$metadata->addConstraint(new UniqueEntity([
'fields' => 'email',
'message' => 'form.type.customer_already_exists',
'repositoryMethod' => 'getNonWithdrawingCustomers',
]));
'fields' => 'email',
'message' => 'form_error.customer_already_exists',
'repositoryMethod' => 'getNonWithdrawingCustomers',
]));
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/Eccube/Entity/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class Member extends \Eccube\Entity\AbstractEntity implements UserInterface
public static function loadValidatorMetadata(ClassMetadata $metadata)
{
$metadata->addConstraint(new UniqueEntity([
'fields' => 'login_id',
'message' => 'common.member_already_exists',
]));
'fields' => 'login_id',
'message' => 'form_error.member_already_exists',
]));
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/Eccube/Resource/locale/messages.ja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ common.signup: 新規会員登録
common.forgot_login: ログイン情報をお忘れですか?
common.customer_address_count_is_over: お届け先登録の上限の%eccube_deliv_addr_max%件に達しています。お届け先を入力したい場合は、削除か変更を行ってください。
common.search_keyword: キーワードを入力
common.member_already_exists: 既に利用されているログインIDです

#====================================================================================
# フロント画面
Expand Down
3 changes: 2 additions & 1 deletion src/Eccube/Resource/locale/validators.ja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ form_error.select_is_future_or_now_date: 生年月日が不正な日付です。
form_error.float_only: 数字と小数点のみ入力できます。
form_error.same_password: 同じパスワードを入力してください。
form_error.same_email: 同じメールアドレスを入力してください。
form_error.member_already_exists: 既に利用されているログインIDです
form_error.customer_already_exists: このメールアドレスは利用できません

#------------------------------------------------------------------------------------
# Deplicated
Expand All @@ -56,7 +58,6 @@ errors.graph_and_hyphen: 半角英数字かハイフンのみを入力してく
form.type.graph.invalid: 半角英数字で入力してください。
form.type.name.firstname.nothasspace: お名前(名)にスペース、タブ、改行は含めないで下さい。
form.type.name.lastname.nothasspace: お名前(性)にスペース、タブ、改行は含めないで下さい。
form.type.customer_already_exists: このメールアドレスは利用できません
form.type.customer.password.too_short: パスワードが短すぎます。{{ limit }}文字以上でなければなりません。
form.type.customer.password.too_long: パスワードが長すぎます。{{ limit }}文字以内でなければなりません。
form.type.customer.company.nothasspace: 会社名にスペース、タブ、改行は含めないで下さい。
Expand Down

0 comments on commit b82a6a6

Please sign in to comment.