]> git.openstreetmap.org Git - rails.git/blob - vendor/plugins/rails-i18n/locale/th.rb
Icelandic day names should be in lower case
[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     },
74
75     # Active Record
76     :activerecord => {
77       :errors => {
78         :template => {
79           :header => {
80             :one => "ไม่สามารถบันทึก {{model}} ได้เนื่องจากเกิดข้อผิดพลาด",
81             :other => "ไม่สามารถบันทึก {{model}} ได้เนื่องจากเกิด {{count}} ข้อผิดพลาด"
82           },
83           :body => "โปรดตรวจสอบข้อมูลที่คุณกรอกในช่องต่อไปนี้:"
84         },
85         :messages => {
86           :inclusion => "ไม่ได้อยู่ในลิสต์",
87           :exclusion => "ถูกจองเอาไว้แล้ว",
88           :invalid => "ไม่ถูกต้อง",
89           :confirmation => "ไม่ตรงกับการยืนยัน",
90           :accepted  => "ต้องอยู่ในรูปแบบที่ยอมรับ",
91           :empty => "ต้องไม้เว้นว่างเอาไว้",
92           :blank => "ต้องไม่เว้นว่างเอาไว้",
93           :too_long => "ยาวเกินไป (ต้องไม่เกิน {{count}} ตัวอักษร)",
94           :too_short => "สั้นเกินไป (ต้องยาวกว่า {{count}} ตัวอักษร)",
95           :wrong_length => "มีความยาวไม่ถูกต้อง (ต้องมีความยาว {{count}} ตัวอักษร)",
96           :taken => "ถูกใช้ไปแล้ว",
97           :not_a_number => "ไม่ใช่ตัวเลข",
98           :greater_than => "ต้องมากกว่า {{count}}",
99           :greater_than_or_equal_to => "ต้องมากกว่าหรือเท่ากับ {{count}}",
100           :equal_to => "ต้องเท่ากับ {{count}}",
101           :less_than => "ต้องน้อยกว่า {{count}}",
102           :less_than_or_equal_to => "ต้องน้อยกว่าหรือเท่ากับ {{count}}",
103           :odd => "ต้องเป็นเลขคี่",
104           :even => "ต้องเป็นเลขคู่"
105         }
106       }
107     }
108   }
109
110