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
bfd4f3c5
Commit
bfd4f3c5
authored
Jan 22, 2019
by
George Tsiolis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Externalize strings from `/app/views/sent_notifications`
parent
8096d05c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
7 deletions
+17
-7
app/views/sent_notifications/unsubscribe.html.haml
app/views/sent_notifications/unsubscribe.html.haml
+6
-7
changelogs/unreleased/gt-externalize-app-views-sent_notifications.yml
...nreleased/gt-externalize-app-views-sent_notifications.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+6
-0
No files found.
app/views/sent_notifications/unsubscribe.html.haml
View file @
bfd4f3c5
-
noteable
=
@sent_notification
.
noteable
-
noteable
=
@sent_notification
.
noteable
-
noteable_type
=
@sent_notification
.
noteable_type
.
titleize
.
downcase
-
noteable_type
=
@sent_notification
.
noteable_type
.
titleize
.
downcase
-
noteable_text
=
%(#{noteable.title} (#{noteable.to_reference}))
-
noteable_text
=
%(#{noteable.title} (#{noteable.to_reference}))
-
page_title
"Unsubscribe"
,
noteable_text
,
noteable_type
.
pluralize
,
@sent_notification
.
project
.
full_name
-
page_title
_
(
"Unsubscribe"
)
,
noteable_text
,
noteable_type
.
pluralize
,
@sent_notification
.
project
.
full_name
%h3
.page-title
%h3
.page-title
Unsubscribe from
#{
noteable_type
}
=
_
(
"Unsubscribe from %{type}"
)
%
{
type:
noteable_type
}
%p
%p
=
succeed
'?'
do
-
link_to_noteable_text
=
link_to
(
noteable_text
,
url_for
([
@sent_notification
.
project
.
namespace
.
becomes
(
Namespace
),
@sent_notification
.
project
,
noteable
]))
Are you sure you want to unsubscribe from the
#{
noteable_type
}
:
=
_
(
"Are you sure you want to unsubscribe from the %{type}: %{link_to_noteable_text}?"
).
html_safe
%
{
type:
noteable_type
,
link_to_noteable_text:
link_to_noteable_text
}
=
link_to
noteable_text
,
url_for
([
@sent_notification
.
project
.
namespace
.
becomes
(
Namespace
),
@sent_notification
.
project
,
noteable
])
%p
%p
=
link_to
'Unsubscribe'
,
unsubscribe_sent_notification_path
(
@sent_notification
,
force:
true
),
=
link_to
_
(
'Unsubscribe'
)
,
unsubscribe_sent_notification_path
(
@sent_notification
,
force:
true
),
class:
'btn btn-primary append-right-10'
class:
'btn btn-primary append-right-10'
=
link_to
'Cancel'
,
new_user_session_path
,
class:
'btn append-right-10'
=
link_to
_
(
'Cancel'
)
,
new_user_session_path
,
class:
'btn append-right-10'
changelogs/unreleased/gt-externalize-app-views-sent_notifications.yml
0 → 100644
View file @
bfd4f3c5
---
title
:
Externalize strings from `/app/views/sent_notifications`
merge_request
:
24576
author
:
George Tsiolis
type
:
other
locale/gitlab.pot
View file @
bfd4f3c5
...
@@ -949,6 +949,9 @@ msgstr ""
...
@@ -949,6 +949,9 @@ msgstr ""
msgid "Are you sure you want to unlock %{path_lock_path}?"
msgid "Are you sure you want to unlock %{path_lock_path}?"
msgstr ""
msgstr ""
msgid "Are you sure you want to unsubscribe from the %{type}: %{link_to_noteable_text}?"
msgstr ""
msgid "Are you sure?"
msgid "Are you sure?"
msgstr ""
msgstr ""
...
@@ -9786,6 +9789,9 @@ msgstr ""
...
@@ -9786,6 +9789,9 @@ msgstr ""
msgid "Unsubscribe at project level"
msgid "Unsubscribe at project level"
msgstr ""
msgstr ""
msgid "Unsubscribe from %{type}"
msgstr ""
msgid "Unverified"
msgid "Unverified"
msgstr ""
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