项目界面缺失翻译调整

This commit is contained in:
whimlex 2015-04-10 16:59:45 +08:00
parent db219205d9
commit 69153d2d95
20 changed files with 98 additions and 55 deletions

View File

@ -1,11 +1,11 @@
<% if @status == 0%>
alert("您申请的项目不存在");
alert("<%= l('project.join.tips.notexist') %>");
<% elsif @status == 1%>
alert("请勿重复申请加入该项目");
alert("<%= l('project.join.tips.repeat') %>");
<% elsif @status == 2%>
alert("申请成功");
alert("<%= l('project.join.tips.success') %>");
<% elsif @status == 3%>
alert("您已加入该项目");
alert("<%= l('project.join.tips.has') %>");
<%else%>
alert("申请失败");
alert("<%= l('project.join.tips.fail') %>");
<%end%>

View File

@ -28,7 +28,7 @@
}
else
{
$("#homework_attach_name_span").text("填写正确");
$("#homework_attach_name_span").text("<%= l(:label_field_correct)%>");
$("#homework_attach_name_span").css('color','#008000');
return true;
}

View File

@ -58,7 +58,7 @@
<div class="lz">
<div class="project_r_h">
<h2 class="project_h2"><%= h @board.name %></h2>
<h2 class="project_h2"> <%= l(:label_board_plural) %></h2>
</div>
<!-- 在这里添加赞和踩-->
<span id="praise_tread" style="float: right">

View File

@ -7,7 +7,7 @@
<%= f.text_field :title, :required => true, :size => 60, :style => "width:488px;", :onkeyup => "regexTitle();" %>
</p>
<P>
<span id="title_notice_span">(60个字符以内)</span>
<span id="title_notice_span"><%= l(:label_news_title_tips)%></span>
</P>
<!-- <p style="margin-left:-10px;"><%#= f.text_area :summary, :cols => 60, :rows => 2, :style => "width:490px;margin-left:10px;" %></p> -->
<p>

View File

