Commit 7ffdba13 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch...

Merge branch '22691-externalize-i18n-strings-from-./app/views/shared/issuable/_close_reopen_report_toggle.html.haml' into 'master'

Externalize i18n strings from ./app/views/shared/issuable/_close_reopen_report_toggle.html.haml

See merge request gitlab-org/gitlab!32168
parents c97bc561 ae530603
...@@ -14,39 +14,37 @@ ...@@ -14,39 +14,37 @@
method: button_method, class: "#{button_class} btn-#{button_action} #{(add_blocked_class ? 'btn-issue-blocked' : '')}", title: "#{display_button_action} #{display_issuable_type}", data: { qa_selector: 'close_issue_button' } method: button_method, class: "#{button_class} btn-#{button_action} #{(add_blocked_class ? 'btn-issue-blocked' : '')}", title: "#{display_button_action} #{display_issuable_type}", data: { qa_selector: 'close_issue_button' }
= button_tag type: 'button', class: "#{toggle_class} btn-#{button_action}-color", = button_tag type: 'button', class: "#{toggle_class} btn-#{button_action}-color",
data: { 'dropdown-trigger' => '#issuable-close-menu' }, 'aria-label' => 'Toggle dropdown' do data: { 'dropdown-trigger' => '#issuable-close-menu' }, 'aria-label' => _('Toggle dropdown') do
= icon('caret-down', class: 'toggle-icon icon') = icon('caret-down', class: 'toggle-icon icon')
%ul#issuable-close-menu.js-issuable-close-menu.dropdown-menu{ data: { dropdown: true } } %ul#issuable-close-menu.js-issuable-close-menu.dropdown-menu{ data: { dropdown: true } }
%li.close-item{ class: "#{issuable_button_visibility(issuable, true) || 'droplab-item-selected'}", %li.close-item{ class: "#{issuable_button_visibility(issuable, true) || 'droplab-item-selected'}",
data: { text: "Close #{display_issuable_type}", url: close_issuable_path(issuable), data: { text: _("Close %{display_issuable_type}") % { display_issuable_type: display_issuable_type }, url: close_issuable_path(issuable),
button_class: "#{button_class} btn-close", toggle_class: "#{toggle_class} btn-close-color", method: button_method } } button_class: "#{button_class} btn-close", toggle_class: "#{toggle_class} btn-close-color", method: button_method } }
%button.btn.btn-transparent %button.btn.btn-transparent
= icon('check', class: 'icon') = icon('check', class: 'icon')
.description .description
%strong.title %strong.title
Close = _('Close')
= display_issuable_type = display_issuable_type
%li.reopen-item{ class: "#{issuable_button_visibility(issuable, false) || 'droplab-item-selected'}", %li.reopen-item{ class: "#{issuable_button_visibility(issuable, false) || 'droplab-item-selected'}",
data: { text: "Reopen #{display_issuable_type}", url: reopen_issuable_path(issuable), data: { text: _("Reopen %{display_issuable_type}") % { display_issuable_type: display_issuable_type }, url: reopen_issuable_path(issuable),
button_class: "#{button_class} btn-reopen", toggle_class: "#{toggle_class} btn-reopen-color", method: button_method } } button_class: "#{button_class} btn-reopen", toggle_class: "#{toggle_class} btn-reopen-color", method: button_method } }
%button.btn.btn-transparent %button.btn.btn-transparent
= icon('check', class: 'icon') = icon('check', class: 'icon')
.description .description
%strong.title %strong.title
Reopen = _('Reopen')
= display_issuable_type = display_issuable_type
%li.divider.droplab-item-ignore %li.divider.droplab-item-ignore
%li.report-item{ data: { text: 'Report abuse', url: new_abuse_report_path(user_id: issuable.author.id, ref_url: issuable_url(issuable)), %li.report-item{ data: { text: _('Report abuse'), url: new_abuse_report_path(user_id: issuable.author.id, ref_url: issuable_url(issuable)),
button_class: "#{button_class} btn-close-color", toggle_class: "#{toggle_class} btn-close-color", method: '' } } button_class: "#{button_class} btn-close-color", toggle_class: "#{toggle_class} btn-close-color", method: '' } }
%button.btn.btn-transparent %button.btn.btn-transparent
= icon('check', class: 'icon') = icon('check', class: 'icon')
.description .description
%strong.title Report abuse %strong.title = _('Report abuse')
%p.text %p.text
Report = _('Report %{display_issuable_type} that are abusive, inappropriate or spam.') % { display_issuable_type: display_issuable_type.pluralize }
= display_issuable_type.pluralize
that are abusive, inappropriate or spam.
---
title: Externalize i18n strings from ./app/views/shared/issuable/_close_reopen_report_toggle.html.haml
merge_request: 32168
author: Gilang Gumilar
type: changed
...@@ -4358,6 +4358,9 @@ msgstr "" ...@@ -4358,6 +4358,9 @@ msgstr ""
msgid "Close" msgid "Close"
msgstr "" msgstr ""
msgid "Close %{display_issuable_type}"
msgstr ""
msgid "Close %{tabname}" msgid "Close %{tabname}"
msgstr "" msgstr ""
...@@ -17711,6 +17714,9 @@ msgstr "" ...@@ -17711,6 +17714,9 @@ msgstr ""
msgid "Reopen" msgid "Reopen"
msgstr "" msgstr ""
msgid "Reopen %{display_issuable_type}"
msgstr ""
msgid "Reopen epic" msgid "Reopen epic"
msgstr "" msgstr ""
...@@ -17759,9 +17765,15 @@ msgstr "" ...@@ -17759,9 +17765,15 @@ msgstr ""
msgid "Repo by URL" msgid "Repo by URL"
msgstr "" msgstr ""
msgid "Report %{display_issuable_type} that are abusive, inappropriate or spam."
msgstr ""
msgid "Report Type: %{report_type}" msgid "Report Type: %{report_type}"
msgstr "" msgstr ""
msgid "Report abuse"
msgstr ""
msgid "Report abuse to admin" msgid "Report abuse to admin"
msgstr "" msgstr ""
...@@ -22488,6 +22500,9 @@ msgstr "" ...@@ -22488,6 +22500,9 @@ msgstr ""
msgid "Toggle commit list" msgid "Toggle commit list"
msgstr "" msgstr ""
msgid "Toggle dropdown"
msgstr ""
msgid "Toggle emoji award" msgid "Toggle emoji award"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment