]> git.openstreetmap.org Git - rails.git/blob - vendor/rails-locales/fun/gibberish.rb
Switch to using the rails-i18n-updater gem instead of the rails-i18n plugin
[rails.git] / vendor / rails-locales / fun / gibberish.rb
1 {
2   :'gibberish' => {
3     # date and time formats
4     :date => {
5       :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"}
11       },
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]
18     },
19     :time => {
20       :formats => {
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)"
27       },
28         :datetime => {
29           :formats => {
30             :default => "%Y-%m-%dT%H:%M:%S%Z"
31           }
32         },
33         :time_with_zone => {
34           :formats => {
35             :default => lambda { |time| "%Y-%m-%d %H:%M:%S #{time.formatted_offset(false, 'UTC')}" }
36           }
37         },
38       :am => 'am-ish',
39       :pm => 'pm-ish'
40     },
41
42     # date helper distance in words
43     :datetime => {
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'}
56       }
57     },
58
59     # numbers
60     :number => {
61       :format => {
62         :precision => 3,
63         :separator => ',',
64         :delimiter => '.'
65       },
66       :currency => {
67         :format => {
68           :unit => 'Gib-$',
69           :precision => 2,
70           :format => '%n %u'
71         }
72       }
73     },
74
75     # Active Record
76     :activerecord => {
77       :errors => {
78         :template => {
79           :header => {
80             :one => "Couldn't save this %{model}: 1 error", 
81             :other => "Couldn't save this %{model}: %{count} errors."
82           },
83           :body => "Please check the following fields, dude:"
84         },
85         :messages => {
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"
105         }
106       }
107     }
108   }
109 }