Skip to content

Instantly share code, notes, and snippets.

@Theby
Last active January 2, 2016 08:48
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 Theby/8278442 to your computer and use it in GitHub Desktop.
Save Theby/8278442 to your computer and use it in GitHub Desktop.
Traducción al español/castellano para usar con la gema validates_timeliness de Ruby.
en:
errors:
messages:
invalid_date: "no es una fecha valida."
invalid_time: "no es un tiempo valido."
invalid_datetime: "no es un formato valido de fecha/tiempo."
is_at: "debe ser %{restriction}."
before: "debe ser antes de %{restriction}."
on_or_before: "debe ser justo o antes de %{restriction}."
after: "debe ser después de %{restriction}."
on_or_after: "debe ser justo o después de %{restriction}."
validates_timeliness:
error_value_formats:
date: '%Y-%m-%d'
time: '%H:%M:%S'
datetime: '%Y-%m-%d %H:%M:%S'
@Theby
Copy link
Author

Theby commented Jan 6, 2014

validates_timeliness.en.yml debe ubicarse en la carpeta "config/locales/" donde puede estar junto a otros YML.

Para usar este archivo debe reemplazar el archivo original que se genera tras hacer:
rails generate validates_timeliness:install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment