]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/rails-i18n/locale/th.rb
a54d0a47ab5781af31c03d38cbe1d14f4d9965b6
[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
6   :'th' => {
7     :date => {
8       :formats => {
9         :default      => lambda { |date| "%d-%m-#{date.year+543}" },
10         :short        => "%e %b",
11         :long         => lambda { |date| "%e %B #{date.year+543}" },
12         :long_ordinal => lambda { |date| "%e %B #{date.year+543}" },
13         :only_day     => "%e"
14       },
15       :day_names => %w(อาทิตย์ จันทร์ อังคาร พุธ พฤหัสบดี ศุกร์ เสาร์),
16       :abbr_day_names => %w(อา จ อ พ พฤ ศ ส),
17       :month_names => [nil] + %w(มกราคม กุมภาพันธ์ มีนาคม เมษายน พฤษภาคม มิถุนายน กรกฎาคม สิงหาคม กันยายน ตุลาคม พฤศจิกายน ธันวาคม),
18       :abbr_month_names => [nil] + %w(ม.ค. ก.พ. มี.ค. เม.ย. พ.ค. มิ.ย. ก.ค. ส.ค. ก.ย. ต.ค. พ.ย. ธ.ค.),
19       :order => [:day, :month, :year]
20     },
21     :time => {
22       :formats => {
23         :default      => lambda { |time| "%a %d %b #{time.year+543} %H:%M:%S %Z" },
24         :time         => "%H:%M น.",
25         :short        => "%d %b %H:%M น.",
26         :long         => lambda { |time| "%d %B #{time.year+543} %H:%M น." },
27         :long_ordinal => lambda { |time| "%d %B #{time.year+543} %H:%M น." },
28         :only_second  => "%S"
29       },
30       :time_with_zone => {
31         :formats => {
32           :default => lambda { |time| "%Y-%m-%d %H:%M:%S #{time.formatted_offset(false, 'UTC')}" }
33         }
34       },
35       :am => '',
36       :pm => ''
37     },
38     :datetime => {
39       :formats => {
40         :default => "%Y-%m-%dT%H:%M:%S%Z"
41       },
42       :distance_in_words => {
43         :half_a_minute       => 'ครึ่งนาทีที่ผ่านมา',
44         :less_than_x_seconds => 'น้อยกว่า {{count}} วินาที',
45         :x_seconds           => '{{count}} วินาที',
46         :less_than_x_minutes => 'น้อยกว่า {{count}} วินาที',
47         :x_minutes           => '{{count}} นาที',
48         :about_x_hours       => 'ประมาณ {{count}} ชั่วโมง',
49         :x_hours             => '{{count}} ชั่วโมง',
50         :about_x_days        => 'ประมาณ {{count}} วัน',
51         :x_days              => '{{count}} วัน',
52         :about_x_months      => 'ประมาณ {{count}} เดือน',
53         :x_months            => '{{count}} เดือน',
54         :about_x_years       => 'ประมาณ {{count}} ปี',
55         :over_x_years        => 'เกิน {{count}} ปี'
56       }
57     },
58
59     # numbers
60     :number => {
61       :format => {
62         :precision => 3,
63         :separator => '.',
64         :delimiter => ','
65       },
66       :currency => {
67         :format => {
68           :unit => 'Baht',
69           :precision => 2,
70           :format => '%n %u'
71         }
72       },
73       :human => {
74         :format => {
75           :precision => 1,
76           :delimiter => ''
77         },
78        :storage_units => {
79          :format => "%n %u",
80          :units => {
81            :byte => "B",
82            :kb   => "KB",
83            :mb   => "MB",
84            :gb   => "GB",
85            :tb   => "TB",
86          }
87        }
88       },
89     },
90
91     # Active Record
92     :activerecord => {
93       :errors => {
94         :template => {
95           :header => {
96             :one => "ไม่สามารถบันทึก {{model}} ได้เนื่องจากเกิดข้อผิดพลาด",
97             :other => "ไม่สามารถบันทึก {{model}} ได้เนื่องจากเกิด {{count}} ข้อผิดพลาด"
98           },
99           :body => "โปรดตรวจสอบข้อมูลที่คุณกรอกในช่องต่อไปนี้:"
100         },
101         :messages => {
102           :inclusion => "ไม่ได้อยู่ในลิสต์",
103           :exclusion => "ถูกจองเอาไว้แล้ว",
104           :invalid => "ไม่ถูกต้อง",
105           :confirmation => "ไม่ตรงกับการยืนยัน",
106           :accepted  => "ต้องอยู่ในรูปแบบที่ยอมรับ",
107           :empty => "ต้องไม้เว้นว่างเอาไว้",
108           :blank => "ต้องไม่เว้นว่างเอาไว้",
109           :too_long => "ยาวเกินไป (ต้องไม่เกิน {{count}} ตัวอักษร)",
110           :too_short => "สั้นเกินไป (ต้องยาวกว่า {{count}} ตัวอักษร)",
111           :wrong_length => "มีความยาวไม่ถูกต้อง (ต้องมีความยาว {{count}} ตัวอักษร)",
112           :taken => "ถูกใช้ไปแล้ว",
113           :not_a_number => "ไม่ใช่ตัวเลข",
114           :greater_than => "ต้องมากกว่า {{count}}",
115           :greater_than_or_equal_to => "ต้องมากกว่าหรือเท่ากับ {{count}}",
116           :equal_to => "ต้องเท่ากับ {{count}}",
117           :less_than => "ต้องน้อยกว่า {{count}}",
118           :less_than_or_equal_to => "ต้องน้อยกว่าหรือเท่ากับ {{count}}",
119           :odd => "ต้องเป็นเลขคี่",
120           :even => "ต้องเป็นเลขคู่"
121         }
122       }
123     }
124   }
125
126