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.
Files changed (74) hide show
  1. data/config/locales/ar.yml +4 -1
  2. data/config/locales/bg.yml +4 -1
  3. data/config/locales/bn-IN.yml +4 -1
  4. data/config/locales/bs.yml +4 -1
  5. data/config/locales/{ca-ES.yml → ca.yml} +16 -1
  6. data/config/locales/{cz.rb → cs.rb} +2 -2
  7. data/config/locales/cy.yml +181 -0
  8. data/config/locales/da.yml +115 -87
  9. data/config/locales/de-AT.yml +29 -15
  10. data/config/locales/de-CH.yml +154 -0
  11. data/config/locales/de.yml +89 -37
  12. data/config/locales/dsb.yml +185 -182
  13. data/config/locales/el.yml +95 -153
  14. data/config/locales/en-AU.yml +180 -0
  15. data/config/locales/en-GB.yml +210 -0
  16. data/config/locales/en-US.yml +182 -0
  17. data/config/locales/eo.yml +182 -0
  18. data/config/locales/es-AR.yml +150 -141
  19. data/config/locales/es-CO.yml +79 -46
  20. data/config/locales/es-MX.yml +81 -13
  21. data/config/locales/es-PE.yml +124 -0
  22. data/config/locales/es.yml +183 -84
  23. data/config/locales/et.yml +93 -15
  24. data/config/locales/eu.yml +264 -0
  25. data/config/locales/fa.yml +36 -12
  26. data/config/locales/fi.yml +6 -5
  27. data/config/locales/fr-CA.yml +187 -0
  28. data/config/locales/fr-CH.yml +111 -50
  29. data/config/locales/fr.yml +95 -53
  30. data/config/locales/fun/en-AU.rb +1 -1
  31. data/config/locales/fun/gibberish.rb +2 -2
  32. data/config/locales/fur.yml +4 -1
  33. data/config/locales/gl-ES.yml +4 -1
  34. data/config/locales/gsw-CH.yml +182 -0
  35. data/config/locales/he.yml +4 -1
  36. data/config/locales/hi-IN.yml +181 -0
  37. data/config/locales/hi.yml +181 -0
  38. data/config/locales/hr.yml +4 -1
  39. data/config/locales/hsb.yml +193 -190
  40. data/config/locales/hu.yml +4 -1
  41. data/config/locales/id.yml +35 -15
  42. data/config/locales/is.yml +5 -2
  43. data/config/locales/it.yml +76 -24
  44. data/config/locales/ja.yml +72 -23
  45. data/config/locales/ko.yml +131 -98
  46. data/config/locales/lo.yml +42 -39
  47. data/config/locales/lt.yml +4 -1
  48. data/config/locales/lv.yml +58 -9
  49. data/config/locales/mk.yml +4 -1
  50. data/config/locales/mn.yml +159 -0
  51. data/config/locales/nb.yml +44 -7
  52. data/config/locales/nl.yml +171 -158
  53. data/config/locales/nn.yml +5 -2
  54. data/config/locales/pl.yml +117 -51
  55. data/config/locales/pt-BR.yml +85 -25
  56. data/config/locales/pt-PT.yml +132 -162
  57. data/config/locales/rm.yml +4 -1
  58. data/config/locales/ro.yml +6 -3
  59. data/config/locales/ru.yml +4 -1
  60. data/config/locales/sk.yml +195 -139
  61. data/config/locales/sl.yml +4 -1
  62. data/config/locales/sr-Latn.yml +4 -1
  63. data/config/locales/sr.yml +4 -1
  64. data/config/locales/sv.yml +85 -32
  65. data/config/locales/sw.yml +135 -76
  66. data/config/locales/th.rb +180 -203
  67. data/config/locales/tr.yml +4 -1
  68. data/config/locales/uk.yml +4 -1
  69. data/config/locales/vi.yml +4 -1
  70. data/config/locales/zh-CN.yml +91 -12
  71. data/config/locales/zh-TW.yml +92 -14
  72. data/lib/gemspec.rb +1 -1
  73. data/lib/refinery/i18n.rb +1 -1
  74. metadata +18 -5
@@ -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: "%Y-%m-%d"
8
- # TODO the short and long date formats are temporary until I can talk with someone...
9
- short: "%e ya %b"
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
- month_names: [~, Januari, Februari, Machi, Aprili, Mei, Juni, Julai, Agosti, Septemba, Oktoba, Novemba, Desemba]
15
- # TODO these abbreviated month names are temporary until I can talk with someone...
16
- abbr_month_names: [~, Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec]
17
- order: [ :year, :month, :day ]
18
-
19
- # time:
20
- # formats:
21
- # default: "%A, %e. %B %Y, %H:%M Uhr"
22
- # short: "%e. %B, %H:%M Uhr"
23
- # long: "%A, %e. %B %Y, %H:%M Uhr"
24
- #
25
- # am: "vormittags"
26
- # pm: "nachmittags"
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 1'
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
- # number:
65
- # format:
66
- # precision: 2
67
- # separator: ','
68
- # delimiter: '.'
69
- # currency:
70
- # format:
71
- # unit: ''
72
- # format: '%n%u'
73
- # separator:
74
- # delimiter:
75
- # precision:
76
- # percentage:
77
- # format:
78
- # delimiter: ""
79
- # precision:
80
- # format:
81
- # delimiter: ""
82
- # human:
83
- # format:
84
- # delimiter: ""
85
- # precision: 1
86
- #
87
- support:
88
- array:
89
- words_connector: ", "
90
- two_words_connector: " na "
91
- last_word_connector: ", na "
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: "Tumeshindwa kuhifadhi %{model} hii kwa sababu ya jambo limoja."
99
- other: "Tumeshindwa kuhifadhi %{model} hii kwa sababu ya mambo %{count}."
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
- # inclusion: "is not included in the list"
106
- exclusion: "haiwezi kutumika"
107
- invalid: "haifai"
108
- confirmation: "haifanani na hapo chini"
109
- # accepted: "must be accepted"
110
- empty: "haitakiwi kuwa wazi"
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
- :'th' => {
10
- :number => {
11
- # Used in number_with_delimiter()
12
- # These are also the defaults for 'currency', 'percentage', 'precision', and 'human'
13
- :format => {
14
- # Sets the separator between the units, for more precision (e.g. 1.0 / 2.0 == 0.5)
15
- :separator => ".",
16
- # Delimets thousands (e.g. 1,000,000 is a million) (always in groups of three)
17
- :delimiter => ",",
18
- # Number of decimals, behind the separator (the number 1 with a precision of 2 :gives => 1.00)
19
- :precision => 3
20
- },
21
-
22
- # Used in number_to_currency()
23
- :currency => {
24
- :format => {
25
- # Where is the currency sign? %u is the currency unit, %n the number :(default => $5.00)
26
- :format => "%n %u",
27
- :unit => "บาท",
28
- # These three are to override number.format and are optional
29
- :separator => ".",
30
- :delimiter => ",",
31
- :precision => 2
32
- }
33
- },
34
-
35
- # Used in number_to_percentage()
36
- :percentage => {
37
- :format => {
38
- # These three are to override number.format and are optional
39
- # :separator => ".",
40
- :delimiter => "",
41
- # :precision => 3
42
- }
43
- },
44
-
45
- # Used in number_to_precision()
46
- :precision => {
47
- :format => {
48
- # These three are to override number.format and are optional
49
- # :separator => ".",
50
- :delimiter => "",
51
- # :precision => 3
52
- }
53
- },
54
-
55
- # Used in number_to_human_size()
56
- :human => {
57
- :format => {
58
- # These three are to override number.format and are optional
59
- # :separator => ".",
60
- :delimiter => ",",
61
- :precision => 1
62
- },
63
-
64
- :storage_units => {
65
- # Storage units output formatting.
66
- # %u is the storage unit, %n is the number :(default => 2 MB)
67
- :format => "%n %u",
68
- :units => {
69
- :byte => {
70
- :one => "Byte",
71
- :other => "Bytes"
72
- },
73
- :kb => "KB",
74
- :mb => "MB",
75
- :gb => "GB",
76
- :tb => "TB"
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
- # Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
83
- :datetime => {
84
- :distance_in_words => {
85
- :half_a_minute => "ครึ่งนาที",
86
- :less_than_x_seconds => "น้อยกว่า %{count} วินาที",
87
- :x_seconds => "%{count} วินาที",
88
- :less_than_x_minutes => "น้อยกว่า %{count} นาที",
89
- :x_minutes => "%{count} นาที",
90
- :about_x_hours => "ประมาณ %{count} ชั่วโมง",
91
- :x_days => "%{count} วัน",
92
- :about_x_months => "ประมาณ %{count} เดือน",
93
- :x_months => "%{count} เดือน",
94
- :about_x_years => "ประมาณ %{count} ปี",
95
- :over_x_years => "มากกว่า %{count} ปี",
96
- :almost_x_years => "เกือบ %{count} ปี",
97
- },
98
- :prompts => {
99
- :year => "ปี",
100
- :month => "เดือน",
101
- :day => "วัน",
102
- :hour => "ชั่วโมง",
103
- :minute => "นาที",
104
- :second => "วินาที",
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
- :activemodel => {
109
- :errors => {
110
- :template => {
111
- :header => "พบข้อผิดพลาด %{count} ประการ ทำให้ไม่สามารถบันทึก%{model}ได้",
112
- # The variable :count is also available
113
- :body => "โปรดตรวจสอบข้อมูลต่อไปนี้:"
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
- :activerecord => {
119
- :errors => {
120
- # The values :model, :attribute and :value are always available for interpolation
121
- # The value :count is available when applicable. Can be used for pluralization.
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
- :date => {
180
- :formats => {
181
- # Use the strftime parameters for formats.
182
- # When no format has been given, it uses default.
183
- # You can provide other formats here if you like!
184
- :default => lambda { |date, opts| "%d-%m-#{date.year + 543}" },
185
- :short => "%e %b",
186
- :long => lambda { |date, opts| "%e %B #{date.year + 543}" },
187
- },
188
-
189
- :day_names => ["อาทิตย์", "จันทร์", "อังคาร", "พุธ", "พฤหัสบดี", "ศุกร์", "เสาร์"],
190
- :abbr_day_names => ["อา", "จ", "อ", "พ", "พฤ", "ศ", "ส"],
191
-
192
- # Don't forget the nil at the beginning; there's no such thing as a 0th month
193
- :month_names => [nil, "มกราคม", "กุมภาพันธ์", "มีนาคม", "เมษายน", "พฤษภาคม", "มิถุนายน", "กรกฎาคม", "สิงหาคม", "กันยายน", "ตุลาคม", "พฤศจิกายน", "ธันวาคม"],
194
- :abbr_month_names => [nil, "ม.ค.", "ก.พ.", "มี.ค.", "เม.ย.", "พ.ค.", "มิ.ย.", "ก.ค.", "ส.ค.", "ก.ย.", "ต.ค.", "พ.ย.", "ธ.ค."],
195
- # Used in date_select and datime_select.
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
- :time => {
200
- :formats => {
201
- :default => lambda { |date, opts| "%a %d %b #{date.year + 543} %H:%M:%S %z" },
202
- :short => "%e %b %H:%M น.",
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
- # Used in array.to_sentence.
210
- :support => {
211
- :array => {
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
+ }}