refinerycms-i18n 0.9.9.9 → 0.9.9.10
Sign up to get free protection for your applications and to get access to all the features.
- data/config/locales/ar.yml +4 -1
- data/config/locales/bg.yml +4 -1
- data/config/locales/bn-IN.yml +4 -1
- data/config/locales/bs.yml +4 -1
- data/config/locales/{ca-ES.yml → ca.yml} +16 -1
- data/config/locales/{cz.rb → cs.rb} +2 -2
- data/config/locales/cy.yml +181 -0
- data/config/locales/da.yml +115 -87
- data/config/locales/de-AT.yml +29 -15
- data/config/locales/de-CH.yml +154 -0
- data/config/locales/de.yml +89 -37
- data/config/locales/dsb.yml +185 -182
- data/config/locales/el.yml +95 -153
- data/config/locales/en-AU.yml +180 -0
- data/config/locales/en-GB.yml +210 -0
- data/config/locales/en-US.yml +182 -0
- data/config/locales/eo.yml +182 -0
- data/config/locales/es-AR.yml +150 -141
- data/config/locales/es-CO.yml +79 -46
- data/config/locales/es-MX.yml +81 -13
- data/config/locales/es-PE.yml +124 -0
- data/config/locales/es.yml +183 -84
- data/config/locales/et.yml +93 -15
- data/config/locales/eu.yml +264 -0
- data/config/locales/fa.yml +36 -12
- data/config/locales/fi.yml +6 -5
- data/config/locales/fr-CA.yml +187 -0
- data/config/locales/fr-CH.yml +111 -50
- data/config/locales/fr.yml +95 -53
- data/config/locales/fun/en-AU.rb +1 -1
- data/config/locales/fun/gibberish.rb +2 -2
- data/config/locales/fur.yml +4 -1
- data/config/locales/gl-ES.yml +4 -1
- data/config/locales/gsw-CH.yml +182 -0
- data/config/locales/he.yml +4 -1
- data/config/locales/hi-IN.yml +181 -0
- data/config/locales/hi.yml +181 -0
- data/config/locales/hr.yml +4 -1
- data/config/locales/hsb.yml +193 -190
- data/config/locales/hu.yml +4 -1
- data/config/locales/id.yml +35 -15
- data/config/locales/is.yml +5 -2
- data/config/locales/it.yml +76 -24
- data/config/locales/ja.yml +72 -23
- data/config/locales/ko.yml +131 -98
- data/config/locales/lo.yml +42 -39
- data/config/locales/lt.yml +4 -1
- data/config/locales/lv.yml +58 -9
- data/config/locales/mk.yml +4 -1
- data/config/locales/mn.yml +159 -0
- data/config/locales/nb.yml +44 -7
- data/config/locales/nl.yml +171 -158
- data/config/locales/nn.yml +5 -2
- data/config/locales/pl.yml +117 -51
- data/config/locales/pt-BR.yml +85 -25
- data/config/locales/pt-PT.yml +132 -162
- data/config/locales/rm.yml +4 -1
- data/config/locales/ro.yml +6 -3
- data/config/locales/ru.yml +4 -1
- data/config/locales/sk.yml +195 -139
- data/config/locales/sl.yml +4 -1
- data/config/locales/sr-Latn.yml +4 -1
- data/config/locales/sr.yml +4 -1
- data/config/locales/sv.yml +85 -32
- data/config/locales/sw.yml +135 -76
- data/config/locales/th.rb +180 -203
- data/config/locales/tr.yml +4 -1
- data/config/locales/uk.yml +4 -1
- data/config/locales/vi.yml +4 -1
- data/config/locales/zh-CN.yml +91 -12
- data/config/locales/zh-TW.yml +92 -14
- data/lib/gemspec.rb +1 -1
- data/lib/refinery/i18n.rb +1 -1
- metadata +18 -5
data/config/locales/sw.yml
CHANGED
@@ -1,49 +1,110 @@
|
|
1
|
-
# Swahili translations for Rails
|
2
|
-
# by Joachim Mangilima (joachimm3@gmail.com) and Matthew Todd (http://matthewtodd.org)
|
1
|
+
# Swahili translations for Ruby on Rails
|
2
|
+
# - Initially sketched by Joachim Mangilima (joachimm3@gmail.com) and Matthew Todd (http://matthewtodd.org)
|
3
|
+
# - Vastly improved by Joram (namtih58@gmail.com)
|
3
4
|
|
4
5
|
sw:
|
5
6
|
date:
|
6
7
|
formats:
|
7
|
-
default:
|
8
|
-
|
9
|
-
|
10
|
-
long: "%e ya %B, %Y"
|
8
|
+
default: '%d-%m-%Y'
|
9
|
+
short: '%e %b'
|
10
|
+
long: '%e %B, %Y'
|
11
11
|
|
12
12
|
day_names: [Jumpili, Jumatatu, Jumanne, Jumatano, Alhamisi, Ijumaa, Jumamosi]
|
13
13
|
abbr_day_names: [J2, J3, J4, J5, Al, Ij, J1]
|
14
|
-
|
15
|
-
|
16
|
-
abbr_month_names: [~, Jan, Feb,
|
17
|
-
order:
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
14
|
+
|
15
|
+
month_names: [~, Mwezi wa kwanza, Mwezi wa pili, Mwezi wa tatu, Mwezi wa nne, Mwezi wa tano, Mwezi wa sita, Mwezi wa saba, Mwezi wa nane, Mwezi wa tisa, Mwezi wa kumi, Mwezi wa kumi na moja, Mwezi wa kumi na mbili]
|
16
|
+
abbr_month_names: [~, Jan, Feb, Mac, Apr, Mei, Jun, Jul, Ago, Sep, Okt, Nov, Des]
|
17
|
+
order:
|
18
|
+
- :day
|
19
|
+
- :month
|
20
|
+
- :year
|
21
|
+
|
22
|
+
time:
|
23
|
+
formats:
|
24
|
+
default: '%a, %d %b %Y %H:%M:%S'
|
25
|
+
short: '%e %b %Y %H:%M'
|
26
|
+
long: '%A, %e. %B %Y, %H:%M:%S'
|
27
|
+
am: 'am'
|
28
|
+
pm: 'pm'
|
29
|
+
|
30
|
+
support:
|
31
|
+
array:
|
32
|
+
words_connector: ', '
|
33
|
+
two_words_connector: ' na '
|
34
|
+
last_word_connector: ', na '
|
35
|
+
|
36
|
+
select:
|
37
|
+
prompt: 'Tafadhali teua'
|
38
|
+
|
39
|
+
number:
|
40
|
+
format:
|
41
|
+
separator: ','
|
42
|
+
delimiter: '.'
|
43
|
+
precision: 2
|
44
|
+
significant: false
|
45
|
+
strip_insignificant_zeros: false
|
46
|
+
|
47
|
+
currency:
|
48
|
+
format:
|
49
|
+
format: '%n%u'
|
50
|
+
unit: '/='
|
51
|
+
separator: ','
|
52
|
+
delimiter: '.'
|
53
|
+
precision: 2
|
54
|
+
significant: false
|
55
|
+
strip_insignificant_zeros: false
|
56
|
+
|
57
|
+
percentage:
|
58
|
+
format:
|
59
|
+
delimiter: ''
|
60
|
+
|
61
|
+
precision:
|
62
|
+
format:
|
63
|
+
delimiter: ''
|
64
|
+
|
65
|
+
human:
|
66
|
+
format:
|
67
|
+
delimiter: ''
|
68
|
+
precision: 3
|
69
|
+
significant: true
|
70
|
+
strip_insignificant_zeros: true
|
71
|
+
storage_units:
|
72
|
+
format: '%n %u'
|
73
|
+
units:
|
74
|
+
byte:
|
75
|
+
one: 'Byte'
|
76
|
+
other: 'Bytes'
|
77
|
+
kb: 'KB'
|
78
|
+
mb: 'MB'
|
79
|
+
gb: 'GB'
|
80
|
+
tb: 'TB'
|
81
|
+
decimal_units:
|
82
|
+
format: '%n %u'
|
83
|
+
units:
|
84
|
+
unit: ''
|
85
|
+
thousand: Elfu
|
86
|
+
million: Milioni
|
87
|
+
billion: Bilioni
|
88
|
+
trillion: Trilioni
|
89
|
+
quadrillion: Quadrillion
|
27
90
|
|
28
91
|
datetime:
|
29
92
|
distance_in_words:
|
30
93
|
half_a_minute: 'nusu dakika'
|
31
94
|
less_than_x_seconds:
|
32
|
-
zero: 'chini ya sekunde 1'
|
33
95
|
one: 'chini ya sekunde 1'
|
34
96
|
other: 'chini ya sekunde %{count}'
|
35
97
|
x_seconds:
|
36
98
|
one: 'sekunde 1'
|
37
99
|
other: 'sekunde %{count}'
|
38
100
|
less_than_x_minutes:
|
39
|
-
zero: 'chini ya dakika 1'
|
40
101
|
one: 'chini ya dakika 1'
|
41
102
|
other: 'chini ya dakika %{count}'
|
42
103
|
x_minutes:
|
43
104
|
one: 'dakika 1'
|
44
105
|
other: 'dakika %{count}'
|
45
106
|
about_x_hours:
|
46
|
-
one: 'kama saa
|
107
|
+
one: 'kama saa limoja'
|
47
108
|
other: 'kama masaa %{count}'
|
48
109
|
x_days:
|
49
110
|
one: 'siku 1'
|
@@ -60,64 +121,62 @@ sw:
|
|
60
121
|
over_x_years:
|
61
122
|
one: 'zaidi ya mwaka 1'
|
62
123
|
other: 'zaidi ya miaka %{count}'
|
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
|
-
|
124
|
+
almost_x_years:
|
125
|
+
one: 'karibia mwaka'
|
126
|
+
other: 'karibia miaka %{count}'
|
127
|
+
prompts:
|
128
|
+
year: 'Mwaka'
|
129
|
+
month: 'Mwezi'
|
130
|
+
day: 'Siku'
|
131
|
+
hour: 'Saa'
|
132
|
+
minute: 'Dakika'
|
133
|
+
second: 'Sekunde'
|
134
|
+
|
135
|
+
helpers:
|
136
|
+
select:
|
137
|
+
prompt: 'Tafadhali teua'
|
138
|
+
|
139
|
+
submit:
|
140
|
+
create: 'Unda %{model}'
|
141
|
+
update: 'Sasaisha %{model}'
|
142
|
+
submit: 'Akibisha %{model}'
|
143
|
+
|
144
|
+
errors:
|
145
|
+
format: '%{attribute} %{message}'
|
146
|
+
|
147
|
+
messages: &errors_messages
|
148
|
+
inclusion: 'haipo kwenye orodha'
|
149
|
+
exclusion: 'haiwezi kutumika'
|
150
|
+
invalid: 'haifai'
|
151
|
+
confirmation: 'haifanani na hapo chini'
|
152
|
+
accepted: 'lazima ikubaliwe'
|
153
|
+
empty: 'haitakiwi kuwa tupu'
|
154
|
+
blank: 'haitakiwi kuwa wazi'
|
155
|
+
too_long: 'ndefu sana (isizidi herufi %{count})'
|
156
|
+
too_short: 'fupi mno (isipungue herufi %{count})'
|
157
|
+
wrong_length: 'idadi ya herufi hazilingani (inatakiwa %{count})'
|
158
|
+
not_a_number: 'inaruhusiwa namba tu'
|
159
|
+
not_an_integer: 'inaruhusiwa namba tu'
|
160
|
+
greater_than: 'z/iwe zaidi ya {{count}}'
|
161
|
+
greater_than_or_equal_to: 'z/iwe sawa ama zaidi ya {{count}}'
|
162
|
+
equal_to: 'z/iwe sawa na {{count}}'
|
163
|
+
less_than: 'z/isizidi {{count}}'
|
164
|
+
less_than_or_equal_to: 'z/iwe sawa na, ama chini ya {{count}}'
|
165
|
+
odd: 'z/iwe witiri'
|
166
|
+
even: 'z/iwe shufwa'
|
92
167
|
|
93
168
|
activerecord:
|
94
169
|
errors:
|
95
|
-
# TODO this error message template could use some work
|
96
170
|
template:
|
97
171
|
header:
|
98
|
-
one:
|
99
|
-
other:
|
100
|
-
body:
|
172
|
+
one: '%{model} haikuhifadhiwa kwa sababu moja.'
|
173
|
+
other: '%{model} haikuhifadhiwa kwa sababu %{count}.'
|
174
|
+
body: 'Tafadhali kagua sehemu zifuatazo:'
|
101
175
|
|
102
|
-
# The values :model, :attribute and :value are always available for interpolation
|
103
|
-
# The value :count is available when applicable. Can be used for pluralization.
|
104
176
|
messages:
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
blank: "haitakiwi kuwa wazi"
|
112
|
-
too_long: "ndefu sana (isizidi herufi %{count})"
|
113
|
-
too_short: "fupi mno (isipungue herufi %{count})"
|
114
|
-
# wrong_length: "is the wrong length (should be %{count} characters)"
|
115
|
-
taken: "imeshachukuliwa"
|
116
|
-
not_a_number: "inaruhusiwa namba tu"
|
117
|
-
# greater_than: "must be greater than %{count}"
|
118
|
-
# greater_than_or_equal_to: "must be greater than or equal to %{count}"
|
119
|
-
# equal_to: "must be equal to %{count}"
|
120
|
-
# less_than: "must be less than %{count}"
|
121
|
-
# less_than_or_equal_to: "must be less than or equal to %{count}"
|
122
|
-
# odd: "must be odd"
|
123
|
-
# even: "must be even"
|
177
|
+
taken: 'imesajiliwa'
|
178
|
+
record_invalid: "Uhalalishaji umeshindikana: %{errors}"
|
179
|
+
<<: *errors_messages
|
180
|
+
|
181
|
+
full_messages:
|
182
|
+
format: '%{attribute}%{message}'
|
data/config/locales/th.rb
CHANGED
@@ -5,218 +5,195 @@
|
|
5
5
|
# Note: You must install i18n gem in order to use this language pack.
|
6
6
|
# If you're calling I18n.localize(Time.now), the year will be in Bhuddhist calendar
|
7
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
|
-
|
8
|
+
# This is used to DRY up ActiveRecord validation messages
|
9
|
+
unless defined?(ThaiLocaleI18n::ERROR_MESSAGES)
|
10
|
+
module ThaiLocaleI18n
|
11
|
+
ERROR_MESSAGES = {
|
12
|
+
:inclusion => "ไม่ได้อยู่ในรายการ",
|
13
|
+
:exclusion => "ไม่ได้รับอนุญาตให้ใช้",
|
14
|
+
:invalid => "ไม่ถูกต้อง",
|
15
|
+
:confirmation => "ไม่ตรงกับการยืนยัน",
|
16
|
+
:accepted => "ต้องถูกยอมรับ",
|
17
|
+
:empty => "ต้องไม่เว้นว่างเอาไว้",
|
18
|
+
:blank => "ต้องไม่เว้นว่างเอาไว้",
|
19
|
+
:too_long => "ยาวเกินไป (ต้องไม่เกิน %{count} ตัวอักษร)",
|
20
|
+
:too_short => "สั้นเกินไป (ต้องยาวกว่า %{count} ตัวอักษร)",
|
21
|
+
:wrong_length => "มีความยาวไม่ถูกต้อง (ต้องมีความยาว %{count} ตัวอักษร)",
|
22
|
+
:not_a_number => "ไม่ใช่ตัวเลข",
|
23
|
+
:not_an_integer => "ไม่ใช่จำนวนเต็ม",
|
24
|
+
:greater_than => "ต้องมากกว่า %{count}",
|
25
|
+
:greater_than_or_equal_to => "ต้องมากกว่าหรือเท่ากับ %{count}",
|
26
|
+
:equal_to => "ต้องมีค่าเท่ากับ %{count}",
|
27
|
+
:less_than => "ต้องมีค่าน้อยกว่า %{count}",
|
28
|
+
:less_than_or_equal_to => "ต้องมีค่าน้อยกว่าหรือเท่ากับ %{count}",
|
29
|
+
:odd => "ต้องเป็นจำนวนคี่",
|
30
|
+
:even => "ต้องเป็นจำนวนคู่",
|
31
|
+
}
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
{ :'th' => {
|
36
|
+
|
37
|
+
:date => {
|
38
|
+
:formats => {
|
39
|
+
:default => lambda { |date, opts| "%d-%m-#{date.year + 543}" },
|
40
|
+
:short => "%d %b",
|
41
|
+
:long => lambda { |date, opts| "%d %B #{date.year + 543}" },
|
42
|
+
},
|
43
|
+
|
44
|
+
:day_names => ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"],
|
45
|
+
:abbr_day_names => ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส"],
|
46
|
+
|
47
|
+
:month_names => [nil, "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],
|
48
|
+
:abbr_month_names => [nil, "ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
|
49
|
+
:order => [:day, :month, :year]
|
50
|
+
},
|
51
|
+
|
52
|
+
:time => {
|
53
|
+
:formats => {
|
54
|
+
:default => lambda { |date, opts| "%a %d %b #{date.year + 543} %H:%M:%S %z" },
|
55
|
+
:short => "%d %b %H:%M น.",
|
56
|
+
:long => lambda { |date, opts| "%d %B #{date.year + 543} %H:%M น." },
|
57
|
+
},
|
58
|
+
:am => "ก่อนเที่ยง",
|
59
|
+
:pm => "หลังเที่ยง"
|
60
|
+
},
|
61
|
+
|
62
|
+
:support => {
|
63
|
+
:array => {
|
64
|
+
:words_connector => ", ",
|
65
|
+
:two_words_connector => " และ ",
|
66
|
+
:last_word_connector => ", และ ",
|
67
|
+
},
|
68
|
+
|
69
|
+
:select => {
|
70
|
+
:prompt => "โปรดเลือก"
|
71
|
+
}
|
72
|
+
},
|
73
|
+
|
74
|
+
:number => {
|
75
|
+
:format => {
|
76
|
+
:separator => ".",
|
77
|
+
:delimiter => ",",
|
78
|
+
:precision => 3,
|
79
|
+
:significant => false,
|
80
|
+
:strip_insignificant_zeros => false
|
81
|
+
},
|
82
|
+
|
83
|
+
:currency => {
|
84
|
+
:format => {
|
85
|
+
:format => "%n %u",
|
86
|
+
:unit => "บาท",
|
87
|
+
:separator => ".",
|
88
|
+
:delimiter => ",",
|
89
|
+
:precision => 2,
|
90
|
+
:significant => false,
|
91
|
+
:strip_insignificant_zeros => false
|
92
|
+
}
|
93
|
+
},
|
81
94
|
|
82
|
-
|
83
|
-
:
|
84
|
-
:
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
:
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
:
|
95
|
+
:percentage => {
|
96
|
+
:format => {
|
97
|
+
:delimiter => "",
|
98
|
+
}
|
99
|
+
},
|
100
|
+
|
101
|
+
:precision => {
|
102
|
+
:format => {
|
103
|
+
:delimiter => "",
|
104
|
+
}
|
105
|
+
},
|
106
|
+
|
107
|
+
:human => {
|
108
|
+
:format => {
|
109
|
+
:delimiter => "",
|
110
|
+
:precision => 3,
|
111
|
+
:significant => true,
|
112
|
+
:strip_insignificant_zeros => true
|
113
|
+
},
|
114
|
+
:storage_units => {
|
115
|
+
:format => "%n %u",
|
116
|
+
:units => {
|
117
|
+
:byte => "ไบต์",
|
118
|
+
:kb => "กิโลไบต์",
|
119
|
+
:mb => "เมกะไบต์",
|
120
|
+
:gb => "จิกะไบต์",
|
121
|
+
:tb => "เทระไบต์"
|
105
122
|
}
|
106
123
|
},
|
107
124
|
|
108
|
-
:
|
109
|
-
:
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
125
|
+
:decimal_units => {
|
126
|
+
:format => "%n %u",
|
127
|
+
:units => {
|
128
|
+
:unit => "",
|
129
|
+
:thousand => "พัน",
|
130
|
+
:million => "ล้าน",
|
131
|
+
:billion => "พันล้าน",
|
132
|
+
:trillion => "ล้านล้าน",
|
133
|
+
:quadrillion => "พันล้านล้าน"
|
115
134
|
}
|
116
|
-
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
},
|
138
|
+
|
139
|
+
:datetime => {
|
140
|
+
:distance_in_words => {
|
141
|
+
:half_a_minute => "ครึ่งนาที",
|
142
|
+
:less_than_x_seconds => "น้อยกว่า %{count} วินาที",
|
143
|
+
:x_seconds => "%{count} วินาที",
|
144
|
+
:less_than_x_minutes => "น้อยกว่า %{count} นาที",
|
145
|
+
:x_minutes => "%{count} นาที",
|
146
|
+
:about_x_hours => "ประมาณ %{count} ชั่วโมง",
|
147
|
+
:x_days => "%{count} วัน",
|
148
|
+
:about_x_months => "ประมาณ %{count} เดือน",
|
149
|
+
:x_months => "%{count} เดือน",
|
150
|
+
:about_x_years => "ประมาณ %{count} ปี",
|
151
|
+
:over_x_years => "มากกว่า %{count} ปี",
|
152
|
+
:almost_x_years => "เกือบ %{count} ปี",
|
153
|
+
},
|
154
|
+
:prompts => {
|
155
|
+
:year => "ปี",
|
156
|
+
:month => "เดือน",
|
157
|
+
:day => "วัน",
|
158
|
+
:hour => "ชั่วโมง",
|
159
|
+
:minute => "นาที",
|
160
|
+
:second => "วินาที",
|
161
|
+
}
|
162
|
+
},
|
117
163
|
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
:messages => {
|
123
|
-
:inclusion => "ไม่ได้อยู่ในรายการ",
|
124
|
-
:exclusion => "ไม่อนุญาตให้ใช้",
|
125
|
-
:invalid => "ไม่ถูกต้อง",
|
126
|
-
:confirmation => "ไม่ตรงกับการยืนยัน",
|
127
|
-
:accepted => "ต้องถูกยอมรับ",
|
128
|
-
:empty => "ต้องไม่เว้นว่างเอาไว้",
|
129
|
-
:blank => "ต้องไม่เว้นว่างเอาไว้",
|
130
|
-
:too_long => "ยาวเกินไป (ต้องไม่เกิน %{count} ตัวอักษร)",
|
131
|
-
:too_short => "สั้นเกินไป (ต้องยาวกว่า %{count} ตัวอักษร)",
|
132
|
-
:wrong_length => "มีความยาวไม่ถูกต้อง (ต้องมีความยาว %{count} ตัวอักษร)",
|
133
|
-
:taken => "ถูกใช้ไปแล้ว",
|
134
|
-
:not_a_number => "ไม่ใช่ตัวเลข",
|
135
|
-
:greater_than => "ต้องมากกว่า %{count}",
|
136
|
-
:greater_than_or_equal_to => "ต้องมากกว่าหรือเท่ากับ %{count}",
|
137
|
-
:equal_to => "ต้องมีค่าเท่ากับ %{count}",
|
138
|
-
:less_than => "ต้องมีค่าน้อยกว่า %{count}",
|
139
|
-
:less_than_or_equal_to => "ต้องมีค่าน้อยกว่าหรือเท่ากับ %{count}",
|
140
|
-
:odd => "ต้องเป็นจำนวนคี่",
|
141
|
-
:even => "ต้องเป็นจำนวนคู่",
|
142
|
-
:record_invalid => "ไม่ผ่านการตรวจสอบ: %{errors}"
|
143
|
-
# Append your own errors here or at the model/attributes scope.
|
144
|
-
},
|
145
|
-
|
146
|
-
# You can define own errors for models or model attributes.
|
147
|
-
# The values :model, :attribute and :value are always available for interpolation.
|
148
|
-
#
|
149
|
-
# For example,
|
150
|
-
# :models =>
|
151
|
-
# :user =>
|
152
|
-
# :blank => "This is a custom blank message for :%{model} => %{attribute}"
|
153
|
-
# :attributes =>
|
154
|
-
# :login =>
|
155
|
-
# :blank => "This is a custom blank message for User login"
|
156
|
-
# Will define custom blank validation message for User model and
|
157
|
-
# custom blank validation message for login attribute of User model.
|
158
|
-
# models => {
|
159
|
-
#
|
160
|
-
# },
|
161
|
-
},
|
162
|
-
|
163
|
-
# Translate model names. Used in Model.human_name().
|
164
|
-
# :models => {
|
165
|
-
# For example,
|
166
|
-
# :user => "Dude"
|
167
|
-
# will translate User model name to "Dude"
|
168
|
-
# },
|
169
|
-
|
170
|
-
# Translate model attribute names. Used in Model.human_attribute_name(attribute).
|
171
|
-
# :attributes => {
|
172
|
-
# For example,
|
173
|
-
# :user =>
|
174
|
-
# :login => "Handle"
|
175
|
-
# will translate User attribute "login" as "Handle"
|
176
|
-
# },
|
177
|
-
},
|
164
|
+
:helpers => {
|
165
|
+
:select => {
|
166
|
+
:prompt => "โปรดเลือก"
|
167
|
+
},
|
178
168
|
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
:
|
195
|
-
|
196
|
-
:order => [ :day, :month, :year ]
|
169
|
+
:submit => {
|
170
|
+
:create => "สร้าง%{model}",
|
171
|
+
:update => "ปรับปรุง%{model}",
|
172
|
+
:submit => "บันทึก%{model}"
|
173
|
+
}
|
174
|
+
},
|
175
|
+
|
176
|
+
:errors => {
|
177
|
+
:format => "%{attribute}%{message}",
|
178
|
+
:messages => ThaiLocaleI18n::ERROR_MESSAGES
|
179
|
+
},
|
180
|
+
|
181
|
+
:activerecord => {
|
182
|
+
:errors => {
|
183
|
+
:template => {
|
184
|
+
:header => "พบข้อผิดพลาด %{count} ประการ ทำให้ไม่สามารถบันทึก%{model}ได้",
|
185
|
+
:body => "โปรดตรวจสอบข้อมูลในช่องต่อไปนี้:"
|
197
186
|
},
|
198
187
|
|
199
|
-
:
|
200
|
-
:
|
201
|
-
|
202
|
-
|
203
|
-
:long => lambda { |date, opts| "%e %B #{date.year + 543} %H:%M น." },
|
204
|
-
},
|
205
|
-
:am => "",
|
206
|
-
:pm => "",
|
207
|
-
},
|
188
|
+
:messages => {
|
189
|
+
:taken => "ถูกใช้ไปแล้ว",
|
190
|
+
:record_invalid => "ไม่ผ่านการตรวจสอบ: %{errors}"
|
191
|
+
}.merge(ThaiLocaleI18n::ERROR_MESSAGES),
|
208
192
|
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
:words_connector => ", ",
|
213
|
-
:two_words_connector => " และ ",
|
214
|
-
:last_word_connector => ", และ ",
|
215
|
-
},
|
216
|
-
:select => {
|
217
|
-
# default value for :prompt => true in FormOptionsHelper
|
218
|
-
:prompt => "โปรดเลือก"
|
219
|
-
}
|
220
|
-
}
|
193
|
+
:full_messages => {
|
194
|
+
:format => "%{attribute}%{message}"
|
195
|
+
},
|
221
196
|
}
|
222
197
|
}
|
198
|
+
|
199
|
+
}}
|