summaryrefslogtreecommitdiff
path: root/app/views/layouts/notify.html.haml
diff options
context:
space:
mode:
authorTao Wang <twang2218@gmail.com>2018-06-13 16:30:40 +1000
committerTao Wang <twang2218@gmail.com>2018-07-23 16:33:37 +1000
commitdc157729b3407c265854b55cd90ec75dc50b20f2 (patch)
treeebec6e0046d54c8cce47f1b379577ebdbaa3b727 /app/views/layouts/notify.html.haml
parentdc7b4b7bb97ead6fca1eefad5f56c8db5db00f93 (diff)
downloadgitlab-ce-dc157729b3407c265854b55cd90ec75dc50b20f2.tar.gz
i18n: externalize strings from 'app/views/layouts'
Signed-off-by: Tao Wang <twang2218@gmail.com>
Diffstat (limited to 'app/views/layouts/notify.html.haml')
-rw-r--r--app/views/layouts/notify.html.haml7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/views/layouts/notify.html.haml b/app/views/layouts/notify.html.haml
index ab8b1271212..31e02f1ee19 100644
--- a/app/views/layouts/notify.html.haml
+++ b/app/views/layouts/notify.html.haml
@@ -14,13 +14,12 @@
%br
- if @target_url
- if @reply_by_email
- Reply to this email directly or
- #{link_to "view it on GitLab", @target_url}.
+ = _('Reply to this email directly or %{view_it_on_gitlab}.') % { view_it_on_gitlab: link_to(_("view it on GitLab"), @target_url) }
- else
- #{link_to "View it on GitLab", @target_url}.
+ #{link_to _("View it on GitLab"), @target_url}.
%br
-# Don't link the host in the line below, one link in the email is easier to quickly click than two.
- You're receiving this email because #{notification_reason_text(@reason)}.
+ = _("You're receiving this email because %{reason}.") % { reason: notification_reason_text(@reason) }
If you'd like to receive fewer emails, you can
- if @labels_url
adjust your #{link_to 'label subscriptions', @labels_url}.