diff --git a/config/locales/th.rb b/config/locales/th.rb --- a/config/locales/th.rb +++ b/config/locales/th.rb @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Thai translation for Ruby on Rails # original by Prem Sichanugrist (s@sikachu.com/sikandsak@gmail.com) # activerecord keys fixed by Jittat Fakcharoenphol (jittat@gmail.com) @@ -41,18 +42,18 @@ }, :distance_in_words => { :half_a_minute => 'ครึ่งนาทีที่ผ่านมา', - :less_than_x_seconds => 'น้อยกว่า {{count}} วินาที', - :x_seconds => '{{count}} วินาที', - :less_than_x_minutes => 'น้อยกว่า {{count}} วินาที', - :x_minutes => '{{count}} นาที', - :about_x_hours => 'ประมาณ {{count}} ชั่วโมง', - :x_hours => '{{count}} ชั่วโมง', - :about_x_days => 'ประมาณ {{count}} วัน', - :x_days => '{{count}} วัน', - :about_x_months => 'ประมาณ {{count}} เดือน', - :x_months => '{{count}} เดือน', - :about_x_years => 'ประมาณ {{count}} ปี', - :over_x_years => 'เกิน {{count}} ปี' + :less_than_x_seconds => 'น้อยกว่า %{count} วินาที', + :x_seconds => '%{count} วินาที', + :less_than_x_minutes => 'น้อยกว่า %{count} วินาที', + :x_minutes => '%{count} นาที', + :about_x_hours => 'ประมาณ %{count} ชั่วโมง', + :x_hours => '%{count} ชั่วโมง', + :about_x_days => 'ประมาณ %{count} วัน', + :x_days => '%{count} วัน', + :about_x_months => 'ประมาณ %{count} เดือน', + :x_months => '%{count} เดือน', + :about_x_years => 'ประมาณ %{count} ปี', + :over_x_years => 'เกิน %{count} ปี' } }, @@ -93,8 +94,8 @@ :errors => { :template => { :header => { - :one => "ไม่สามารถบันทึก {{model}} ได้เนื่องจากเกิดข้อผิดพลาด", - :other => "ไม่สามารถบันทึก {{model}} ได้เนื่องจากเกิด {{count}} ข้อผิดพลาด" + :one => "ไม่สามารถบันทึก %{model} ได้เนื่องจากเกิดข้อผิดพลาด", + :other => "ไม่สามารถบันทึก %{model} ได้เนื่องจากเกิด %{count} ข้อผิดพลาด" }, :body => "โปรดตรวจสอบข้อมูลที่คุณกรอกในช่องต่อไปนี้:" }, @@ -106,16 +107,16 @@ :accepted => "ต้องอยู่ในรูปแบบที่ยอมรับ", :empty => "ต้องไม้เว้นว่างเอาไว้", :blank => "ต้องไม่เว้นว่างเอาไว้", - :too_long => "ยาวเกินไป (ต้องไม่เกิน {{count}} ตัวอักษร)", - :too_short => "สั้นเกินไป (ต้องยาวกว่า {{count}} ตัวอักษร)", - :wrong_length => "มีความยาวไม่ถูกต้อง (ต้องมีความยาว {{count}} ตัวอักษร)", + :too_long => "ยาวเกินไป (ต้องไม่เกิน %{count} ตัวอักษร)", + :too_short => "สั้นเกินไป (ต้องยาวกว่า %{count} ตัวอักษร)", + :wrong_length => "มีความยาวไม่ถูกต้อง (ต้องมีความยาว %{count} ตัวอักษร)", :taken => "ถูกใช้ไปแล้ว", :not_a_number => "ไม่ใช่ตัวเลข", - :greater_than => "ต้องมากกว่า {{count}}", - :greater_than_or_equal_to => "ต้องมากกว่าหรือเท่ากับ {{count}}", - :equal_to => "ต้องเท่ากับ {{count}}", - :less_than => "ต้องน้อยกว่า {{count}}", - :less_than_or_equal_to => "ต้องน้อยกว่าหรือเท่ากับ {{count}}", + :greater_than => "ต้องมากกว่า %{count}", + :greater_than_or_equal_to => "ต้องมากกว่าหรือเท่ากับ %{count}", + :equal_to => "ต้องเท่ากับ %{count}", + :less_than => "ต้องน้อยกว่า %{count}", + :less_than_or_equal_to => "ต้องน้อยกว่าหรือเท่ากับ %{count}", :odd => "ต้องเป็นเลขคี่", :even => "ต้องเป็นเลขคู่" }