3 # date and time formats
6 :default => "%Y-%m-%d (ish)",
7 :short => "%e %b (ish)",
8 :long => "%B %e, %Y (ish)"
10 :day_names => %w(Sunday-ish Monday-ish Tuesday-ish Wednesday-ish Thursday-ish Friday-ish Saturday-ish),
11 :abbr_day_names => %w(Sun-i Mon-i Tue-i Wed-i Thu-i Fri-i Sat-i),
12 :month_names => [nil] + %w(January-ish February-ish March-ish April-ish May-ish June-ish
13 July-ish August-ish September-ish October-ish November-rish December-ish),
14 :abbr_month_names => [nil] + %w(Jan-i Feb-i Mar-i Apr-i May-i Jun-i Jul-i Aug-i Sep-i Oct-i Nov-i Dec-i),
15 :order => [:day, :month, :year]
19 :default => "%a %b %d %H:%M:%S %Z %Y (ish)",
20 :time => "%H:%M (ish)",
21 :short => "%d %b %H:%M (ish)",
22 :long => "%B %d, %Y %H:%M (ish)"
26 :default => "%Y-%m-%dT%H:%M:%S%Z"
31 :default => lambda { |time| "%Y-%m-%d %H:%M:%S #{time.formatted_offset(false, 'UTC')}" }
38 # date helper distance in words
40 :distance_in_words => {
41 :half_a_minute => 'a halfish minute',
42 :less_than_x_seconds => {:zero => 'less than 1 second', :one => ' less than 1 secondish', :other => 'less than%{count}ish seconds'},
43 :x_seconds => {:one => '1 secondish', :other => '%{count}ish seconds'},
44 :less_than_x_minutes => {:zero => 'less than a minuteish', :one => 'less than 1 minuteish', :other => 'less than %{count}ish minutes'},
45 :x_minutes => {:one => "1ish minute", :other => "%{count}ish minutes"},
46 :about_x_hours => {:one => 'about 1 hourish', :other => 'about %{count}ish hours'},
47 :x_days => {:one => '1ish day', :other => '%{count}ish days'},
48 :about_x_months => {:one => 'about 1ish month', :other => 'about %{count}ish months'},
49 :x_months => {:one => '1ish month', :other => '%{count}ish months'},
50 :about_x_years => {:one => 'about 1ish year', :other => 'about %{count}ish years'},
51 :over_x_years => {:one => 'over 1ish year', :other => 'over %{count}ish years'}
76 :one => "Couldn't save this %{model}: 1 error",
77 :other => "Couldn't save this %{model}: %{count} errors."
79 :body => "Please check the following fields, dude:"
82 :inclusion => "ain't included in the list",
83 :exclusion => "ain't available",
84 :invalid => "ain't valid",
85 :confirmation => "don't match its confirmation",
86 :accepted => "gotta be accepted",
87 :empty => "gotta be given",
88 :blank => "gotta be given",
89 :too_long => "is too long-ish (no more than %{count} characters)",
90 :too_short => "is too short-ish (no less than %{count} characters)",
91 :wrong_length => "ain't got the right length (gotta be %{count} characters)",
92 :taken => "ain't available",
93 :not_a_number => "ain't a number",
94 :greater_than => "gotta be greater than %{count}",
95 :greater_than_or_equal_to => "gotta be greater than or equal to %{count}",
96 :equal_to => "gotta be equal to %{count}",
97 :less_than => "gotta be less than %{count}",
98 :less_than_or_equal_to => "gotta be less than or equal to %{count}",
99 :odd => "gotta be odd",
100 :even => "gotta be even"