-
Notifications
You must be signed in to change notification settings - Fork 21.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Errors messages are now moved from :activerecord.errors to simply :er…
…rors on I18n yml files.
- Loading branch information
Showing
10 changed files
with
108 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,27 +1,26 @@ | |||
en: | en: | ||
activemodel: | errors: | ||
errors: | # The default format use in full error messages. | ||
# model.errors.full_messages format. | format: "{{attribute}} {{message}}" | ||
format: "{{attribute}} {{message}}" | |||
|
|
||
# The values :model, :attribute and :value are always available for interpolation | # The values :model, :attribute and :value are always available for interpolation | ||
# The value :count is available when applicable. Can be used for pluralization. | # The value :count is available when applicable. Can be used for pluralization. | ||
messages: | messages: | ||
inclusion: "is not included in the list" | inclusion: "is not included in the list" | ||
exclusion: "is reserved" | exclusion: "is reserved" | ||
invalid: "is invalid" | invalid: "is invalid" | ||
confirmation: "doesn't match confirmation" | confirmation: "doesn't match confirmation" | ||
accepted: "must be accepted" | accepted: "must be accepted" | ||
empty: "can't be empty" | empty: "can't be empty" | ||
blank: "can't be blank" | blank: "can't be blank" | ||
too_long: "is too long (maximum is {{count}} characters)" | too_long: "is too long (maximum is {{count}} characters)" | ||
too_short: "is too short (minimum is {{count}} characters)" | too_short: "is too short (minimum is {{count}} characters)" | ||
wrong_length: "is the wrong length (should be {{count}} characters)" | wrong_length: "is the wrong length (should be {{count}} characters)" | ||
not_a_number: "is not a number" | not_a_number: "is not a number" | ||
greater_than: "must be greater than {{count}}" | greater_than: "must be greater than {{count}}" | ||
greater_than_or_equal_to: "must be greater than or equal to {{count}}" | greater_than_or_equal_to: "must be greater than or equal to {{count}}" | ||
equal_to: "must be equal to {{count}}" | equal_to: "must be equal to {{count}}" | ||
less_than: "must be less than {{count}}" | less_than: "must be less than {{count}}" | ||
less_than_or_equal_to: "must be less than or equal to {{count}}" | less_than_or_equal_to: "must be less than or equal to {{count}}" | ||
odd: "must be odd" | odd: "must be odd" | ||
even: "must be even" | even: "must be even" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.