Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18n: differenciate error messages between date and time #102

Open
tmaier opened this issue Jun 20, 2013 · 0 comments
Open

I18n: differenciate error messages between date and time #102

tmaier opened this issue Jun 20, 2013 · 0 comments

Comments

@tmaier
Copy link

tmaier commented Jun 20, 2013

I just translated the locale to german.

unfortunately, we use different words when talking about dates or about times.

en:
  errors:
    messages:
      invalid_date: "ist kein gültiges Datum"
      invalid_time: "ist keine gültige Zeit"
      invalid_datetime: "ist keine gültiges Datum mit Zeitangabe"
      is_at: "muss am/um %{restriction} sein"
      before: "muss vor %{restriction} sein"
      on_or_before: "muss am/um oder vor %{restriction} sein"
      after: "muss nach %{restriction} sein"
      on_or_after: "muss am/um oder nach %{restriction} sein"
  validates_timeliness:
    error_value_formats:
      date: '%Y-%m-%d'
      time: '%H:%M:%S'
      datetime: '%Y-%m-%d %H:%M:%S'

so something like this would be great

is_at:
  date: "muss am %{restriction} sein"
  time: "muss um %{restriction} sein"
  datetime: "muss am %{restriction} sein"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants