rails-i18n 0.2.0.beta1 → 0.2.0.beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/rails/locale/th.yml +198 -0
- metadata +5 -5
- data/rails/locale/th.rb +0 -199
data/rails/locale/th.yml
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
# Thai translation for Ruby on Rails
|
2
|
+
# original by Prem Sichanugrist (s@sikachu.com/sikandsak@gmail.com)
|
3
|
+
# activerecord keys fixed by Jittat Fakcharoenphol (jittat@gmail.com)
|
4
|
+
#
|
5
|
+
# Note: You must install i18n gem in order to use this language pack.
|
6
|
+
|
7
|
+
th:
|
8
|
+
date:
|
9
|
+
formats:
|
10
|
+
default: "%d-%m-%Y"
|
11
|
+
short: "%d %b"
|
12
|
+
long: "%d %B %Y"
|
13
|
+
|
14
|
+
day_names:
|
15
|
+
- "อาทิตย์
|
16
|
+
- จันทร์
|
17
|
+
- อังคาร
|
18
|
+
- พุธ
|
19
|
+
- พฤหัสบดี
|
20
|
+
- ศุกร์
|
21
|
+
- เสาร์"
|
22
|
+
abbr_day_names:
|
23
|
+
- "อา
|
24
|
+
- จ
|
25
|
+
- อ
|
26
|
+
- พ
|
27
|
+
- พฤ
|
28
|
+
- ศ
|
29
|
+
- ส"
|
30
|
+
month_names:
|
31
|
+
- ~
|
32
|
+
- "มกราคม"
|
33
|
+
- "กุมภาพันธ์"
|
34
|
+
- "มีนาคม
|
35
|
+
- เมษายน
|
36
|
+
- พฤษภาคม
|
37
|
+
- มิถุนายน
|
38
|
+
- กรกฎาคม
|
39
|
+
- สิงหาคม
|
40
|
+
- กันยายน
|
41
|
+
- ตุลาคม
|
42
|
+
- พฤศจิกายน
|
43
|
+
- ธันวาคม"
|
44
|
+
abbr_month_names:
|
45
|
+
- ~
|
46
|
+
- "ม.ค.
|
47
|
+
- ก.พ.
|
48
|
+
- มี.ค.
|
49
|
+
- เม.ย.
|
50
|
+
- พ.ค.
|
51
|
+
- มิ.ย.
|
52
|
+
- ก.ค.
|
53
|
+
- ส.ค.
|
54
|
+
- ก.ย.
|
55
|
+
- ต.ค.
|
56
|
+
- พ.ย.
|
57
|
+
- ธ.ค."
|
58
|
+
order:
|
59
|
+
- :day
|
60
|
+
- :month
|
61
|
+
- :year
|
62
|
+
|
63
|
+
time:
|
64
|
+
formats:
|
65
|
+
default: "%a %d %b %Y %H:%M:%S %z"
|
66
|
+
short: "%d %b %H:%M น."
|
67
|
+
long: "%d %B %Y %H:%M น."
|
68
|
+
am: "ก่อนเที่ยง"
|
69
|
+
pm: "หลังเที่ยง"
|
70
|
+
|
71
|
+
support:
|
72
|
+
array:
|
73
|
+
words_connector: ", "
|
74
|
+
two_words_connector: " และ "
|
75
|
+
last_word_connector: ", และ "
|
76
|
+
|
77
|
+
select:
|
78
|
+
prompt: "โปรดเลือก"
|
79
|
+
|
80
|
+
number:
|
81
|
+
format:
|
82
|
+
separator: "."
|
83
|
+
delimiter: ","
|
84
|
+
precision: 3
|
85
|
+
significant: false
|
86
|
+
strip_insignificant_zeros: false
|
87
|
+
|
88
|
+
currency:
|
89
|
+
format:
|
90
|
+
format: "%n %u"
|
91
|
+
unit: "บาท"
|
92
|
+
separator: "."
|
93
|
+
delimiter: ","
|
94
|
+
precision: 2
|
95
|
+
significant: false
|
96
|
+
strip_insignificant_zeros: false
|
97
|
+
|
98
|
+
percentage:
|
99
|
+
format:
|
100
|
+
delimiter: ""
|
101
|
+
|
102
|
+
precision:
|
103
|
+
format:
|
104
|
+
delimiter: ""
|
105
|
+
|
106
|
+
human:
|
107
|
+
format:
|
108
|
+
delimiter: ""
|
109
|
+
precision: 3
|
110
|
+
significant: true
|
111
|
+
strip_insignificant_zeros: true
|
112
|
+
storage_units:
|
113
|
+
format: "%n %u"
|
114
|
+
units:
|
115
|
+
byte: "ไบต์"
|
116
|
+
kb: "กิโลไบต์"
|
117
|
+
mb: "เมกะไบต์"
|
118
|
+
gb: "จิกะไบต์"
|
119
|
+
tb: "เทระไบต์"
|
120
|
+
|
121
|
+
decimal_units:
|
122
|
+
format: "%n %u"
|
123
|
+
units:
|
124
|
+
unit: ""
|
125
|
+
thousand: "พัน"
|
126
|
+
million: "ล้าน"
|
127
|
+
billion: "พันล้าน"
|
128
|
+
trillion: "ล้านล้าน"
|
129
|
+
quadrillion: "พันล้านล้าน"
|
130
|
+
|
131
|
+
datetime:
|
132
|
+
distance_in_words:
|
133
|
+
half_a_minute: "ครึ่งนาที"
|
134
|
+
less_than_x_seconds: "น้อยกว่า %{count} วินาที"
|
135
|
+
x_seconds: "%{count} วินาที"
|
136
|
+
less_than_x_minutes: "น้อยกว่า %{count} นาที"
|
137
|
+
x_minutes: "%{count} นาที"
|
138
|
+
about_x_hours: "ประมาณ %{count} ชั่วโมง"
|
139
|
+
x_days: "%{count} วัน"
|
140
|
+
about_x_months: "ประมาณ %{count} เดือน"
|
141
|
+
x_months: "%{count} เดือน"
|
142
|
+
about_x_years: "ประมาณ %{count} ปี"
|
143
|
+
over_x_years: "มากกว่า %{count} ปี"
|
144
|
+
almost_x_years: "เกือบ %{count} ปี"
|
145
|
+
prompts:
|
146
|
+
year: "ปี"
|
147
|
+
month: "เดือน"
|
148
|
+
day: "วัน"
|
149
|
+
hour: "ชั่วโมง"
|
150
|
+
minute: "นาที"
|
151
|
+
second: "วินาที"
|
152
|
+
|
153
|
+
helpers:
|
154
|
+
select:
|
155
|
+
prompt: "โปรดเลือก"
|
156
|
+
|
157
|
+
submit:
|
158
|
+
create: "สร้าง%{model}"
|
159
|
+
update: "ปรับปรุง%{model}"
|
160
|
+
submit: "บันทึก%{model}"
|
161
|
+
|
162
|
+
errors:
|
163
|
+
format: "%{attribute} %{message}"
|
164
|
+
messages: &errors_messages
|
165
|
+
inclusion: "ไม่ได้อยู่ในรายการ"
|
166
|
+
exclusion: "ไม่ได้รับอนุญาตให้ใช้"
|
167
|
+
invalid: "ไม่ถูกต้อง"
|
168
|
+
confirmation: "ไม่ตรงกับการยืนยัน"
|
169
|
+
accepted: "ต้องถูกยอมรับ"
|
170
|
+
empty: "ต้องไม่เว้นว่างเอาไว้"
|
171
|
+
blank: "ต้องไม่เว้นว่างเอาไว้"
|
172
|
+
too_long: "ยาวเกินไป (ต้องไม่เกิน %{count} ตัวอักษร)"
|
173
|
+
too_short: "สั้นเกินไป (ต้องยาวกว่า %{count} ตัวอักษร)"
|
174
|
+
wrong_length: "มีความยาวไม่ถูกต้อง (ต้องมีความยาว %{count} ตัวอักษร)"
|
175
|
+
not_a_number: "ไม่ใช่ตัวเลข"
|
176
|
+
not_an_integer: "ไม่ใช่จำนวนเต็ม"
|
177
|
+
greater_than: "ต้องมากกว่า %{count}"
|
178
|
+
greater_than_or_equal_to: "ต้องมากกว่าหรือเท่ากับ %{count}"
|
179
|
+
equal_to: "ต้องมีค่าเท่ากับ %{count}"
|
180
|
+
less_than: "ต้องมีค่าน้อยกว่า %{count}"
|
181
|
+
less_than_or_equal_to: "ต้องมีค่าน้อยกว่าหรือเท่ากับ %{count}"
|
182
|
+
odd: "ต้องเป็นจำนวนคี่"
|
183
|
+
even: "ต้องเป็นจำนวนคู่"
|
184
|
+
taken: "ถูกใช้ไปแล้ว"
|
185
|
+
record_invalid: "ไม่ผ่านการตรวจสอบ: %{errors}"
|
186
|
+
template: &errors_template
|
187
|
+
header: "พบข้อผิดพลาด %{count} ประการ ทำให้ไม่สามารถบันทึก%{model}ได้"
|
188
|
+
body: "โปรดตรวจสอบข้อมูลในช่องต่อไปนี้:"
|
189
|
+
|
190
|
+
activerecord:
|
191
|
+
errors:
|
192
|
+
messages:
|
193
|
+
<<: *errors_messages
|
194
|
+
template:
|
195
|
+
<<: *errors_template
|
196
|
+
|
197
|
+
full_messages:
|
198
|
+
format: "%{attribute} %{message}"
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-i18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196359
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 0.2.0.
|
11
|
+
- 2
|
12
|
+
version: 0.2.0.beta2
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Rails I18n Group
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-11-
|
20
|
+
date: 2011-11-28 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: i18n
|
@@ -75,6 +75,7 @@ files:
|
|
75
75
|
- rails/locale/nn.yml
|
76
76
|
- rails/locale/hi.yml
|
77
77
|
- rails/locale/zh-TW.yml
|
78
|
+
- rails/locale/th.yml
|
78
79
|
- rails/locale/el.yml
|
79
80
|
- rails/locale/bg.yml
|
80
81
|
- rails/locale/ko.yml
|
@@ -105,7 +106,6 @@ files:
|
|
105
106
|
- rails/locale/de-AT.yml
|
106
107
|
- rails/locale/cs.yml
|
107
108
|
- rails/locale/dsb.yml
|
108
|
-
- rails/locale/th.rb
|
109
109
|
- rails/locale/hsb.yml
|
110
110
|
- rails/locale/it.yml
|
111
111
|
- rails/locale/gsw-CH.yml
|
data/rails/locale/th.rb
DELETED
@@ -1,199 +0,0 @@
|
|
1
|
-
# Thai translation for Ruby on Rails
|
2
|
-
# original by Prem Sichanugrist (s@sikachu.com/sikandsak@gmail.com)
|
3
|
-
# activerecord keys fixed by Jittat Fakcharoenphol (jittat@gmail.com)
|
4
|
-
#
|
5
|
-
# Note: You must install i18n gem in order to use this language pack.
|
6
|
-
# If you're calling I18n.localize(Time.now), the year will be in Bhuddhist calendar
|
7
|
-
|
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
|
-
},
|
94
|
-
|
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 => "เทระไบต์"
|
122
|
-
}
|
123
|
-
},
|
124
|
-
|
125
|
-
:decimal_units => {
|
126
|
-
:format => "%n %u",
|
127
|
-
:units => {
|
128
|
-
:unit => "",
|
129
|
-
:thousand => "พัน",
|
130
|
-
:million => "ล้าน",
|
131
|
-
:billion => "พันล้าน",
|
132
|
-
:trillion => "ล้านล้าน",
|
133
|
-
:quadrillion => "พันล้านล้าน"
|
134
|
-
}
|
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
|
-
},
|
163
|
-
|
164
|
-
:helpers => {
|
165
|
-
:select => {
|
166
|
-
:prompt => "โปรดเลือก"
|
167
|
-
},
|
168
|
-
|
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 => "โปรดตรวจสอบข้อมูลในช่องต่อไปนี้:"
|
186
|
-
},
|
187
|
-
|
188
|
-
:messages => {
|
189
|
-
:taken => "ถูกใช้ไปแล้ว",
|
190
|
-
:record_invalid => "ไม่ผ่านการตรวจสอบ: %{errors}"
|
191
|
-
}.merge(ThaiLocaleI18n::ERROR_MESSAGES),
|
192
|
-
|
193
|
-
:full_messages => {
|
194
|
-
:format => "%{attribute} %{message}"
|
195
|
-
},
|
196
|
-
}
|
197
|
-
}
|
198
|
-
|
199
|
-
}}
|