Commit 5e8ea61e authored by Tao Wang's avatar Tao Wang Committed by Dmitriy Zaporozhets

i18n: externalize strings from 'app/views/shared/members'

Signed-off-by: default avatarTao Wang <twang2218@gmail.com>
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent f9c6134b
- filter = params[:two_factor] || 'everyone' - filter = params[:two_factor] || 'everyone'
- filter_options = { 'everyone' => 'Everyone', 'enabled' => 'Enabled', 'disabled' => 'Disabled' } - filter_options = { 'everyone' => _('Everyone'), 'enabled' => _('Enabled'), 'disabled' => _('Disabled') }
.dropdown.inline.member-filter-2fa-dropdown .dropdown.inline.member-filter-2fa-dropdown
= dropdown_toggle('2FA: ' + filter_options[filter], { toggle: 'dropdown' }) = dropdown_toggle('2FA: ' + filter_options[filter], { toggle: 'dropdown' })
%ul.dropdown-menu.dropdown-menu-align-right.dropdown-menu-selectable %ul.dropdown-menu.dropdown-menu-align-right.dropdown-menu-selectable
%li.dropdown-header %li.dropdown-header
Filter by two-factor authentication = _("Filter by two-factor authentication")
- filter_options.each do |value, title| - filter_options.each do |value, title|
%li %li
= link_to filter_group_project_member_path(two_factor: value), class: ("is-active" if filter == value) do = link_to filter_group_project_member_path(two_factor: value), class: ("is-active" if filter == value) do
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
- if group_link.expires? - if group_link.expires?
· ·
%span{ class: ('text-warning' if group_link.expires_soon?) } %span{ class: ('text-warning' if group_link.expires_soon?) }
Expires in #{distance_of_time_in_words_to_now(group_link.expires_at)} = _("Expires in %{expires_at}").html_safe % { expires_at: distance_of_time_in_words_to_now(group_link.expires_at) }
.controls.member-controls .controls.member-controls
= form_tag project_group_link_path(@project, group_link), method: :put, remote: true, class: 'js-edit-member-form form-group row append-right-5' do = form_tag project_group_link_path(@project, group_link), method: :put, remote: true, class: 'js-edit-member-form form-group row append-right-5' do
= hidden_field_tag "group_link[group_access]", group_link.group_access = hidden_field_tag "group_link[group_access]", group_link.group_access
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
= group_link.human_access = group_link.human_access
= icon("chevron-down") = icon("chevron-down")
.dropdown-menu.dropdown-select.dropdown-menu-right.dropdown-menu-selectable .dropdown-menu.dropdown-select.dropdown-menu-right.dropdown-menu-selectable
= dropdown_title("Change permissions") = dropdown_title(_("Change permissions"))
.dropdown-content .dropdown-content
%ul %ul
- Gitlab::Access.options.each do |role, role_id| - Gitlab::Access.options.each do |role, role_id|
...@@ -33,13 +33,13 @@ ...@@ -33,13 +33,13 @@
class: ("is-active" if group_link.group_access == role_id), class: ("is-active" if group_link.group_access == role_id),
data: { id: role_id, el_id: dom_id } data: { id: role_id, el_id: dom_id }
.prepend-left-5.clearable-input.member-form-control .prepend-left-5.clearable-input.member-form-control
= text_field_tag 'group_link[expires_at]', group_link.expires_at, class: 'form-control js-access-expiration-date js-member-update-control', placeholder: 'Expiration date', id: "member_expires_at_#{group.id}", disabled: !can_admin_member = text_field_tag 'group_link[expires_at]', group_link.expires_at, class: 'form-control js-access-expiration-date js-member-update-control', placeholder: _('Expiration date'), id: "member_expires_at_#{group.id}", disabled: !can_admin_member
%i.clear-icon.js-clear-input %i.clear-icon.js-clear-input
- if can_admin_member - if can_admin_member
= link_to project_group_link_path(@project, group_link), = link_to project_group_link_path(@project, group_link),
method: :delete, method: :delete,
data: { confirm: "Are you sure you want to remove #{group.name}?" }, data: { confirm: _("Are you sure you want to remove %{group_name}?") % { group_name: group.name } },
class: 'btn btn-remove prepend-left-10' do class: 'btn btn-remove prepend-left-10' do
%span.d-block.d-sm-none %span.d-block.d-sm-none
Delete = _("Delete")
= icon('trash', class: 'd-none d-sm-block') = icon('trash', class: 'd-none d-sm-block')
...@@ -17,15 +17,15 @@ ...@@ -17,15 +17,15 @@
= render_if_exists 'shared/members/ee/sso_badge', member: member = render_if_exists 'shared/members/ee/sso_badge', member: member
- if user == current_user - if user == current_user
%span.badge.badge-success.prepend-left-5 It's you %span.badge.badge-success.prepend-left-5= _("It's you")
- if user.blocked? - if user.blocked?
%label.badge.badge-danger %label.badge.badge-danger
%strong Blocked %strong= _("Blocked")
- if user.two_factor_enabled? - if user.two_factor_enabled?
%label.badge.badge-info %label.badge.badge-info
2FA = _("2FA")
- if source.instance_of?(Group) && source != @group - if source.instance_of?(Group) && source != @group
&middot; &middot;
...@@ -33,14 +33,13 @@ ...@@ -33,14 +33,13 @@
.cgray .cgray
- if member.request? - if member.request?
Requested = _("Requested %{time_ago}").html_safe % { time_ago: time_ago_with_tooltip(member.requested_at) }
= time_ago_with_tooltip(member.requested_at)
- else - else
Given access #{time_ago_with_tooltip(member.created_at)} = _("Given access %{time_ago}").html_safe % { time_ago: time_ago_with_tooltip(member.created_at) }
- if member.expires? - if member.expires?
· ·
%span{ class: "#{"text-warning" if member.expires_soon?} has-tooltip", title: member.expires_at.to_time.in_time_zone.to_s(:medium) } %span{ class: "#{"text-warning" if member.expires_soon?} has-tooltip", title: member.expires_at.to_time.in_time_zone.to_s(:medium) }
Expires in #{distance_of_time_in_words_to_now(member.expires_at)} = _("Expires in %{expires_at}").html_safe % { expires_at: distance_of_time_in_words_to_now(member.expires_at) }
- else - else
= image_tag avatar_icon_for_email(member.invite_email, 40), class: "avatar s40", alt: '' = image_tag avatar_icon_for_email(member.invite_email, 40), class: "avatar s40", alt: ''
...@@ -61,7 +60,7 @@ ...@@ -61,7 +60,7 @@
= link_to icon('paper-plane'), polymorphic_path([:resend_invite, member]), = link_to icon('paper-plane'), polymorphic_path([:resend_invite, member]),
method: :post, method: :post,
class: 'btn btn-default prepend-left-10 d-none d-sm-block', class: 'btn btn-default prepend-left-10 d-none d-sm-block',
title: 'Resend invite' title: _('Resend invite')
- if user != current_user && member.can_update? - if user != current_user && member.can_update?
= form_for member, remote: true, html: { class: 'js-edit-member-form form-group row append-right-5' } do |f| = form_for member, remote: true, html: { class: 'js-edit-member-form form-group row append-right-5' } do |f|
...@@ -73,7 +72,7 @@ ...@@ -73,7 +72,7 @@
= member.human_access = member.human_access
= icon("chevron-down") = icon("chevron-down")
.dropdown-menu.dropdown-select.dropdown-menu-right.dropdown-menu-selectable .dropdown-menu.dropdown-select.dropdown-menu-right.dropdown-menu-selectable
= dropdown_title("Change permissions") = dropdown_title(_("Change permissions"))
.dropdown-content .dropdown-content
%ul %ul
- member.access_level_roles.each do |role, role_id| - member.access_level_roles.each do |role, role_id|
...@@ -84,7 +83,7 @@ ...@@ -84,7 +83,7 @@
.prepend-left-5.clearable-input.member-form-control .prepend-left-5.clearable-input.member-form-control
= f.text_field :expires_at, = f.text_field :expires_at,
class: 'form-control js-access-expiration-date js-member-update-control', class: 'form-control js-access-expiration-date js-member-update-control',
placeholder: 'Expiration date', placeholder: _('Expiration date'),
id: "member_expires_at_#{member.id}", id: "member_expires_at_#{member.id}",
data: { el_id: dom_id(member) } data: { el_id: dom_id(member) }
%i.clear-icon.js-clear-input %i.clear-icon.js-clear-input
...@@ -95,15 +94,15 @@ ...@@ -95,15 +94,15 @@
= link_to polymorphic_path([:approve_access_request, member]), = link_to polymorphic_path([:approve_access_request, member]),
method: :post, method: :post,
class: 'btn btn-success prepend-left-10', class: 'btn btn-success prepend-left-10',
title: 'Grant access' do title: _('Grant access') do
%span{ class: ('d-block d-sm-none' unless force_mobile_view) } %span{ class: ('d-block d-sm-none' unless force_mobile_view) }
Grant access = _('Grant access')
- unless force_mobile_view - unless force_mobile_view
= icon('check inverse', class: 'd-none d-sm-block') = icon('check inverse', class: 'd-none d-sm-block')
- if member.can_remove? - if member.can_remove?
- if current_user == user - if current_user == user
= link_to icon('sign-out', text: 'Leave'), polymorphic_path([:leave, member.source, :members]), = link_to icon('sign-out', text: _('Leave')), polymorphic_path([:leave, member.source, :members]),
method: :delete, method: :delete,
data: { confirm: leave_confirmation_message(member.source) }, data: { confirm: leave_confirmation_message(member.source) },
class: 'btn btn-remove prepend-left-10' class: 'btn btn-remove prepend-left-10'
...@@ -114,7 +113,7 @@ ...@@ -114,7 +113,7 @@
class: 'btn btn-remove prepend-left-10', class: 'btn btn-remove prepend-left-10',
title: remove_member_title(member) do title: remove_member_title(member) do
%span{ class: ('d-block d-sm-none' unless force_mobile_view) } %span{ class: ('d-block d-sm-none' unless force_mobile_view) }
Delete = _("Delete")
- unless force_mobile_view - unless force_mobile_view
= icon('trash', class: 'd-none d-sm-block') = icon('trash', class: 'd-none d-sm-block')
- else - else
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.card.prepend-top-default{ class: ('card-mobile' if force_mobile_view ) } .card.prepend-top-default{ class: ('card-mobile' if force_mobile_view ) }
.card-header .card-header
Users requesting access to = _("Users requesting access to")
%strong= membership_source.name %strong= membership_source.name
%span.badge.badge-pill= requesters.size %span.badge.badge-pill= requesters.size
%ul.content-list.members-list %ul.content-list.members-list
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
= dropdown_toggle(member_sort_options_hash[@sort], { toggle: 'dropdown' }) = dropdown_toggle(member_sort_options_hash[@sort], { toggle: 'dropdown' })
%ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable %ul.dropdown-menu.dropdown-menu-right.dropdown-menu-selectable
%li.dropdown-header %li.dropdown-header
Sort by = _("Sort by")
- member_sort_options_hash.each do |value, title| - member_sort_options_hash.each do |value, title|
%li %li
= link_to filter_group_project_member_path(sort: value), class: ("is-active" if @sort == value) do = link_to filter_group_project_member_path(sort: value), class: ("is-active" if @sort == value) do
......
...@@ -216,6 +216,9 @@ msgstr[1] "" ...@@ -216,6 +216,9 @@ msgstr[1] ""
msgid "1st contribution!" msgid "1st contribution!"
msgstr "" msgstr ""
msgid "2FA"
msgstr ""
msgid "2FA enabled" msgid "2FA enabled"
msgstr "" msgstr ""
...@@ -921,6 +924,9 @@ msgstr "" ...@@ -921,6 +924,9 @@ msgstr ""
msgid "Bitbucket import" msgid "Bitbucket import"
msgstr "" msgstr ""
msgid "Blocked"
msgstr ""
msgid "Blog" msgid "Blog"
msgstr "" msgstr ""
...@@ -1160,6 +1166,9 @@ msgstr "" ...@@ -1160,6 +1166,9 @@ msgstr ""
msgid "Cannot modify managed Kubernetes cluster" msgid "Cannot modify managed Kubernetes cluster"
msgstr "" msgstr ""
msgid "Change permissions"
msgstr ""
msgid "Change template" msgid "Change template"
msgstr "" msgstr ""
...@@ -2468,6 +2477,9 @@ msgstr "" ...@@ -2468,6 +2477,9 @@ msgstr ""
msgid "Disable shared Runners" msgid "Disable shared Runners"
msgstr "" msgstr ""
msgid "Disabled"
msgstr ""
msgid "Discard" msgid "Discard"
msgstr "" msgstr ""
...@@ -2621,6 +2633,9 @@ msgstr "" ...@@ -2621,6 +2633,9 @@ msgstr ""
msgid "Enable usage ping to get an overview of how you are using GitLab from a feature perspective." msgid "Enable usage ping to get an overview of how you are using GitLab from a feature perspective."
msgstr "" msgstr ""
msgid "Enabled"
msgstr ""
msgid "Ends at (UTC)" msgid "Ends at (UTC)"
msgstr "" msgstr ""
...@@ -2816,6 +2831,9 @@ msgstr "" ...@@ -2816,6 +2831,9 @@ msgstr ""
msgid "Every week (Sundays at 4:00am)" msgid "Every week (Sundays at 4:00am)"
msgstr "" msgstr ""
msgid "Everyone"
msgstr ""
msgid "Everyone can contribute" msgid "Everyone can contribute"
msgstr "" msgstr ""
...@@ -2831,6 +2849,9 @@ msgstr "" ...@@ -2831,6 +2849,9 @@ msgstr ""
msgid "Expiration date" msgid "Expiration date"
msgstr "" msgstr ""
msgid "Expires in %{expires_at}"
msgstr ""
msgid "Explain the problem. If appropriate, provide a link to the relevant issue or comment." msgid "Explain the problem. If appropriate, provide a link to the relevant issue or comment."
msgstr "" msgstr ""
...@@ -2930,6 +2951,9 @@ msgstr "" ...@@ -2930,6 +2951,9 @@ msgstr ""
msgid "Filter by commit message" msgid "Filter by commit message"
msgstr "" msgstr ""
msgid "Filter by two-factor authentication"
msgstr ""
msgid "Filter..." msgid "Filter..."
msgstr "" msgstr ""
...@@ -3101,6 +3125,9 @@ msgstr "" ...@@ -3101,6 +3125,9 @@ msgstr ""
msgid "Gitea Import" msgid "Gitea Import"
msgstr "" msgstr ""
msgid "Given access %{time_ago}"
msgstr ""
msgid "Go Back" msgid "Go Back"
msgstr "" msgstr ""
...@@ -3125,6 +3152,9 @@ msgstr "" ...@@ -3125,6 +3152,9 @@ msgstr ""
msgid "Got it!" msgid "Got it!"
msgstr "" msgstr ""
msgid "Grant access"
msgstr ""
msgid "Graph" msgid "Graph"
msgstr "" msgstr ""
...@@ -3541,6 +3571,9 @@ msgstr "" ...@@ -3541,6 +3571,9 @@ msgstr ""
msgid "Issues, merge requests, pushes and comments." msgid "Issues, merge requests, pushes and comments."
msgstr "" msgstr ""
msgid "It's you"
msgstr ""
msgid "Jan" msgid "Jan"
msgstr "" msgstr ""
...@@ -5390,6 +5423,9 @@ msgstr "" ...@@ -5390,6 +5423,9 @@ msgstr ""
msgid "Request Access" msgid "Request Access"
msgstr "" msgstr ""
msgid "Requested %{time_ago}"
msgstr ""
msgid "Requests Profiles" msgid "Requests Profiles"
msgstr "" msgstr ""
...@@ -5399,6 +5435,9 @@ msgstr "" ...@@ -5399,6 +5435,9 @@ msgstr ""
msgid "Require all users to accept Terms of Service and Privacy Policy when they access GitLab." msgid "Require all users to accept Terms of Service and Privacy Policy when they access GitLab."
msgstr "" msgstr ""
msgid "Resend invite"
msgstr ""
msgid "Reset health check access token" msgid "Reset health check access token"
msgstr "" msgstr ""
...@@ -7014,6 +7053,9 @@ msgstr "" ...@@ -7014,6 +7053,9 @@ msgstr ""
msgid "Users" msgid "Users"
msgstr "" msgstr ""
msgid "Users requesting access to"
msgstr ""
msgid "Variables" msgid "Variables"
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