From 4ca5687b3bf328fffe395521738aa1512249b08e Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 20 Mar 2015 11:37:09 +0800 Subject: [PATCH] =?UTF-8?q?#2072=E6=B5=8B=E8=AF=95=E7=89=88--=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE--=E9=97=AE=E9=A2=98=E8=B7=9F=E8=B8=AA=EF=BC=9A?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E6=96=B0=E5=BB=BA=E9=97=AE=E9=A2=98=E5=90=8E?= =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E4=B8=BA?= =?UTF-8?q?=E2=80=9C=E9=97=AE=E9=A2=98=E5=B7=B2=E5=88=9B=E5=BB=BA=E2=80=9D?= =?UTF-8?q?=E5=B0=B1=E5=A5=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/issues_controller.rb | 3 ++- config/locales/projects/en.yml | 1 + config/locales/projects/zh.yml | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index de9477b8a..790718e5d 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -162,7 +162,8 @@ class IssuesController < ApplicationController respond_to do |format| format.html { render_attachment_warning_if_needed(@issue) - flash[:notice] = l(:notice_issue_successful_create, :id => view_context.link_to("#{@issue.subject}", issue_path(@issue), :title => @issue.subject)) + flash[:notice] = l(:label_successful_create) + #flash[:notice] = l(:notice_issue_successful_create, :id => view_context.link_to("#{@issue.subject}", issue_path(@issue), :title => @issue.subject)) #flash[:notice] = l(:notice_issue_successful_create, :id => view_context.link_to("##{@issue.id}", issue_path(@issue), :title => @issue.subject)) if params[:continue] attrs = {:tracker_id => @issue.tracker, :parent_issue_id => @issue.parent_issue_id}.reject {|k,v| v.nil?} diff --git a/config/locales/projects/en.yml b/config/locales/projects/en.yml index 5aca81426..ccd0a46c5 100644 --- a/config/locales/projects/en.yml +++ b/config/locales/projects/en.yml @@ -136,6 +136,7 @@ en: # 项目托管平台 # # 问题跟踪 + label_successful_create: Successfully created # diff --git a/config/locales/projects/zh.yml b/config/locales/projects/zh.yml index bd547c37e..298c364c6 100644 --- a/config/locales/projects/zh.yml +++ b/config/locales/projects/zh.yml @@ -140,6 +140,7 @@ zh: # 项目托管平台 # # 问题跟踪 + label_successful_create: 创建成功 #