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