+
<%= l(:label_user_login_tips) %>
<%= link_to l(:label_user_login_new), signin_path %>
diff --git a/app/views/contests/_new_join.html.erb b/app/views/contests/_new_join.html.erb
index c764690de..3b0cff690 100644
--- a/app/views/contests/_new_join.html.erb
+++ b/app/views/contests/_new_join.html.erb
@@ -36,7 +36,7 @@
}
-
请输入竞赛密码
+
<%=l(:label_please_input_password)%>
<%= form_tag( join_in_contest_contests_path(id: contest.id),
:remote => true,
diff --git a/app/views/contests/add.js.erb b/app/views/contests/add.js.erb
index 9c696d8aa..0706d0c56 100644
--- a/app/views/contests/add.js.erb
+++ b/app/views/contests/add.js.erb
@@ -1,4 +1,4 @@
$('#contesting_project_list').html('<%= escape_javascript(render(:partial => 'project_list', :locals => {:contesting_project => @contesting_project})) %>');
-$("#project_id").val("请选择项目");
+$("#project_id").val("<%= l(:label_please_select_project) %>");
$("#contest_message").val( "<%= l(:label_bid_reason) %>" );
$("#put-bid-form").hide();
\ No newline at end of file
diff --git a/app/views/contests/add_softapplication.js.erb b/app/views/contests/add_softapplication.js.erb
index 6071c7070..dfe774100 100644
--- a/app/views/contests/add_softapplication.js.erb
+++ b/app/views/contests/add_softapplication.js.erb
@@ -1,4 +1,4 @@
$('#contesting_softapplication_list').html('<%= escape_javascript(render(:partial => 'softapplication_list', :locals => {:contesting_softapplication => @contesting_softapplication})) %>');
-$("#softapplication_id").val("请选择参赛应用");
+$("#softapplication_id").val("<%= l(:label_please_select_contestingsoftapplication) %>");
$("#contest_message").val( "<%= l(:label_bid_reason) %>" );
$("#put-bid-form").hide();
\ No newline at end of file
diff --git a/app/views/contests/show_attendingcontest.html.erb b/app/views/contests/show_attendingcontest.html.erb
index bbd01c241..8a567bd53 100644
--- a/app/views/contests/show_attendingcontest.html.erb
+++ b/app/views/contests/show_attendingcontest.html.erb
@@ -1,170 +1,177 @@
<%= render_flash_messages %>
-
温馨提示:如果您准备参加竞赛,请点击下面的"新建参赛作品"!
-
1) 若您已完成开发,且只希望发布您的作品,“托管项目”一项可以不选;
-
2) 若您希望托管竞赛数据和代码以及保留开发和提交代码的轨迹,请从“托管项目”中选择一项您已创建好的项目作为该参赛作品的托管项目,若您还没有创建项目,请点击右边的“创建项目”,然后回到本页再选择。
+
<%= l(:label_wellmeaning_intimation_contentone) %>
+
1) <%= l(:label_wellmeaning_intimation_contenttwo) %>
+
2) <%= l(:label_wellmeaning_intimation_contentthree) %>
<% if User.current.logged? %>
-
-
- 参加竞赛:
- <%= link_to '新建参赛作品', "javascript:void(0);", onclick: "$('#put-project-form').toggle();" %>
-
-
-
-
+
+
+ <%= l(:label_attending_contest) %>:
+ <%= link_to l(:label_new_attendingcontest_work), "javascript:void(0);", onclick: "$('#put-project-form').toggle();" %>
+
+
<% else %>
-
- <%= l(:label_user_login_attending_contest) %>
- <%= link_to l(:label_user_login_new), signin_path %>
-
+
+ <%= l(:label_user_login_attending_contest) %>
+ <%= link_to l(:label_user_login_new), signin_path %>
+
<% end %>
@@ -176,173 +183,185 @@
<% if @contest.id == 2 or @contest.id == 3 or @contest.id == 6 %>
-<% @contesting_project.sort.reverse.each do |c_project|%>
-<% if c_project.project %>
-
-
-
-
参赛作品: <%= link_to(c_project.project.name, project_path(c_project.project), :target => '_blank') %>
-
-
-
-
- <% if get_prize(c_project).nil? or get_prize(c_project) == "" %>
+ <% @contesting_project.sort.reverse.each do |c_project| %>
+ <% if c_project.project %>
+
+
+
+ <%= l(:label_contest_work) %>
+ : <%= link_to(c_project.project.name, project_path(c_project.project), :target => '_blank') %>
+
+
+
+
+
+ <% if get_prize(c_project).nil? or get_prize(c_project) == "" %>
<% if @contest.deadline < Date.today %>
- <%= l(:label_noawards)%>
- <% else%>
- <%= l(:label_noawards_current)%>
+ <%= l(:label_noawards) %>
+ <% else %>
+ <%= l(:label_noawards_current) %>
<% end %>
<% else %>
- <% case get_prize(c_project) %>
+ <% case get_prize(c_project) %>
<% when '-1' %>
- <%= image_tag("/images/bid/special_reward.png")%>
+ <%= image_tag("/images/bid/special_reward.png") %>
<% when '0' %>
- <%= image_tag("/images/bid/first_reward.png")%>
+ <%= image_tag("/images/bid/first_reward.png") %>
<% when '1' %>
- <%= image_tag("/images/bid/second_reward.png")%>
+ <%= image_tag("/images/bid/second_reward.png") %>
<% when '2' %>
- <%= image_tag("/images/bid/third_reward.png")%>
+ <%= image_tag("/images/bid/third_reward.png") %>
<% when '3' %>
- <%= image_tag("/images/bid/forth_reward.png")%>
+ <%= image_tag("/images/bid/forth_reward.png") %>
<% when '4' %>
- <%= image_tag("/images/bid/fifth_reward.png")%>
+ <%= image_tag("/images/bid/fifth_reward.png") %>
<% when '5' %>
- <%= image_tag("/images/bid/qualified.png")%>
+ <%= image_tag("/images/bid/qualified.png") %>
<% end %>
<% end %>
-
- |
-
-
- <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
-
- <%= toggle_link '评奖', c_project.id.to_s %>
-
-
- <%= form_for "set_reward_project",:remote=>true,:url=>set_reward_project_contest_path do |f| %>
- <%= f.text_field :c_id,:style => "display:none",:value => c_project.id,:size=>"0" %>
- <%= f.select :reward,"
+
+ |
+
+
+ <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
+
+ <%= toggle_link l(:label_reward), c_project.id.to_s %>
+
+
+ <%= form_for "set_reward_project", :remote => true, :url => set_reward_project_contest_path do |f| %>
+ <%= f.text_field :c_id, :style => "display:none", :value => c_project.id, :size => "0" %>
+ <%= f.select :reward, "
-
-
-
- ".html_safe %>
- <%= f.submit "提交",:class=>"submit" %>
+
+
+
+ ".html_safe %>
+ <%= f.submit :value => l(:button_submit), :class => "submit" %>
<% end %>
-
- |
- <% end %>
-
-
-
-
-
-
- 简介: |
- <%= c_project.project.description.truncate(90, omission: '...') %> |
-
-
-
- 参赛时间:<%= format_time c_project.created_at%>
- 参赛代表:<%= c_project.user.name %>
-
-
-
-
-
-
-<% end %>
-
-<% end %>
+
+ |
+ <% end %>
+
+
+
+
+
+
+
+ <%= l(:label_profile) %>: |
+ <%= c_project.project.description.truncate(90, omission: '...') %> |
+
+
+
+
+ <%= l(:label_attendingcontest_time) %>
+ :<%= format_time c_project.created_at %>
+ <%= l(:label_attendingcontest_spoksman) %>
+ :<%= c_project.user.name %>
+
+
+
+
+
+
+ <% end %>
+
+ <% end %>
<% else %>
-<% @contesting_softapplication.each do |c_softapplication|%>
-<% if c_softapplication.softapplication %>
-
-
-
- 参赛作品: |
- <%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %> |
-
-
-
-
-
- 简介: |
- <%= c_softapplication.softapplication.description.truncate(90, omission: '...') %> |
-
-
-
-
- 参赛时间:<%= format_time c_softapplication.created_at %>
- 参赛代表:<%= c_softapplication.softapplication.user.name %>
-
-
-
-
-
最终得分:<%= c_softapplication.softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s%>分
+ <% @contesting_softapplication.each do |c_softapplication| %>
+ <% if c_softapplication.softapplication %>
+
+
+
+ <%= l(:label_contest_work) %>: |
+ <%= link_to(c_softapplication.softapplication.name, softapplication_path(c_softapplication.softapplication), :target => '_blank') %> |
+
+
+
+
+
+
+ <%= l(:label_profile) %>: |
+ <%= c_softapplication.softapplication.description.truncate(90, omission: '...') %> |
+
+
+
+
+
+ <%= l(:label_attendingcontest_time) %>
+ :<%= format_time c_softapplication.created_at %>
+ <%= l(:label_attendingcontest_spoksman) %>
+ :<%= c_softapplication.softapplication.user.name %>
+
+
+
+
+
<%= l(:label_final_scores) %>
+ :<%= c_softapplication.softapplication.average(:quality).try(:avg).try(:round, 2).to_i.to_s %>
+ 分
-
-
- <% if get_prize(c_softapplication).nil? or get_prize(c_softapplication) == "" %>
+
+
+ <% if get_prize(c_softapplication).nil? or get_prize(c_softapplication) == "" %>
<% if @contest.deadline < Date.today %>
- <%= l(:label_noawards)%>
- <% else%>
- <%= l(:label_noawards_current)%>
+ <%= l(:label_noawards) %>
+ <% else %>
+ <%= l(:label_noawards_current) %>
<% end %>
<% else %>
- <% case get_prize(c_softapplication) %>
+ <% case get_prize(c_softapplication) %>
<% when '-1' %>
- <%= image_tag("/images/bid/special_reward.png")%>
+ <%= image_tag("/images/bid/special_reward.png") %>
<% when '0' %>
- <%= image_tag("/images/bid/first_reward.png")%>
+ <%= image_tag("/images/bid/first_reward.png") %>
<% when '1' %>
- <%= image_tag("/images/bid/second_reward.png")%>
+ <%= image_tag("/images/bid/second_reward.png") %>
<% when '2' %>
- <%= image_tag("/images/bid/third_reward.png")%>
+ <%= image_tag("/images/bid/third_reward.png") %>
<% when '3' %>
- <%= image_tag("/images/bid/forth_reward.png")%>
+ <%= image_tag("/images/bid/forth_reward.png") %>
<% when '4' %>
- <%= image_tag("/images/bid/fifth_reward.png")%>
+ <%= image_tag("/images/bid/fifth_reward.png") %>
<% when '5' %>
- <%= image_tag("/images/bid/qualified.png")%>
+ <%= image_tag("/images/bid/qualified.png") %>
<% end %>
<% end %>
-
- |
+
+
- <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
-
+ <% if ((User.current.id == @contest.author_id) && (@contest.deadline > Date.today))||User.current.admin %>
+
<%= toggle_link '评奖', c_softapplication.id.to_s %>
-
- <%= form_for "set_reward_softapplication",:remote=>true,:url=>set_reward_softapplication_contest_path do |f| %>
- <%= f.text_field :c_id,:style => "display:none",:value => c_softapplication.id,:size=>"0" %>
- <%= f.select :reward,"
+
+ <%= form_for "set_reward_softapplication", :remote => true, :url => set_reward_softapplication_contest_path do |f| %>
+ <%= f.text_field :c_id, :style => "display:none", :value => c_softapplication.id, :size => "0" %>
+ <%= f.select :reward, "
-
-
-
- ".html_safe %>
- <%= f.submit "提交",:class=>"submit" %>
+
+
+
+ ".html_safe %>
+ <%= f.submit :value => l(:button_submit), :class => "submit" %>
<% end %>
-
-
+
+
<% end %>
-
-
-
-<% end %>
-
-<% end %>
+
+
+
+ <% end %>
+
+ <% end %>
<% end %>
diff --git a/app/views/contests/show_notification.html.erb b/app/views/contests/show_notification.html.erb
new file mode 100644
index 000000000..e69de29bb
diff --git a/app/views/contests/show_project.html.erb b/app/views/contests/show_project.html.erb
index 202d3b632..3e759cfc1 100644
--- a/app/views/contests/show_project.html.erb
+++ b/app/views/contests/show_project.html.erb
@@ -68,7 +68,7 @@
- <%= link_to '创建项目', new_project_path(course: 0, project_type: 0), :target=>'_blank'%>
+ <%= link_to l(:label_create_new_projects), new_project_path(course: 0, project_type: 0), :target=>'_blank'%>
|
diff --git a/app/views/contests/show_softapplication.html.erb b/app/views/contests/show_softapplication.html.erb
index 14c907d82..d12a70e35 100644
--- a/app/views/contests/show_softapplication.html.erb
+++ b/app/views/contests/show_softapplication.html.erb
@@ -68,7 +68,7 @@
- <%= link_to '发布应用', new_softapplication_path(:target=>'_blank'), :target=>'_blank' %>
+ <%= link_to l(:label_release_softapplication), new_softapplication_path(:target=>'_blank'), :target=>'_blank' %>
|
diff --git a/app/views/softapplications/_form.html.erb b/app/views/softapplications/_form.html.erb
index 4703af9be..fd946cfc5 100644
--- a/app/views/softapplications/_form.html.erb
+++ b/app/views/softapplications/_form.html.erb
@@ -65,7 +65,7 @@