From 518de571239f8e954aa40c8d82fa39d48f8d7f15 Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Wed, 21 May 2014 11:24:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=8F=82=E8=B5=9B=E4=BD=9C=E5=93=81?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E6=9B=B4=E6=96=B0=E5=90=8E=E7=9A=84=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E8=AF=AD=E4=BF=AE=E6=94=B9=E4=B8=BA=E6=B1=89=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/softapplications_controller.rb | 2 +- config/locales/zh.yml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/softapplications_controller.rb b/app/controllers/softapplications_controller.rb index 00fd9c0e0..31675ca5d 100644 --- a/app/controllers/softapplications_controller.rb +++ b/app/controllers/softapplications_controller.rb @@ -173,7 +173,7 @@ class SoftapplicationsController < ApplicationController @softapplication.deposit_project = params[:project] respond_to do |format| if @softapplication.update_attributes(params[:softapplication]) - format.html { redirect_to @softapplication, notice: 'Softapplication was successfully updated.' } + format.html { redirect_to @softapplication, notice: l(:notice_softapplication_was_successfully_updated) } format.json { head :no_content } else format.html { render action: "edit" } diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 9c98323b5..ed1a3c4a1 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -1901,7 +1901,8 @@ zh: label_noawards_current: 暂未评奖 notice_account_updated: 帐号更新成功 - notice_attendingcontest_work_successfully_created: 恭喜您,参赛作品成功创建! + notice_attendingcontest_work_successfully_created: 恭喜您,参赛作品创建成功! + notice_softapplication_was_successfully_updated: 恭喜您,参赛作品更新成功! # ajax异步验证 modal_valid_passing: 可以使用 \ No newline at end of file