@ -7,20 +7,20 @@
var name = $("#news_title").val();
if(name.length ==0)
{
$("#title_notice_span").text("标题不能为空");
$("#title_notice_span").text("<%= l(:label_title_blank)%>");
$("#title_notice_span").css('color','#ff0000');
$("#title_notice_span").focus();
return false;
}
else if(name.length <= 60)
{
$("#title_notice_span").text("填写正确");
$("#title_notice_span").text("<%= l(:label_field_correct)%>");
$("#title_notice_span").css('color','#008000');
return true;
}
else
{
$("#title_notice_span").text("标题超过60个字符");
$("#title_notice_span").text("<%= l(:label_title_long)%>");
$("#title_notice_span").css('color','#ff0000');
$("#title_notice_span").focus();
return false;
@ -32,14 +32,14 @@
var name = $("#news_description").val();
if(name.length ==0)
{
$("#description_notice_span").text("描述不能为空");
$("#description_notice_span").text("<%= l(:label_descripition_blank)%>");
$("#description_notice_span").css('color','#ff0000');
$("#description_notice_span").focus();
return false;
}
else
{
$("#description_notice_span").text("填写正确");
$("#description_notice_span").text("<%= l(:label_field_correct)%>");
$("#description_notice_span").css('color','#008000');
return true;
}

View File

@ -7,20 +7,20 @@
var name = $("#news_title").val();
if(name.length ==0)
{
$("#title_notice_span").text("标题不能为空");
$("#title_notice_span").text("<%= l(:label_title_blank)%>");
$("#title_notice_span").css('color','#ff0000');
$("#title_notice_span").focus();
return false;
}
else if(name.length <= 60)
{
$("#title_notice_span").text("填写正确");
$("#title_notice_span").text("<%= l(:label_field_correct)%>");
$("#title_notice_span").css('color','#008000');
return true;
}
else
{
$("#title_notice_span").text("标题超过60个字符");
$("#title_notice_span").text("<%= l(:label_title_long)%>");
$("#title_notice_span").css('color','#ff0000');
$("#title_notice_span").focus();
return false;
@ -32,14 +32,14 @@
var name = $("#news_description").val();
if(name.length ==0)
{
$("#description_notice_span").text("描述不能为空");
$("#description_notice_span").text("<%= l(:label_descripition_blank)%>");
$("#description_notice_span").css('color','#ff0000');
$("#description_notice_span").focus();
return false;
}
else
{
$("#description_notice_span").text("填写正确");
$("#description_notice_span").text("<%= l(:label_field_correct)%>");
$("#description_notice_span").css('color','#008000');
return true;
}

View File

@ -48,7 +48,7 @@
<div class="C" >
<div class="C_top">
<h2><%= l('project.join.title')%></h2>
<p><%= l('project.join.description')%></p>
<p style="width: 385px"><%= l('project.join.description')%></p>
</div>
<div class="C_form">
<%= form_tag({:controller => 'applied_project',
@ -64,7 +64,7 @@
<input class=" width190" name="project_id" id="project_id" type="text" value="" >
<input type="text" style="display: none"/>
</li>
<li class="mB5"><%= l('project.join.id.tips')%></li>
<li class="mB5" style="width: 260px"><%= l('project.join.id.tips')%></li>
<li>
<a href="#" class="btn" style="margin-left: 50px;" onclick="submit_form(this);">
<%= l(:label_apply_project) %>

View File

@ -1,5 +1,5 @@
<div class="project_r_h">
<h2 class="project_h2">用户反馈</h2>
<h2 class="project_h2"><%= l(:label_project_tool_response)%></h2>
</div>
<% reply_allow = JournalsForMessage.create_by_user? User.current %>
<%= stylesheet_link_tag 'css', :media => 'all' %>

View File

@ -35,7 +35,7 @@
<%= link_to_user(e.user)%>
<%= l(:label_project_new) %>
<%= l(:label_active_create_project) %>
<%= link_to e.project.name %>
<strong> !</strong>
</td>

View File

@ -18,7 +18,7 @@
<% end %>
</div>
<p style=" word-wrap: break-word; word-break: break-all">
(<%= l(:label_all_revisions) %><%= @repositories.sort.collect {|repo|
(<%= l(:label_all_revisions) %><%= @repositories.sort.collect {|repo|
link_to h(repo.name),
{:controller => 'repositories', :action => 'show',
:id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},

View File

@ -180,6 +180,13 @@ en:
label_update_time: Update at
label_reply: Reply
label_field_correct: correct input
label_title_blank: Title cannot be blank!
label_title_long: The title should be less than 60 characters
label_descripition_blank: Description cannot be blank!
label_subject_empty: Subject cannot be blank!
label_anonymous: Anonymous #作业和留言 模块
@ -217,7 +224,8 @@ en:
label_preview: Preview
button_update: Update
button_copy: Copy
button_check_all: Check all
button_uncheck_all: Uncheck all
#
# Trustie上传头像模块
@ -361,8 +369,8 @@ en:
# 新闻
#
label_news: News
label_news_description: Track the latest activities of projects, and obtain the latest information
label_news_description: "Track the latest activities of projects, and obtain the latest information"
label_news_title_tips: "(less than 60 characters)"
#
# Trustie
#

View File

@ -190,6 +190,11 @@ zh:
text_are_you_sure_out: 你确定要退出该课程吗?
text_are_you_sure_out_group: 你确定要退出该分班吗?
label_field_correct: 填写正确
label_title_blank: 标题不能为空
label_title_long: 标题超过60个字符
label_descripition_blank: 描述不能为空
label_subject_empty: 主题不能为空
label_no_data: 没有任何数据可供显示
# 项目、课程、用户公用
@ -222,7 +227,10 @@ zh:
label_preview: 预览
button_update: 更新
button_copy: 复制
button_check_all: 全选
button_uncheck_all: 清除
#
# Trustie上传头像模块
#
@ -367,7 +375,9 @@ zh:
#
label_news: 新闻
label_news_description: 实时了解项目的最新动态,掌握最新项目咨询!
label_news_title_tips: (60个字符以内)
#
#
#

View File

@ -146,7 +146,7 @@ en:
field_watcher: Watcher
field_content: Content
field_group_by: Group results by
field_sharing: Sharinglable_hot_course
field_parent_issue: Parent task
field_member_of_group: "Assignee's group"
field_assigned_to_role: "Assignee's role"
@ -334,7 +334,7 @@ en:
label_contest_modify_settings: Configuration
bale_news_notice: Add a notification
label_field_correct: correct input
label_work_description_lengthlimit: less than 500 characters
label_create_new_projects: Create a project
label_work_scores_people: The total number of users given scores
@ -749,8 +749,7 @@ en:
label_gantt_progress_line: Progress line
button_check_all: Check all
button_uncheck_all: Uncheck all
button_collapse_all: Collapse all
button_expand_all: Expand all

View File

@ -146,7 +146,6 @@ en:
label_issue_new: New issue
# 自定义查询
label_query_plural: Custom queries
label_query_new: New query
label_my_queries: My custom queries
@ -216,11 +215,14 @@ en:
label_post_by: "Started by "
label_post_by_time: "on "
label_short_reply: "RE:"
#
# 项目托管平台
#
# 资源库
# 动态
#
label_active_create_project: "created project"
#
@ -228,7 +230,7 @@ en:
#
# 版本库
#
lael_all_revisions: All revisions
label_all_revisions: "All revisions"
label_latest_revision: Latest revision
label_latest_revision_plural: Latest revisions
label_view_revisions: View revisions
@ -244,12 +246,18 @@ en:
label_issue_category_plural: Issue type
label_repository_plural: Repository
enumeration_activities: Activity type
# 项目工具
text_select_project_modules: "Select tools to enable for this project"
project_module_issue_tracking: Issue tracking
project_module_time_tracking: Time tracking
#project_module_course: 课程
project_module_boards: Forums
# 项目成员
label_approve: Approve
label_refusal: Refusal
#
# 项目托管平台
@ -302,6 +310,13 @@ en:
id:
label: "Project ID:"
tips: "Project ID is the unique number for each project"
tips:
notexist: The project does not exist
repeat: Please do not apply to join the project again
success: Application successfully
has: You has joined in the project
fail: Application failure
#
# 项目托管平台
@ -334,5 +349,5 @@ en:
#
# 项目配置
#
label_approve: Approve
label_refusal: Refusal
field_sharing: Sharinglable
label_title_code_review: Review

View File

@ -271,16 +271,16 @@ zh:
#
# 项目托管平台
#
# 资源库
# 动态
#
label_active_create_project: "创建了项目"
#
# 项目托管平台
#
# 版本库
#
label_all_revisions: "所有版本"
label_all_revisions: "所有版本"
label_latest_revision: 最近的修订版本
label_latest_revision_plural: 最近的修订版本
label_view_revisions: 查看修订
@ -289,19 +289,24 @@ zh:
# 项目托管平台
#
# 项目配置
#
#
label_module_plural: 模块
label_version_plural: 版本
label_issue_category_plural: 问题类别
label_repository_plural: 版本库
enumeration_activities: 活动(时间跟踪)
# 项目工具
text_select_project_modules: '请选择此项目可以使用的模块:'
project_module_issue_tracking: 问题跟踪
project_moule_boards_show: 项目论坛
project_module_time_tracking: 时间跟踪
project_module_course: 课程
#project_module_course: 课程
# 成员配置
label_approve: 批准
label_refusal: 拒绝
#
@ -354,8 +359,15 @@ zh:
id:
label: "项目ID"
tips: "项目ID是所在项目网址中显示的序号"
tips:
notexist: 您申请的项目不存在
repeat: 请勿重复申请加入该项目
success: 申请成功
has: 您已加入该项目
fail: 申请失败
#
# 项目托管平台
#
@ -385,5 +397,5 @@ zh:
#
# 项目配置
#
label_approve: 批准
label_refusal: 拒绝
field_sharing: 共享
label_title_code_review: 代码评审

View File

@ -24,7 +24,7 @@ en:
#
# 左边栏
#
label_user_edit: Edit
label_user_edit: Edit information
label_user_grade: Score
label_user_score: Total

View File

@ -170,7 +170,7 @@ zh:
field_content: 内容
field_group_by: 根据此条件分组
field_sharing: 共享
field_parent_issue: 父任务
field_member_of_group: 用户组的成员
@ -839,8 +839,7 @@ zh:
label_user_search: "搜索用户:"
label_mobile_version: "移动端版本管理"
button_check_all: 全选
button_uncheck_all: 清除
button_create_and_continue: 创建并继续
button_test: 测试
@ -1762,7 +1761,7 @@ zh:
label_user_login_softapplication_board: 您还没有登录,请登录后参与应用评价。
label_contest_description_no: 暂无描述。
label_no_contest_softapplication: 暂无参赛应用
label_field_correct: 填写正确
label_button_ok: 确定
label_tags_contest: 竞赛标签
label_tags_contest: 竞赛名称
@ -1890,7 +1889,7 @@ zh:
label_contest_news_condition: 竞赛描述超过5000个汉字
label_no_contest_news_title: 竞赛标题不能为空
label_contest_news_title_condition: 竞赛标题超过255个汉字
label_subject_empty: 主题不能为空
label_course_organizers: 开设单位
label_teacher_score: 教师评分
label_student_score: 学生评分

View File

@ -1,5 +1,5 @@
<div class="project_r_h">
<h2 class="project_h2">代码审查</h2>
<h2 class="project_h2"><%= l(:label_title_code_review)%></h2>
</div>
<%
# Code Review plugin for Redmine

View File

@ -15,7 +15,7 @@ function postUpMsg(attachmentId)
function reload(fileSpan) {
fileSpan.remove();
$('#upload_file_count').html("未上传文件");
$('#upload_file_count').html("<%= l(:label_no_file_uploaded)%>");
$old_file = $("#_file");
$new_file = $old_file.clone(true);
$old_file.replaceWith($new_file);

View File

@ -451,7 +451,7 @@ a.attachments_list_color {
}
/*帖子的各种属性*/
.memo_activity .memo_attr{
margin-left: 20px;
margin-left: 2px;
}
/*帖子的时间*/
.memo_activity .memo_timestamp{