diff options
Diffstat (limited to 'app/controllers/projects/wikis_controller.rb')
-rw-r--r-- | app/controllers/projects/wikis_controller.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/app/controllers/projects/wikis_controller.rb b/app/controllers/projects/wikis_controller.rb index 88fccfed509..ed19ec2aa9f 100644 --- a/app/controllers/projects/wikis_controller.rb +++ b/app/controllers/projects/wikis_controller.rb @@ -1,3 +1,4 @@ +#encoding: utf-8 require 'project_wiki' class Projects::WikisController < Projects::ApplicationController @@ -47,7 +48,7 @@ class Projects::WikisController < Projects::ApplicationController if @page.update(content, format, message) redirect_to( namespace_project_wiki_path(@project.namespace, @project, @page), - notice: 'Wiki was successfully updated.' + notice: '维基更新成功。' ) else render 'edit' @@ -60,7 +61,7 @@ class Projects::WikisController < Projects::ApplicationController if @page.create(wiki_params) redirect_to( namespace_project_wiki_path(@project.namespace, @project, @page), - notice: 'Wiki was successfully updated.' + notice: '维基更新成功。' ) else render action: "edit" @@ -73,7 +74,7 @@ class Projects::WikisController < Projects::ApplicationController unless @page redirect_to( namespace_project_wiki_path(@project.namespace, @project, :home), - notice: "Page not found" + notice: "页面不存在" ) end end @@ -84,7 +85,7 @@ class Projects::WikisController < Projects::ApplicationController redirect_to( namespace_project_wiki_path(@project.namespace, @project, :home), - notice: "Page was successfully deleted" + notice: "维基删除成功" ) end @@ -99,7 +100,7 @@ class Projects::WikisController < Projects::ApplicationController # Call #wiki to make sure the Wiki Repo is initialized @project_wiki.wiki rescue ProjectWiki::CouldNotCreateWikiError - flash[:notice] = "Could not create Wiki Repository at this time. Please try again later." + flash[:notice] = "现在不能创建维基版本仓库。请稍后重试。" redirect_to project_path(@project) return false end |