okiess (owner)

Revisions

gist: 130629 Download_button fork
public
Public Clone URL: git://gist.github.com/130629.git
Embed All Files: show embed
Text #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
en:
  date:
    formats:
      default: "%Y-%m-%d"
      short: "%e %b"
      long: "%B %e, %Y"
      only_day: "%e"
 
    day_names: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
    abbr_day_names: [Sun, Mon, Tue, Wed, Thu, Fri, Sat]
    month_names: [~, January, February, March, April, May, June, July, August, September, October, November, December]
    abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
    order: [ :year, :month, :day ]
  
  time:
    formats:
      default: "%a %b %d %H:%M:%S %Z %Y"
      time: "%H:%M"
      short: "%B %d, %Y"
      long: "%B %d, %Y - %I:%M %p"
      only_second: "%S"
      
      datetime:
        formats:
          default: "%Y-%m-%dT%H:%M:%S%Z"
          
      am: 'am'
      pm: 'pm'
 
  datetime:
    distance_in_words:
      half_a_minute: 'half a minute'
      less_than_x_seconds:
        zero: 'less than 1 second'
        one: '1 second'
        other: '{{count}} seconds'
      x_seconds:
        one: '1 second'
        other: '{{count}} seconds'
      less_than_x_minutes:
        zero: 'less than a minute'
        one: '1 minute'
        other: '{{count}} minutes'
      x_minutes:
        one: '1 minute'
        other: '{{count}} minutes'
      about_x_hours:
        one: 'about 1 hour'
        other: '{{count}} hours'
      x_days:
        one: ''
        other: '{{count}} days'
      about_x_months:
        one: 'about 1 month'
        other: '{{count}} months'
      x_months:
        one: '1 month'
        other: '{{count}} months'
      about_x_years:
        one: 'about 1 year'
        other: '{{count}} years'
      over_x_years:
        one: 'over 1 year'
        other: '{{count}} years'
    prompts:
      second: "seconds"
      minute: "minutes"
      hour: "hours"
      day: "day"
      month: "month"
      year: "year"
 
  number:
    format:
      precision: 3
      separator: '.'
      delimiter: ','
    currency:
      format:
        unit: '$'
        format: '%u %n'
        separator:
        delimiter:
        precision:
    percentage:
      format:
        delimiter: ""
    precision:
      format:
        delimiter: ""
    human:
      format:
        delimiter: ""
        precision: 1
      storage_units:
        # Storage units output formatting.
        # %u is the storage unit, %n is the number (default: 2 MB)
        format: "%n %u"
        units:
          byte:
            one: "Byte"
            other: "Bytes"
          kb: "KB"
          mb: "MB"
          gb: "GB"
          tb: "TB"
 
  support:
    array:
      words_connector: ", "
      two_words_connector: " and "
      last_word_connector: " and "
 
  activerecord:
    errors:
      template:
        header:
          one: "Couldn't save this {{model}}: 1 error"
          other: "Couldn't save this {{model}}: {{count}} errors."
        body: "Please check the following fields:"
 
      messages:
        inclusion: "is not included in the list"
        exclusion: "is not available"
        invalid: "is not valid"
        confirmation: "does not match its confirmation"
        accepted: "must be accepted"
        empty: "must be given"
        blank: "must be given"
        too_long: "is too long (no more than {{count}} characters)"
        too_short: "is too short (no less than {{count}} characters)"
        wrong_length: "is not the right length (must be {{count}} characters)"
        taken: "is not available"
        not_a_number: "is not a number"
        greater_than: "must be greater than {{count}}"
        greater_than_or_equal_to: "must be greater than or equal to {{count}}"
        equal_to: "must be equal to {{count}}"
        less_than: "must be less than or equal to {{count}}"
        less_than_or_equal_to: "must be less or even to {{count}}"
        odd: "must be odd"
        even: "must be even"
      #models:
 
  txt:
    app_name: 'social networking demo application'