# HG changeset patch # User Jittat Fakcharoenphol # Date 2010-04-22 10:25:55 # Node ID 86a1405eb6ed658128dc5f2fb5e471f44d2aacea # Parent 77a5c6e76df31e93676b5c917a87ed4c59d102e4 add i18n for contest start confirmation page diff --git a/app/views/main/confirm_contest_start.html.haml b/app/views/main/confirm_contest_start.html.haml --- a/app/views/main/confirm_contest_start.html.haml +++ b/app/views/main/confirm_contest_start.html.haml @@ -1,12 +1,16 @@ = user_title_bar(@user) -%center - You will participate in contest: - - @contests.each do |contest| - = contest.title - %br +.announcementbox + %span{:class => 'title'} + =t 'main.confirm_contest_start.box_title' + .announcement + %center + =t 'main.confirm_contest_start.contest_list' + - @contests.each do |contest| + = contest.title + %br - The timer will start after you click the start button. + =t 'main.confirm_contest_start.timer_starts_after_click' - - form_tag :action => 'confirm_contest_start', :method => 'post' do - = submit_tag 'Start!', :confirm => 'Are you sure?' + - form_tag :action => 'confirm_contest_start', :method => 'post' do + = submit_tag t('main.confirm_contest_start.start_button'), :confirm => t('main.confirm_contest_start.start_button_confirm') diff --git a/config/locales/en.yml b/config/locales/en.yml --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -49,6 +49,13 @@ src_link: "src" submissions_link: "submissions" + confirm_contest_start: + box_title: "Contest confirmation" + contest_list: "You will participate in contest:" + timer_starts_after_click: "The timer will start after you click the start button." + start_button: "Start!" + start_button_confirm: "Are you sure?" + test: title: "Test Interface" intro: "You can test your submission with your own test data on the grading environment using this test interface." diff --git a/config/locales/th.yml b/config/locales/th.yml --- a/config/locales/th.yml +++ b/config/locales/th.yml @@ -23,7 +23,7 @@ help: 'ความช่วยเหลือ' settings: 'เปลี่ยนรหัสผ่าน' log_out: 'ออกจากระบบ' - + title_bar: current_time: "เวลาปัจจุบันคือ" remaining_time: "เหลือเวลาอีก" @@ -49,6 +49,13 @@ src_link: "ต้นฉบับ" submissions_link: "การส่งครั้งอื่น ๆ" + confirm_contest_start: + box_title: "ยืนยันการเริ่มแข่งขัน" + contest_list: "การแข่งขันที่คุณจะเข้าร่วมคือ " + timer_starts_after_click: "การจับเวลาจะเริ่มขึ้นเมื่อคุณกดปุ่มด้านล่าง" + start_button: "เริ่มแข่ง!" + start_button_confirm: "แน่ใจที่จะเริ่มแข่งหรือไม่?" + test: title: "ทดสอบโปรแกรมบนสภาพแวดล้อมของเครื่องตรวจ" intro: "คุณสามารถทดลองการทำงานของโปรแกรมที่เขียนกับข้อมูลชุดทดสอบของคุณเองในสภาพแวดล้อมจริงของการตรวจโปรแกรมได้ โดยเลือกโปรแกรมส่งแล้วที่ด้านล่างพร้อมทั้งส่งแฟ้มข้อมูลชุดทดสอบที่ต้องการให้ทำงานด้วย"