From 3620cd99b62f07902075fbe54fbd3887464bc969 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Fri, 17 Apr 2015 12:00:47 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E7=AC=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 51c209e9d..5e67e0a2c 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -337,7 +337,7 @@ class ProjectsController < ApplicationController end end if params[:repository] == "pswd_is_null" - html << l(:label_password_not_null)<< ";" + html << l(:label_password_not_null) end flash[:error] = html if !html.to_s.blank? end From 3bba1f93b484f70b422aee55ad19b85c6fd43e2e Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Fri, 17 Apr 2015 12:01:31 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=BA=93=E5=90=8D?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=9D=A1=E4=BB=B6=E6=8F=8F=E8=BF=B0=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E6=8D=A2=E8=A1=8C=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/locales/projects/zh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/locales/projects/zh.yml b/config/locales/projects/zh.yml index bd09f2538..3c4d4a97c 100644 --- a/config/locales/projects/zh.yml +++ b/config/locales/projects/zh.yml @@ -352,7 +352,7 @@ zh: field_enterprise_name: 组织名称 label_organization_choose: --请选择组织-- text_length_between: "长度必须在 %{min} 到 %{max} 个字符之间。" - text_project_identifier_info: "小写字母(a-z)、数字、破折号(-)和下划线(_)可以使用。
一旦保存,标识无法修改。" + text_project_identifier_info: "小写字母(a-z)、数字、破折号(-)和下划线(_)可以使用。一旦保存,标识无法修改。" field_is_public: 公开 field_hidden_repo: 隐藏代码库 From 5e8848f962a395cd84e5ed93a77a61bb6e00a59c Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Fri, 17 Apr 2015 12:44:27 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../settings/_new_repositories.html.erb | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/app/views/projects/settings/_new_repositories.html.erb b/app/views/projects/settings/_new_repositories.html.erb index aa188bd69..a5f476079 100644 --- a/app/views/projects/settings/_new_repositories.html.erb +++ b/app/views/projects/settings/_new_repositories.html.erb @@ -4,7 +4,7 @@ $("#pro_st_edit_ku").toggle(); } -<%= error_messages_for 'repository' %> +<%= str = error_messages_for 'repository' %> <% project_path_cut = RepositoriesHelper::PROJECT_PATH_CUT %> <% ip = RepositoriesHelper::REPO_IP_ADDRESS %> <% if @project.repositories.any? %> @@ -64,7 +64,7 @@
- 保存 - 取消 + <%=l(:button_save)%> + <%=l(:button_cancel)%>
<% end %> \ No newline at end of file From f8951c004468248f25e713778ce388228b5b21d4 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Fri, 17 Apr 2015 12:55:07 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/settings/_new_versions.html.erb | 14 +++++++------- app/views/versions/_form.html.erb | 12 ++++++------ app/views/versions/edit.html.erb | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/views/projects/settings/_new_versions.html.erb b/app/views/projects/settings/_new_versions.html.erb index 6365354c3..ffc301cf5 100644 --- a/app/views/projects/settings/_new_versions.html.erb +++ b/app/views/projects/settings/_new_versions.html.erb @@ -57,32 +57,32 @@
diff --git a/app/views/versions/_form.html.erb b/app/views/versions/_form.html.erb index d9a02b8f1..f0ed7c84f 100644 --- a/app/views/versions/_form.html.erb +++ b/app/views/versions/_form.html.erb @@ -3,29 +3,29 @@
diff --git a/app/views/versions/edit.html.erb b/app/views/versions/edit.html.erb index c249572aa..7f6fe3658 100644 --- a/app/views/versions/edit.html.erb +++ b/app/views/versions/edit.html.erb @@ -2,6 +2,6 @@ <%= labelled_form_for @version,:html=>{:id=>"new_project_version_form"} do |f| %> <%= render :partial => 'form', :locals => { :f => f } %> - 保存 + <%=l(:button_save)%> <% end %>