summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Li <larryli@qq.com>2016-03-28 13:43:59 +0800
committerLarry Li <larryli@qq.com>2016-03-28 13:43:59 +0800
commit58a136a844be12737061c84f4536572887dd47c1 (patch)
treee4128d53105ffba8d96726d51d38258b20b6a304
parent2d7e92b46a38260e14b9ebe94bfb00b325fbd7ff (diff)
parentd4c1e5442209cc89c4c8786160246da162e30866 (diff)
downloadgitlab-ce-58a136a844be12737061c84f4536572887dd47c1.tar.gz
Merge branch 'htve/gitlab-8-6-zh' into 8-6-zh
Signed-off-by: Larry Li <larryli@qq.com>
-rw-r--r--app/views/admin/users/show.html.haml4
-rw-r--r--app/views/projects/issues/_discussion.html.haml4
-rw-r--r--app/views/projects/notes/_form.html.haml2
-rw-r--r--app/views/shared/issuable/_form.html.haml2
4 files changed, 6 insertions, 6 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml
index fff4bd70cde..a263b83a517 100644
--- a/app/views/admin/users/show.html.haml
+++ b/app/views/admin/users/show.html.haml
@@ -35,7 +35,7 @@
%li
%span.light 第二电子邮箱:
%strong= email.email
- = link_to remove_email_admin_user_path(@user, email), data: { confirm: "确定要删除 #{email.email}?" }, method: :delete, class: "btn-xs btn btn-remove pull-right", title: 'Remove secondary email', id: "remove_email_#{email.id}" do
+ = link_to remove_email_admin_user_path(@user, email), data: { confirm: "确定要删除 #{email.email}?" }, method: :delete, class: "btn-xs btn btn-remove pull-right", title: '删除第二电子邮箱', id: "remove_email_#{email.id}" do
%i.fa.fa-times
%li.two-factor-status
@@ -43,7 +43,7 @@
%strong{class: @user.two_factor_enabled? ? 'cgreen' : 'cred'}
- if @user.two_factor_enabled?
已启用
- = link_to '禁用', disable_two_factor_admin_user_path(@user), data: {confirm: '确定要继续么?'}, method: :patch, class: 'btn btn-xs btn-remove pull-right', title: 'Disable Two-factor Authentication'
+ = link_to '禁用', disable_two_factor_admin_user_path(@user), data: {confirm: '确定要继续么?'}, method: :patch, class: 'btn btn-xs btn-remove pull-right', title: '禁用两步验证'
- else
已禁用
diff --git a/app/views/projects/issues/_discussion.html.haml b/app/views/projects/issues/_discussion.html.haml
index 360875974ac..1cd7dec0bc7 100644
--- a/app/views/projects/issues/_discussion.html.haml
+++ b/app/views/projects/issues/_discussion.html.haml
@@ -1,7 +1,7 @@
- content_for :note_actions do
- if can?(current_user, :update_issue, @issue)
- = link_to '重新打开问题', issue_path(@issue, issue: {state_event: :reopen}, status_only: true, format: 'json'), data: {no_turbolink: true, original_text: "Reopen issue", alternative_text: "评论 & 重新打开问题"}, class: "btn btn-nr btn-grouped btn-reopen btn-comment js-note-target-reopen #{issue_button_visibility(@issue, false)}", title: '重新打开问题'
- = link_to '关闭问题', issue_path(@issue, issue: {state_event: :close}, status_only: true, format: 'json'), data: {no_turbolink: true, original_text: "Close issue", alternative_text: "评论 & 关闭问题"}, class: "btn btn-nr btn-grouped btn-close btn-comment js-note-target-close #{issue_button_visibility(@issue, true)}", title: '关闭问题'
+ = link_to '重新打开问题', issue_path(@issue, issue: {state_event: :reopen}, status_only: true, format: 'json'), data: {no_turbolink: true, original_text: "重新打开问题", alternative_text: "评论 & 重新打开问题"}, class: "btn btn-nr btn-grouped btn-reopen btn-comment js-note-target-reopen #{issue_button_visibility(@issue, false)}", title: '重新打开问题'
+ = link_to '关闭问题', issue_path(@issue, issue: {state_event: :close}, status_only: true, format: 'json'), data: {no_turbolink: true, original_text: "关闭问题", alternative_text: "评论 & 关闭问题"}, class: "btn btn-nr btn-grouped btn-close btn-comment js-note-target-close #{issue_button_visibility(@issue, true)}", title: '关闭问题'
#notes
= render 'projects/notes/notes_with_form'
diff --git a/app/views/projects/notes/_form.html.haml b/app/views/projects/notes/_form.html.haml
index 5c7b8da0f5a..c14b936df7c 100644
--- a/app/views/projects/notes/_form.html.haml
+++ b/app/views/projects/notes/_form.html.haml
@@ -15,5 +15,5 @@
.note-form-actions.clearfix
= f.submit '评论', class: "btn btn-nr btn-create comment-btn btn-grouped js-comment-button"
= yield(:note_actions)
- %a.btn.btn-cancel.js-note-discard{role: "button", data: {cancel_text: "Cancel"}}
+ %a.btn.btn-cancel.js-note-discard{role: "button", data: {cancel_text: "取消"}}
舍弃草稿
diff --git a/app/views/shared/issuable/_form.html.haml b/app/views/shared/issuable/_form.html.haml
index 9a3e46fed46..1d952bf71de 100644
--- a/app/views/shared/issuable/_form.html.haml
+++ b/app/views/shared/issuable/_form.html.haml
@@ -131,7 +131,7 @@
- else
.pull-right
- if current_user.can?(:"destroy_#{issuable.to_ability_name}", @project)
- = link_to polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable]), data: { confirm: "#{issuable.class.name.titleize} will be removed! Are you sure?" },
+ = link_to polymorphic_path([@project.namespace.becomes(Namespace), @project, issuable]), data: { confirm: "#{issuable.class.name.titleize} 将被删除!你确定吗?" },
method: :delete, class: 'btn btn-grouped' do
= icon('trash-o')
删除