]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/rails-i18n/locale/th.rb
Update to Rails 2.3.11
[rails.git] / vendor / plugins / rails-i18n / locale / th.rb
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 {
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     },
81
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 => "วินาที",
105       }
106     },
107
108     :activemodel => {
109       :errors => {
110         :template => {
111           :header => "พบข้อผิดพลาด %{count} ประการ ทำให้ไม่สามารถบันทึก%{model}ได้",
112           # The variable :count is also available
113           :body => "โปรดตรวจสอบข้อมูลต่อไปนี้:"
114         }
115       }
116     },
117         
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     },
178
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 ]
197     },
198
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     },
208       
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     }
221   }
222 }