Commit 3a8cfa27 authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Natalia Tepluhina

Externalise strings in /users/_form.html.haml

parent 3fb47386
...@@ -3,40 +3,38 @@ ...@@ -3,40 +3,38 @@
= form_errors(@user) = form_errors(@user)
%fieldset %fieldset
%legend Account %legend= _('Account')
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label
= f.label :name = f.label :name
.col-sm-10 .col-sm-10
= f.text_field :name, required: true, autocomplete: 'off', class: 'form-control gl-form-input' = f.text_field :name, required: true, autocomplete: 'off', class: 'form-control gl-form-input'
%span.help-inline * required %span.help-inline * #{_('required')}
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label
= f.label :username = f.label :username
.col-sm-10 .col-sm-10
= f.text_field :username, required: true, autocomplete: 'off', autocorrect: 'off', autocapitalize: 'off', spellcheck: false, class: 'form-control gl-form-input' = f.text_field :username, required: true, autocomplete: 'off', autocorrect: 'off', autocapitalize: 'off', spellcheck: false, class: 'form-control gl-form-input'
%span.help-inline * required %span.help-inline * #{_('required')}
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label
= f.label :email = f.label :email
.col-sm-10 .col-sm-10
= f.text_field :email, required: true, autocomplete: 'off', class: 'form-control gl-form-input' = f.text_field :email, required: true, autocomplete: 'off', class: 'form-control gl-form-input'
%span.help-inline * required %span.help-inline * #{_('required')}
- if @user.new_record? - if @user.new_record?
%fieldset %fieldset
%legend Password %legend= _('Password')
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label
= f.label :password = f.label :password
.col-sm-10 .col-sm-10
%strong %strong
Reset link will be generated and sent to the user. = _('Reset link will be generated and sent to the user. %{break} User will be forced to set the password on first sign in.').html_safe % { break: '<br />'.html_safe }
%br
User will be forced to set the password on first sign in.
- else - else
%fieldset %fieldset
%legend Password %legend= _('Password')
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label
= f.label :password = f.label :password
...@@ -55,7 +53,7 @@ ...@@ -55,7 +53,7 @@
= render_if_exists 'admin/users/limits', f: f = render_if_exists 'admin/users/limits', f: f
%fieldset %fieldset
%legend Profile %legend= _('Profile')
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label
= f.label :avatar = f.label :avatar
...@@ -87,8 +85,8 @@ ...@@ -87,8 +85,8 @@
.form-actions .form-actions
- if @user.new_record? - if @user.new_record?
= f.submit 'Create user', class: "btn gl-button btn-confirm" = f.submit _('Create user'), class: "btn gl-button btn-confirm"
= link_to 'Cancel', admin_users_path, class: "gl-button btn btn-default btn-cancel" = link_to _('Cancel'), admin_users_path, class: "gl-button btn btn-default btn-cancel"
- else - else
= f.submit 'Save changes', class: "btn gl-button btn-confirm" = f.submit _('Save changes'), class: "btn gl-button btn-confirm"
= link_to 'Cancel', admin_user_path(@user), class: "gl-button btn btn-default btn-cancel" = link_to _('Cancel'), admin_user_path(@user), class: "gl-button btn btn-default btn-cancel"
---
title: Externalise strings in /admin/users/_form.html.haml
merge_request: 58096
author: nuwe1
type: other
...@@ -9325,6 +9325,9 @@ msgstr "" ...@@ -9325,6 +9325,9 @@ msgstr ""
msgid "Create tag %{tagName}" msgid "Create tag %{tagName}"
msgstr "" msgstr ""
msgid "Create user"
msgstr ""
msgid "Create wildcard: %{searchTerm}" msgid "Create wildcard: %{searchTerm}"
msgstr "" msgstr ""
...@@ -27168,6 +27171,9 @@ msgstr "" ...@@ -27168,6 +27171,9 @@ msgstr ""
msgid "Reset key" msgid "Reset key"
msgstr "" msgstr ""
msgid "Reset link will be generated and sent to the user. %{break} User will be forced to set the password on first sign in."
msgstr ""
msgid "Reset password" msgid "Reset password"
msgstr "" msgstr ""
...@@ -38107,6 +38113,9 @@ msgstr[1] "" ...@@ -38107,6 +38113,9 @@ msgstr[1] ""
msgid "repository:" msgid "repository:"
msgstr "" msgstr ""
msgid "required"
msgstr ""
msgid "reset it." msgid "reset it."
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