rails/locale/en-GB.yml in rails-i18n-0.1.11 vs rails/locale/en-GB.yml in rails-i18n-0.2.0.beta1
- old
+ new
@@ -206,21 +206,22 @@
equal_to: "must be equal to %{count}"
less_than: "must be less than %{count}"
less_than_or_equal_to: "must be less than or equal to %{count}"
odd: "must be odd"
even: "must be even"
+ taken: "has already been taken"
+ record_invalid: "Validation failed: %{errors}"
+ template: &errors_template
+ header:
+ one: "1 error prohibited this %{model} from being saved"
+ other: "%{count} errors prohibited this %{model} from being saved"
+ body: "There were problems with the following fields:"
activerecord:
errors:
- template:
- header:
- one: "1 error prohibited this %{model} from being saved"
- other: "%{count} errors prohibited this %{model} from being saved"
- body: "There were problems with the following fields:"
-
messages:
- taken: "has already been taken"
- record_invalid: "Validation failed: %{errors}"
<<: *errors_messages
+ template:
+ <<: *errors_template
full_messages:
format: "%{attribute} %{message}"