Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3e4182f0
Commit
3e4182f0
authored
May 14, 2020
by
Gilang Gumilar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Externalize i18n strings from ./app/views/shared/issuable/_close_reopen_report_toggle.html.haml
parent
3d3be7eb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
10 deletions
+28
-10
app/views/shared/issuable/_close_reopen_report_toggle.html.haml
...ews/shared/issuable/_close_reopen_report_toggle.html.haml
+8
-10
changelogs/unreleased/22691-externalize-i18n-strings-from---app-views-shared-issuable-_close_re.yml
...8n-strings-from---app-views-shared-issuable-_close_re.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+15
-0
No files found.
app/views/shared/issuable/_close_reopen_report_toggle.html.haml
View file @
3e4182f0
...
...
@@ -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'
}
=
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'
)
%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'}"
,
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
.btn.btn-transparent
=
icon
(
'check'
,
class:
'icon'
)
.description
%strong
.title
Close
=
_
(
'Close'
)
=
display_issuable_type
%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
.btn.btn-transparent
=
icon
(
'check'
,
class:
'icon'
)
.description
%strong
.title
Reopen
=
_
(
'Reopen'
)
=
display_issuable_type
%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
.btn.btn-transparent
=
icon
(
'check'
,
class:
'icon'
)
.description
%strong
.title
Report abuse
%strong
.title
= _('Report abuse')
%p
.text
Report
=
display_issuable_type
.
pluralize
that are abusive, inappropriate or spam.
=
_
(
'Report %{display_issuable_type} that are abusive, inappropriate or spam.'
)
%
{
display_issuable_type:
display_issuable_type
.
pluralize
}
changelogs/unreleased/22691-externalize-i18n-strings-from---app-views-shared-issuable-_close_re.yml
0 → 100644
View file @
3e4182f0
---
title
:
Externalize i18n strings from ./app/views/shared/issuable/_close_reopen_report_toggle.html.haml
merge_request
:
author
:
Gilang Gumilar
type
:
changed
locale/gitlab.pot
View file @
3e4182f0
...
...
@@ -4346,6 +4346,9 @@ msgstr ""
msgid "Close"
msgstr ""
msgid "Close %{display_issuable_type}"
msgstr ""
msgid "Close %{tabname}"
msgstr ""
...
...
@@ -17675,6 +17678,9 @@ msgstr ""
msgid "Reopen"
msgstr ""
msgid "Reopen %{display_issuable_type}"
msgstr ""
msgid "Reopen epic"
msgstr ""
...
...
@@ -17720,9 +17726,15 @@ msgstr ""
msgid "Repo by URL"
msgstr ""
msgid "Report %{display_issuable_type} that are abusive, inappropriate or spam."
msgstr ""
msgid "Report Type: %{report_type}"
msgstr ""
msgid "Report abuse"
msgstr ""
msgid "Report abuse to admin"
msgstr ""
...
...
@@ -22449,6 +22461,9 @@ msgstr ""
msgid "Toggle commit list"
msgstr ""
msgid "Toggle dropdown"
msgstr ""
msgid "Toggle emoji award"
msgstr ""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment