Commit d9e4e3f7 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'patch-37' into 'master'

Externalize strings from `/app/views/profiles/accounts`

See merge request gitlab-org/gitlab-ce!24095
parents 75b1837d 67e3a724
- page_title "Account" - page_title _('Account')
- @content_class = "limit-container-width" unless fluid_layout - @content_class = "limit-container-width" unless fluid_layout
- if current_user.ldap_user? - if current_user.ldap_user?
.alert.alert-info .alert.alert-info
Some options are unavailable for LDAP accounts = s_('Profiles|Some options are unavailable for LDAP accounts')
.row.prepend-top-default .row.prepend-top-default
.col-lg-4.profile-settings-sidebar .col-lg-4.profile-settings-sidebar
%h4.prepend-top-0 %h4.prepend-top-0
Two-Factor Authentication = s_('Profiles|Two-Factor Authentication')
%p %p
Increase your account's security by enabling Two-Factor Authentication (2FA). = s_("Profiles|Increase your account's security by enabling Two-Factor Authentication (2FA)")
.col-lg-8 .col-lg-8
%p %p
Status: #{current_user.two_factor_enabled? ? 'Enabled' : 'Disabled'} #{_('Status')}: #{current_user.two_factor_enabled? ? _('Enabled') : _('Disabled')}
- if current_user.two_factor_enabled? - if current_user.two_factor_enabled?
= link_to 'Manage two-factor authentication', profile_two_factor_auth_path, class: 'btn btn-info' = link_to _('Manage two-factor authentication'), profile_two_factor_auth_path, class: 'btn btn-info'
- else - else
.append-bottom-10 .append-bottom-10
= link_to 'Enable two-factor authentication', profile_two_factor_auth_path, class: 'btn btn-success' = link_to _('Enable two-factor authentication'), profile_two_factor_auth_path, class: 'btn btn-success'
%hr %hr
- if display_providers_on_profile? - if display_providers_on_profile?
.row.prepend-top-default .row.prepend-top-default
.col-lg-4.profile-settings-sidebar .col-lg-4.profile-settings-sidebar
%h4.prepend-top-0 %h4.prepend-top-0
Social sign-in = s_('Profiles|Social sign-in')
%p %p
Activate signin with one of the following services = s_('Profiles|Activate signin with one of the following services')
.col-lg-8 .col-lg-8
%label.label-bold %label.label-bold
Connected Accounts = s_('Profiles|Connected Accounts')
%p Click on icon to activate signin with one of the following services %p= s_('Profiles|Click on icon to activate signin with one of the following services')
- button_based_providers.each do |provider| - button_based_providers.each do |provider|
.provider-btn-group .provider-btn-group
.provider-btn-image .provider-btn-image
...@@ -39,24 +39,24 @@ ...@@ -39,24 +39,24 @@
- if auth_active?(provider) - if auth_active?(provider)
- if unlink_allowed?(provider) - if unlink_allowed?(provider)
= link_to unlink_profile_account_path(provider: provider), method: :delete, class: 'provider-btn' do = link_to unlink_profile_account_path(provider: provider), method: :delete, class: 'provider-btn' do
Disconnect = s_('Profiles|Disconnect')
- else - else
%a.provider-btn %a.provider-btn
Active = s_('Profiles|Active')
- else - else
= link_to omniauth_authorize_path(:user, provider), method: :post, class: 'provider-btn not-active' do = link_to omniauth_authorize_path(:user, provider), method: :post, class: 'provider-btn not-active' do
Connect = s_('Profiles|Connect')
= render_if_exists 'profiles/accounts/group_saml_unlink_buttons', group_saml_identities: local_assigns[:group_saml_identities] = render_if_exists 'profiles/accounts/group_saml_unlink_buttons', group_saml_identities: local_assigns[:group_saml_identities]
%hr %hr
- if current_user.can_change_username? - if current_user.can_change_username?
.row.prepend-top-default .row.prepend-top-default
.col-lg-4.profile-settings-sidebar .col-lg-4.profile-settings-sidebar
%h4.prepend-top-0.warning-title %h4.prepend-top-0.warning-title
Change username = s_('Profiles|Change username')
%p %p
Changing your username can have unintended side effects. = s_('Profiles|Changing your username can have unintended side effects.')
= succeed '.' do = succeed '.' do
= link_to 'Learn more', help_page_path('user/profile/index', anchor: 'changing-your-username'), target: '_blank' = link_to s_('Profiles|Learn more'), help_page_path('user/profile/index', anchor: 'changing-your-username'), target: '_blank'
.col-lg-8 .col-lg-8
- data = { initial_username: current_user.username, root_url: root_url, action_url: update_username_profile_path(format: :json) } - data = { initial_username: current_user.username, root_url: root_url, action_url: update_username_profile_path(format: :json) }
#update-username{ data: data } #update-username{ data: data }
......
...@@ -2788,6 +2788,9 @@ msgstr "" ...@@ -2788,6 +2788,9 @@ msgstr ""
msgid "Enable the Performance Bar for a given group." msgid "Enable the Performance Bar for a given group."
msgstr "" msgstr ""
msgid "Enable two-factor authentication"
msgstr ""
msgid "Enable usage ping" msgid "Enable usage ping"
msgstr "" msgstr ""
...@@ -4168,6 +4171,9 @@ msgstr "" ...@@ -4168,6 +4171,9 @@ msgstr ""
msgid "Manage project labels" msgid "Manage project labels"
msgstr "" msgstr ""
msgid "Manage two-factor authentication"
msgstr ""
msgid "Manifest" msgid "Manifest"
msgstr "" msgstr ""
...@@ -5207,6 +5213,12 @@ msgstr "" ...@@ -5207,6 +5213,12 @@ msgstr ""
msgid "Profiles|Account scheduled for removal." msgid "Profiles|Account scheduled for removal."
msgstr "" msgstr ""
msgid "Profiles|Activate signin with one of the following services"
msgstr ""
msgid "Profiles|Active"
msgstr ""
msgid "Profiles|Add key" msgid "Profiles|Add key"
msgstr "" msgstr ""
...@@ -5222,6 +5234,9 @@ msgstr "" ...@@ -5222,6 +5234,9 @@ msgstr ""
msgid "Profiles|Change username" msgid "Profiles|Change username"
msgstr "" msgstr ""
msgid "Profiles|Changing your username can have unintended side effects."
msgstr ""
msgid "Profiles|Choose file..." msgid "Profiles|Choose file..."
msgstr "" msgstr ""
...@@ -5234,6 +5249,15 @@ msgstr "" ...@@ -5234,6 +5249,15 @@ msgstr ""
msgid "Profiles|Clear status" msgid "Profiles|Clear status"
msgstr "" msgstr ""
msgid "Profiles|Click on icon to activate signin with one of the following services"
msgstr ""
msgid "Profiles|Connect"
msgstr ""
msgid "Profiles|Connected Accounts"
msgstr ""
msgid "Profiles|Current path: %{path}" msgid "Profiles|Current path: %{path}"
msgstr "" msgstr ""
...@@ -5252,6 +5276,9 @@ msgstr "" ...@@ -5252,6 +5276,9 @@ msgstr ""
msgid "Profiles|Deleting an account has the following effects:" msgid "Profiles|Deleting an account has the following effects:"
msgstr "" msgstr ""
msgid "Profiles|Disconnect"
msgstr ""
msgid "Profiles|Do not show on profile" msgid "Profiles|Do not show on profile"
msgstr "" msgstr ""
...@@ -5264,6 +5291,9 @@ msgstr "" ...@@ -5264,6 +5291,9 @@ msgstr ""
msgid "Profiles|Enter your name, so people you know can recognize you" msgid "Profiles|Enter your name, so people you know can recognize you"
msgstr "" msgstr ""
msgid "Profiles|Increase your account's security by enabling Two-Factor Authentication (2FA)"
msgstr ""
msgid "Profiles|Invalid password" msgid "Profiles|Invalid password"
msgstr "" msgstr ""
...@@ -5300,6 +5330,9 @@ msgstr "" ...@@ -5300,6 +5330,9 @@ msgstr ""
msgid "Profiles|Set new profile picture" msgid "Profiles|Set new profile picture"
msgstr "" msgstr ""
msgid "Profiles|Social sign-in"
msgstr ""
msgid "Profiles|Some options are unavailable for LDAP accounts" msgid "Profiles|Some options are unavailable for LDAP accounts"
msgstr "" msgstr ""
...@@ -5327,6 +5360,9 @@ msgstr "" ...@@ -5327,6 +5360,9 @@ msgstr ""
msgid "Profiles|This information will appear on your profile" msgid "Profiles|This information will appear on your profile"
msgstr "" msgstr ""
msgid "Profiles|Two-Factor Authentication"
msgstr ""
msgid "Profiles|Type your %{confirmationValue} to confirm:" msgid "Profiles|Type your %{confirmationValue} to confirm:"
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