Skip to content

Instantly share code, notes, and snippets.

@lastcanal
Created March 31, 2013 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lastcanal/5281134 to your computer and use it in GitHub Desktop.
Save lastcanal/5281134 to your computer and use it in GitHub Desktop.
Padrino Admin ORM locale with Ohm
en:
activemodel: &activemodel
errors:
messages:
inclusion: "is not included in the list"
exclusion: "is reserved"
invalid: "is invalid"
confirmation: "doesn't match confirmation"
accepted: "must be accepted"
empty: "can't be empty"
blank: "can't be blank"
too_long: "is too long (maximum is %{count} characters)"
too_short: "is too short (minimum is %{count} characters)"
wrong_length: "is the wrong length (should be %{count} characters)"
taken: "has already been taken"
not_a_number: "is not a number"
greater_than: "must be greater than %{count}"
greater_than_or_equal_to: "must be greater than or equal to %{count}"
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"
record_invalid: "Validation failed: %{errors}"
content_type: "file format not supported"
activerecord: *activemodel
ohm:
errors:
messages:
format: "is invalid"
not_present: "can't be blank"
not_numeric: "is not a number"
not_url: "is invalid"
not_email: "is invalid"
not_valid: "is not included in the list"
not_in_range: "is not included in the list"
not_decimal: "is invalid"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment