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
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(:label_scm)%>:
<%= select_tag('repository_scm',
options_for_select(["Git"],@repository.class.name.demodulize),
:data => {:remote => true, :method => 'get'})%>
@@ -73,25 +73,24 @@
<% end %>
- 主版本库 :
+ <%=l(:field_repository_is_default)%>:
<%= f.check_box :is_default, :label => "" %>
- * 版本库名 :
+ * <%=l(:label_repository_name)%>:
<%= f.text_field :identifier, :disabled =>@repository.nil? || @repository.identifier_frozen? ? true:false,:label=>""%>
<% unless @repository.identifier_frozen? %>
- 长度必须在 1 到 254 个字符之间。 仅小写字母(a-z)、数字、破折号(-)和下划线(_)可以使用。
-一旦保存,标识无法修改。
+ <%=l(:text_length_between,:min=>1,:max=>254)<
<% end %>
- * 密码 :
+ * <%=l(:label_password)%>
<%= f.password_field :upassword, :label=> "" %>
- 该密码在项目组内可共享
+ <%= l(:label_upassword_info)%>
-
保存
-
取消
+
<%=l(:button_save)%>
+
<%=l(:button_cancel)%>
<% end %>
\ No newline at end of file
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 @@
- * 名称:
+ * <%=l(:field_name)%>:
<%= f.text_field :name, :maxlength => 60, :required => true %>
- 描述:
+ <%=l(:label_version_description)%>:
<%= f.text_field :description, :maxlength => 60 %>
- 状态:
+ <%=l(:field_status)%>:
<%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]} %>
- Wiki 页面:
+ <%=l(:label_wiki_page)%>:
<%= f.text_field :wiki_page_title, :size =>60, :label => :label_wiki_page, :disabled => @project.wiki.nil? %>
- 日期:
+ <%=l(:label_date)%>:
<%= f.text_field :effective_date, :size => 10, :readonly => true,:class=>" fl" %>
<%= calendar_for('version_effective_date') %>
- 共享:
+ <%=l(:field_sharing)%>:
<%= f.select :sharing, @project.versions.build.allowed_sharings.collect {|v| [format_version_sharing(v), v]} %>
- 保存
+ <%=l(:button_save)%>
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 @@
- * 名称:
+ * <%=l(:field_name)%>:
<%= f.text_field :name, :maxlength => 60,:class=>" w280", :label => ""%>
- 描述:
+ <%=l(:label_version_description)%>:
<%= f.text_field :description, :maxlength => 60,:class=>" w280", :label => "" %>
- 状态:
+ <%=l(:field_status)%>:
<%= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]}, :label => "" %>
- Wiki 页面:
+ <%=l(:label_wiki_page)%>:
<%= f.text_field :wiki_page_title, :size =>60, :label => "", :disabled => @project.wiki.nil? %>
- 日期:
+ <%=l(:label_date)%>:
<%= f.text_field :effective_date, :size => 10, :readonly => true,:class=>"fl" ,:style=>"margin-left:7px;",:label=>""%>
<%= calendar_for('version_effective_date') %>
- 共享:
+ <%=l(:field_sharing)%>:
<%= f.select :sharing, @version.allowed_sharings.collect {|v| [format_version_sharing(v), v]},:label=>"" %>
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 %>
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: 隐藏代码库