微小修改国际化

This commit is contained in:
kaizheng 2013-08-12 23:26:02 +08:00
parent 9e0eccb78f
commit 8309be475a
4 changed files with 10 additions and 4 deletions

View File

@ -1006,7 +1006,7 @@ module ApplicationHelper
html << "<div id='errorExplanation'><ul>\n"
errors.each do |error|
###by xianbo
if(error!="库路径 不能为空字符")
if(error!="#{l(:abel_repository_path_not_null)}")
html << "<li>#{h error}</li>\n"
end
###xianbo
@ -1014,7 +1014,7 @@ module ApplicationHelper
###by xianbo
unless pramas[:repository].nil?
if params[:repository][:upassword]==""
html << "<li>密码不能设置为空。</li>\n"
html << "<li>"+ l(:label_password_not_null) +"</li>\n"
end
end
###xianbo

View File

@ -163,7 +163,7 @@ module RepositoriesHelper
content_tag('p', form.text_field(:url, :size => 60, :required => true,
:disabled => !repository.safe_attribute?('url')) +
'<br />'.html_safe +
"<em class='info'>".html_safe+"定义已有版本库URL路径定义格式file:///, http://, https://, svn://, svn+[tunnelscheme]://"+"</em>".html_safe) +
"<em class='info'>".html_safe+"#{l(:label_exist_repository_path)}"+"</em>".html_safe) +
content_tag('p', form.text_field(:login, :size => 30))+
content_tag('p', form.password_field(
:password, :size => 30, :name => 'ignore',

View File

@ -1231,4 +1231,7 @@ en:
label_repository_path: path of repository
label_repository_new_repos: create a new repository
label_repository_no: have no repository?
label_welcome_page_to: Participate %{project_count} projects
label_welcome_page_to: Participate %{project_count} projects
label_repository_path_not_null: repository path can't be null
label_password_not_null: password can't be null。
label_exist_repository_path: Define exist repository's path of URL and format must be file:///, http://, https://, svn://

View File

@ -1244,3 +1244,6 @@ zh:
label_board_description: 七嘴八舌,汇聚众人智慧,为您排忧解难!
label_create_course_description: 课程小社区,创建新课程,让我们共同分享多到想不到的公共资源!
label_welcome_page_to: 参与了 %{project_count} 个项目!
label_repository_path_not_null: 库路径 不能为空字符
label_password_not_null: 密码不能设置为空。
label_exist_repository_path: 定义已有版本库URL路径定义格式file:///, http://, https://, svn://