diff --git a/app/controllers/contests_controller.rb b/app/controllers/contests_controller.rb index 86c4df367..2c09a8809 100644 --- a/app/controllers/contests_controller.rb +++ b/app/controllers/contests_controller.rb @@ -300,13 +300,13 @@ class ContestsController < ApplicationController contest_message = params[:contest_for_save][:contest_message] if ContestingSoftapplication.where("softapplication_id = ? and contest_id = ?", softapplication.id, @contest.id).size == 0 if ContestingSoftapplication.create_softapplication_contesting(@contest.id, softapplication.id, contest_message) - flash.now[:notice] = l(:label_bidding_contest_succeed) + flash.now[:notice] = l(:label_release_add_contest_succeed) end else - flash.now[:error] = l(:label_bidding_fail) + flash.now[:error] = l(:label_add_contest_succeed_fail) end - @contesting_softapplication = @contest.contesting_softapplications + @contesting_softapplication = paginateHelper @contest.contesting_softapplications respond_to do |format| diff --git a/config/locales/zh.yml b/config/locales/zh.yml index a483f32dd..2b1883382 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -1847,5 +1847,8 @@ zh: label_tags_contest: 竞赛标签 label_tags_contest: 竞赛名称 label_tags_contest_description: 竞赛描述 + label_release_add_contest_succeed: 该应用发布并添加成功. + label_add_contest_succeed_fail: 添加失败,该应用已参赛. + \ No newline at end of file