Skip to content

Commit 261c3a9

Browse files
authored
[10.x] Standardise "must" in translations (#45989)
* Use "must" instead of "may" * Standardises language to use X must Y.
1 parent 9b61e2b commit 261c3a9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Illuminate/Translation/lang/en/validation.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
'accepted' => 'The :attribute field must be accepted.',
1717
'accepted_if' => 'The :attribute field must be accepted when :other is :value.',
18-
'active_url' => 'The :attribute field is not a valid URL.',
18+
'active_url' => 'The :attribute field must be a valid URL.',
1919
'after' => 'The :attribute field must be a date after :date.',
2020
'after_or_equal' => 'The :attribute field must be a date after or equal to :date.',
2121
'alpha' => 'The :attribute field must only contain letters.',
@@ -34,9 +34,9 @@
3434
'boolean' => 'The :attribute field must be true or false.',
3535
'confirmed' => 'The :attribute field confirmation does not match.',
3636
'current_password' => 'The password is incorrect.',
37-
'date' => 'The :attribute field is not a valid date.',
37+
'date' => 'The :attribute field must be a valid date.',
3838
'date_equals' => 'The :attribute field must be a date equal to :date.',
39-
'date_format' => 'The :attribute field does not match the format :format.',
39+
'date_format' => 'The :attribute field must match the format :format.',
4040
'decimal' => 'The :attribute field must have :decimal decimal places.',
4141
'declined' => 'The :attribute field must be declined.',
4242
'declined_if' => 'The :attribute field must be declined when :other is :value.',
@@ -45,8 +45,8 @@
4545
'digits_between' => 'The :attribute field must be between :min and :max digits.',
4646
'dimensions' => 'The :attribute field has invalid image dimensions.',
4747
'distinct' => 'The :attribute field has a duplicate value.',
48-
'doesnt_end_with' => 'The :attribute field may not end with one of the following: :values.',
49-
'doesnt_start_with' => 'The :attribute field may not start with one of the following: :values.',
48+
'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.',
49+
'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.',
5050
'email' => 'The :attribute field must be a valid email address.',
5151
'ends_with' => 'The :attribute field must end with one of the following: :values.',
5252
'enum' => 'The selected :attribute is invalid.',
@@ -67,7 +67,7 @@
6767
],
6868
'image' => 'The :attribute field must be an image.',
6969
'in' => 'The selected :attribute is invalid.',
70-
'in_array' => 'The :attribute field does not exist in :other.',
70+
'in_array' => 'The :attribute field must exist in :other.',
7171
'integer' => 'The :attribute field must be an integer.',
7272
'ip' => 'The :attribute field must be a valid IP address.',
7373
'ipv4' => 'The :attribute field must be a valid IPv4 address.',
@@ -134,7 +134,7 @@
134134
'required_with_all' => 'The :attribute field is required when :values are present.',
135135
'required_without' => 'The :attribute field is required when :values is not present.',
136136
'required_without_all' => 'The :attribute field is required when none of :values are present.',
137-
'same' => 'The :attribute field and :other must match.',
137+
'same' => 'The :attribute field must match :other.',
138138
'size' => [
139139
'array' => 'The :attribute field must contain :size items.',
140140
'file' => 'The :attribute field must be :size kilobytes.',

0 commit comments

Comments
 (0)