Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-08 21:10:47 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-08 21:10:47 +0300
commit03a8aa2ca6a7d7aced2fde7815c8ef85d681db60 (patch)
tree915b00839e8f0ae30f1c6756880f3ed4339d74c4 /app/views/notify
parentf8c7f38d02ebf964cbf40d9445f0f9f843710701 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/notify')
-rw-r--r--app/views/notify/push_to_merge_request_email.html.haml13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/views/notify/push_to_merge_request_email.html.haml b/app/views/notify/push_to_merge_request_email.html.haml
index 5197a1bdd08..fc32ceab765 100644
--- a/app/views/notify/push_to_merge_request_email.html.haml
+++ b/app/views/notify/push_to_merge_request_email.html.haml
@@ -1,7 +1,7 @@
%h3
- = sanitize_name(@updated_by_user.name)
- pushed new commits to merge request
- = merge_request_reference_link(@merge_request)
+ - updated_by_user_name = sanitize_name(@updated_by_user.name)
+ - mr_link = sanitize(merge_request_reference_link(@merge_request))
+ = s_('Notify|%{updated_by_user_name} pushed new commits to merge request %{mr_link}').html_safe % {updated_by_user_name: updated_by_user_name, mr_link: mr_link}
- if @total_existing_commits_count > 0
%ul
@@ -13,8 +13,8 @@
= link_to(project_compare_url(@merge_request.target_project, from: @existing_commits.first[:short_id], to: @existing_commits.last[:short_id])) do
#{@existing_commits.first[:short_id]}...#{@existing_commits.last[:short_id]}
= precede '&nbsp;- ' do
- - commits_text = "#{@total_existing_commits_count} commit".pluralize(@total_existing_commits_count)
- #{commits_text} from branch `#{@merge_request.target_branch}`
+ - commits_text = n_("#%d commit", "#%d commits", @total_existing_commits_count) % @total_existing_commits_count
+ = s_('Notify|%{commits_text} from branch `%{target_branch}`') % {commits_text: commits_text, target_branch: @merge_request.target_branch}
- if @total_new_commits_count > 0
%ul
@@ -24,4 +24,5 @@
= precede ' - ' do
#{commit[:title]}
- if @total_stripped_new_commits_count > 0
- %li And #{@total_stripped_new_commits_count} more
+ %li
+ = s_('Notify|And %{total_stripped_new_commits_count} more') % {total_stripped_new_commits_count: @total_stripped_new_commits_count}