diff --git a/app/views/welcome/contest.html.erb b/app/views/welcome/contest.html.erb index 4bc96cdc1..e65e25304 100644 --- a/app/views/welcome/contest.html.erb +++ b/app/views/welcome/contest.html.erb @@ -154,9 +154,9 @@ <%= link_to(contest.name, show_contest_contest_path(contest.id), :class => "d-g-blue d-p-project-name", :title => "#{contest.name}", :target => "_blank") %> <% if contest.id == 2 or contest.id == 3 or contest.id == 6 %> - (<%= link_to("含#{contest.projects.where('is_public=1').count}个作品", show_attendingcontest_contest_path(contest), :target => "_blank") %>) + (<%= link_to("#{contest.projects.where('is_public=1').count}"+l(:label_work_quantity), show_attendingcontest_contest_path(contest), :target => "_blank") %>) <% else %> - (<%= link_to("含#{contest.contesting_softapplications.count}个作品", show_attendingcontest_contest_path(contest), :target => "_blank") %>) + (<%= link_to("#{contest.contesting_softapplications.count}"+l(:label_work_quantity), show_attendingcontest_contest_path(contest), :target => "_blank") %>) <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 54057a702..ffe8b5e31 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1633,6 +1633,7 @@ en: label_reply: Reply label_weixin: WeiXin label_search_intimation: please input the keywords + label_work_quantity: work #end # ajax异步验证 diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 9b77a5f57..b924a24b2 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -1976,6 +1976,7 @@ zh: label_reply: 回复 label_weixin: 微信扫码 label_search_intimation: 请输入要搜索的关键字 + label_work_quantity: 个作品 #end #end