Commit 45505fbc authored by David O'Regan's avatar David O'Regan

Merge branch 'Externalize-strings-in-spam_logs/_spam_log.html.haml' into 'master'

Externalize strings in spam_logs/_spam_log.html.haml

See merge request gitlab-org/gitlab!58169
parents 3eac892c 39585332
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
- if user - if user
= link_to user.name, [:admin, user] = link_to user.name, [:admin, user]
.light.small .light.small
Joined #{time_ago_with_tooltip(user.created_at)} = _('Joined %{user_created_time}').html_safe % { user_created_time: time_ago_with_tooltip(user.created_at) }
- else - else
(removed) = _('(removed)')
%td %td
= spam_log.source_ip = spam_log.source_ip
%td %td
...@@ -23,17 +23,17 @@ ...@@ -23,17 +23,17 @@
= truncate(spam_log.description, length: 100) = truncate(spam_log.description, length: 100)
%td %td
- if user - if user
= link_to 'Remove user', admin_spam_log_path(spam_log, remove_user: true), = link_to _('Remove user'), admin_spam_log_path(spam_log, remove_user: true),
data: { confirm: "USER #{user.name} WILL BE REMOVED! Are you sure?" }, method: :delete, class: "gl-button btn btn-sm btn-danger" data: { confirm: _("USER %{user_name} WILL BE REMOVED! Are you sure?") % { user_name: user.name } }, method: :delete, class: "gl-button btn btn-sm btn-danger"
%td %td
- if spam_log.submitted_as_ham? - if spam_log.submitted_as_ham?
.gl-button.btn.btn-default.btn-sm.disabled.gl-mb-3 .gl-button.btn.btn-default.btn-sm.disabled.gl-mb-3
Submitted as ham = _("Submitted as ham")
- else - else
= link_to 'Submit as ham', mark_as_ham_admin_spam_log_path(spam_log), method: :post, class: 'gl-button btn btn-default btn-sm gl-mb-3' = link_to _('Submit as ham'), mark_as_ham_admin_spam_log_path(spam_log), method: :post, class: 'gl-button btn btn-default btn-sm gl-mb-3'
- if user && !user.blocked? - if user && !user.blocked?
= link_to 'Block user', block_admin_user_path(user), data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'}, method: :put, class: "gl-button btn btn-default btn-sm gl-mb-3" = link_to _('Block user'), block_admin_user_path(user), data: {confirm: _('USER WILL BE BLOCKED! Are you sure?')}, method: :put, class: "gl-button btn btn-default btn-sm gl-mb-3"
- else - else
.gl-button.btn.btn-default.btn-sm.disabled.gl-mb-3 .gl-button.btn.btn-default.btn-sm.disabled.gl-mb-3
Already blocked Already blocked
= link_to 'Remove log', [:admin, spam_log], remote: true, method: :delete, class: "gl-button btn btn-default btn-sm btn-close js-remove-tr" = link_to _('Remove log'), [:admin, spam_log], remote: true, method: :delete, class: "gl-button btn btn-default btn-sm btn-close js-remove-tr"
---
title: Externalise strings in spam_logs/_spam_log.html.haml
merge_request: 58169
author: nuwe1
type: other
...@@ -17981,6 +17981,9 @@ msgstr "" ...@@ -17981,6 +17981,9 @@ msgstr ""
msgid "Joined %{time_ago}" msgid "Joined %{time_ago}"
msgstr "" msgstr ""
msgid "Joined %{user_created_time}"
msgstr ""
msgid "Jul" msgid "Jul"
msgstr "" msgstr ""
...@@ -26002,6 +26005,9 @@ msgstr "" ...@@ -26002,6 +26005,9 @@ msgstr ""
msgid "Remove list" msgid "Remove list"
msgstr "" msgstr ""
msgid "Remove log"
msgstr ""
msgid "Remove member" msgid "Remove member"
msgstr "" msgstr ""
...@@ -29725,6 +29731,9 @@ msgstr "" ...@@ -29725,6 +29731,9 @@ msgstr ""
msgid "Submit a review" msgid "Submit a review"
msgstr "" msgstr ""
msgid "Submit as ham"
msgstr ""
msgid "Submit as spam" msgid "Submit as spam"
msgstr "" msgstr ""
...@@ -29749,6 +29758,9 @@ msgstr "" ...@@ -29749,6 +29758,9 @@ msgstr ""
msgid "Submit your changes" msgid "Submit your changes"
msgstr "" msgstr ""
msgid "Submitted as ham"
msgstr ""
msgid "Submitted the current review." msgid "Submitted the current review."
msgstr "" msgstr ""
...@@ -32956,6 +32968,9 @@ msgstr "" ...@@ -32956,6 +32968,9 @@ msgstr ""
msgid "URL or request ID" msgid "URL or request ID"
msgstr "" msgstr ""
msgid "USER %{user_name} WILL BE REMOVED! Are you sure?"
msgstr ""
msgid "USER %{user} WILL BE REMOVED! Are you sure?" msgid "USER %{user} WILL BE REMOVED! Are you sure?"
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