summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantony liu <sun_apollo@yeah.net>2019-05-28 07:07:20 +0000
committerBob Van Landuyt <bob@gitlab.com>2019-05-28 07:07:20 +0000
commitcdb9ce4dfa5d38d23532a6e34ffb2f7d4c880856 (patch)
tree9faee43d24b22d3915b0005b72d626eb18fe4eee
parentc7fc58bcfc68ee873036a7d6aed7133b6d423da6 (diff)
downloadgitlab-ce-cdb9ce4dfa5d38d23532a6e34ffb2f7d4c880856.tar.gz
Externalize stirngs of Authentication log page in user profile
-rw-r--r--app/views/profiles/_event_table.html.haml6
-rw-r--r--app/views/profiles/audit_log.html.haml4
-rw-r--r--locale/gitlab.pot9
3 files changed, 13 insertions, 6 deletions
diff --git a/app/views/profiles/_event_table.html.haml b/app/views/profiles/_event_table.html.haml
index 9f525547dd9..977ff30d5a6 100644
--- a/app/views/profiles/_event_table.html.haml
+++ b/app/views/profiles/_event_table.html.haml
@@ -1,14 +1,12 @@
%h5.prepend-top-0
- History of authentications
+ = _('History of authentications')
%ul.content-list
- events.each do |event|
%li
%span.description
= audit_icon(event.details[:with], class: "append-right-5")
- Signed in with
- = event.details[:with]
- authentication
+ = _('Signed in with %{authentication} authentication') % { authentication: event.details[:with]}
%span.float-right= time_ago_with_tooltip(event.created_at)
= paginate events, theme: "gitlab"
diff --git a/app/views/profiles/audit_log.html.haml b/app/views/profiles/audit_log.html.haml
index a924369050b..275c0428d34 100644
--- a/app/views/profiles/audit_log.html.haml
+++ b/app/views/profiles/audit_log.html.haml
@@ -1,4 +1,4 @@
-- page_title "Authentication log"
+- page_title _('Authentication log')
- @content_class = "limit-container-width" unless fluid_layout
.row.prepend-top-default
@@ -6,6 +6,6 @@
%h4.prepend-top-0
= page_title
%p
- This is a security log of important events involving your account.
+ = _('This is a security log of important events involving your account.')
.col-lg-8
= render 'event_table', events: @events
diff --git a/locale/gitlab.pot b/locale/gitlab.pot
index c844d13f380..e1e0418800e 100644
--- a/locale/gitlab.pot
+++ b/locale/gitlab.pot
@@ -4934,6 +4934,9 @@ msgstr ""
msgid "History"
msgstr ""
+msgid "History of authentications"
+msgstr ""
+
msgid "Hook was successfully created."
msgstr ""
@@ -8872,6 +8875,9 @@ msgstr ""
msgid "Sign-up restrictions"
msgstr ""
+msgid "Signed in with %{authentication} authentication"
+msgstr ""
+
msgid "Signing in using %{label} has been disabled"
msgstr ""
@@ -9906,6 +9912,9 @@ msgstr ""
msgid "This is a delayed job to run in %{remainingTime}"
msgstr ""
+msgid "This is a security log of important events involving your account."
+msgstr ""
+
msgid "This is the author's first Merge Request to this project."
msgstr ""